- From: Florent Batard via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 26 Aug 2008 15:31:37 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/tasklist/parameters In directory hutz:/tmp/cvs-serv11462/org/w3c/unicorn/tasklist/parameters Modified Files: ParameterFactory.java Parameter.java Log Message: Delete all occurence of JAXB and priorities Index: ParameterFactory.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tasklist/parameters/ParameterFactory.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ParameterFactory.java 31 Aug 2006 09:09:27 -0000 1.1.1.1 +++ ParameterFactory.java 26 Aug 2008 15:31:35 -0000 1.2 @@ -6,7 +6,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.w3c.unicorn.generated.tasklist.TParamType; +import org.w3.unicorn.tasklist.TParamType; /** * Factory to create any type of parameter. @@ -16,20 +16,19 @@ private static final Log logger = LogFactory.getLog("org.w3c.unicorn.tasklist"); - public static Parameter getParameter (final TParamType aTParamType) { - - switch (aTParamType) { - case CHECKBOX : + public static Parameter getParameter (final TParamType.Enum aTParamType) { + switch (aTParamType.intValue()) { + case TParamType.INT_CHECKBOX : return new CheckboxParameter(); - case CHECKBOXLIST : + case TParamType.INT_CHECKBOXLIST : return new CheckboxListParameter(); - case DROPDOWN : + case TParamType.INT_DROPDOWN : return new DropDownParameter(); - case RADIO : + case TParamType.INT_RADIO : return new RadioParameter(); - case TEXTAREA : + case TParamType.INT_TEXTAREA : return new TextAreaParameter(); - case TEXTFIELD : + case TParamType.INT_TEXTFIELD : return new TextFieldParameter(); default : ParameterFactory.logger.error("Unknown parameter type."); Index: Parameter.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tasklist/parameters/Parameter.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Parameter.java 31 Aug 2006 09:09:27 -0000 1.1.1.1 +++ Parameter.java 26 Aug 2008 15:31:35 -0000 1.2 @@ -9,7 +9,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.w3c.unicorn.exceptions.ParameterException; -import org.w3c.unicorn.generated.tasklist.TUi; +import org.w3.unicorn.tasklist.TUi; import org.w3c.unicorn.util.LocalizedString; /** @@ -35,7 +35,7 @@ /** * Level of the interface in which the parameter appears */ - private TUi aTUiLevel; + private TUi.Enum aTUiLevel; /** * Returns the default values of this parameter. @@ -53,7 +53,7 @@ * Creates a new Parameter. */ public Parameter () { - this("", new LocalizedString(), TUi.ADVANCED); + this("", new LocalizedString(),TUi.ADVANCED); } /** @@ -65,7 +65,7 @@ public Parameter ( final String sName, final LocalizedString aLocalizedString, - final TUi aTUi) { + final TUi.Enum aTUi) { super(); this.longnames = aLocalizedString; this.sName = sName; @@ -126,7 +126,7 @@ * Returns the interface level * @return Returns the uiLevel. */ - public TUi getUiLevel () { + public TUi.Enum getUiLevel () { return this.aTUiLevel; } @@ -134,7 +134,7 @@ * Sets the interface level * @param aTUiLevel The uiLevel to set. */ - public void setUiLevel (final TUi aTUiLevel) { + public void setUiLevel (final TUi.Enum aTUiLevel) { this.aTUiLevel = aTUiLevel; }
Received on Tuesday, 26 August 2008 15:32:11 UTC