Class XSList
java.lang.Object
org.exolab.castor.builder.types.XSType
org.exolab.castor.builder.types.XSListType
org.exolab.castor.builder.types.XSList
A list type.
- Version:
- $Revision: 7398 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- Author:
- Assaf Arkin, Keith Visco, Ralf Joachim
-
Field Summary
FieldsFields inherited from class XSType
ANYURI_TYPE, BASE64BINARY_TYPE, BOOLEAN_TYPE, BYTE_TYPE, CLASS, COLLECTION, DATE_TYPE, DATETIME_TYPE, DECIMAL_TYPE, DOUBLE_TYPE, DURATION_TYPE, ENTITIES, ENTITY, FLOAT_TYPE, GDAY_TYPE, GMONTH_TYPE, GMONTHDAY_TYPE, GYEAR_TYPE, GYEARMONTH_TYPE, HEXBINARY_TYPE, ID_TYPE, IDREF_TYPE, IDREFS_TYPE, INT_TYPE, INTEGER_TYPE, LANGUAGE_TYPE, LONG_TYPE, NAME_TYPE, NCNAME_TYPE, NEGATIVE_INTEGER_TYPE, NMTOKEN_TYPE, NMTOKENS_TYPE, NON_NEGATIVE_INTEGER_TYPE, NON_POSITIVE_INTEGER_TYPE, NORMALIZEDSTRING_TYPE, NOTATION_TYPE, NULL, POSITIVE_INTEGER_TYPE, QNAME_TYPE, SHORT_TYPE, STRING_TYPE, TIME_TYPE, TOKEN_TYPE, UNSIGNED_BYTE_TYPE, UNSIGNED_INT_TYPE, UNSIGNED_LONG_TYPE, UNSIGNED_SHORT_TYPEModifier and TypeFieldDescriptionstatic final shortxsd:anyURI.static final shortxsd:base64Binary.static final shortxsd:boolean.static final shortxsd:byte.static final shortA user-defined type.static final shortA collection type.static final shortxsd:date.static final shortxsd:dateTime.static final shortxsd:decimal.static final shortxsd:double.static final shortxsd:duration.static final shortxsd:ENTITIES.static final shortxsd:ENTITY.static final shortxsd:float.static final shortxsd:gDay.static final shortxsd:gMonth.static final shortxsd:gMonthDay.static final shortxsd:gYear.static final shortxsd:gYearMonth.static final shortxsd:hexBinary.static final shortxsd:ID.static final shortxsd:IDREF.static final shortxsd:IDREFS.static final shortxsd:int.static final shortxsd:integer.static final shortxsd:language.static final shortxsd:long.static final shortxsd:name.static final shortxsd:NCNAME.static final shortxsd:negativeInteger.static final shortxsd:NMTOKEN.static final shortxsd:NMTOKENS.static final shortxsd:nonNegativeInteger.static final shortxsd:nonPositiveInteger.static final shortxsd:normalizedString.static final shortxsd:notation.static final shortValue meaning the type is unassigned.static final shortxsd:positiveInteger.static final shortxsd:QName.static final shortxsd:short.static final shortxsd:string.static final shortxsd:time.static final shortxsd:token.static final shortxsd:unsignedByte.static final shortxsd:unsignedInt.static final shortxsd:unsignedLong.static final shortxsd:unsignedShort. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortgetType()Returns the type of this XSType.booleanIndicates whether thisXSListinstance has been created as a result of a invalid input: '<'xs:list> definition.voidsetDerivedFromXSList(boolean derivedFromXSList) Sets whether thisXSListinstance has been created as a result of a invalid input: '<'xs:list> definition.voidvalidationCode(JSourceCode jsc, String fixedValue, String validatorInstanceName) Creates the validation code for an instance of this XSType.Methods inherited from class XSListType
createFromJavaObjectCode, createToJavaObjectCode, getContentType, getJType, getMaximumSize, getMinimumSize, getName, isCollection, isDateTime, isPrimitive, newInstanceCode, setFacet, setMaximumSize, setMinimumSizeModifier and TypeMethodDescriptioncreateFromJavaObjectCode(String variableName) Returns the string necessary to convert an Object to an instance of this XSType.createToJavaObjectCode(String variableName) Returns the string necessary to convert an instance of this XSType to an Object.final XSTypeReturns the type contained in the list.getJType()Returns the JType that this XSType represents.final intReturns the maximum allowed size for this list.final intReturns the minimum allowed size for this list.getName()Returns the name of this XSType.booleanReturns true if this XSType represents a collection.booleanReturns true if the XSType represents an XML Schema date/time type.booleanReturns true if this XSType represents a primitive type.Returns the Java code neccessary to create a new instance of the JType associated with this XSType.protected voidSet the given facet for XSType if applicable.final voidsetMaximumSize(int size) Sets the maximum allowed size for this list.final voidsetMinimumSize(int size) Sets the minimum allowed size for this list.Methods inherited from class XSType
createDefaultValueWithString, isEnumerated, setAsEnumerated, setFacetsModifier and TypeMethodDescriptioncreateDefaultValueWithString(String variableName) Creates source code for an additional constructor that deals with default values as specified in the XML schema instance.final booleanReturns true if this XSType represents an enumerated type.final voidsetAsEnumerated(boolean enumerated) Sets the enumerated flag for this XSClass.final voidsetFacets(SimpleType simpleType) Reads and sets the facets for XSType.
-
Field Details
-
TYPE
public static final short TYPEType number of this XSType.- See Also:
-
-
Constructor Details
-
XSList
-
-
Method Details
-
getType
-
validationCode
Creates the validation code for an instance of this XSType. If necessary the validation code should create a newly configured TypeValidator, that should then be added to a FieldValidator instance whose name is provided.- Specified by:
validationCodein classXSType- Parameters:
jsc- The JSourceCode to fill in.fixedValue- A fixed value to use if any.validatorInstanceName- The name of the FieldValidator that the configured TypeValidator should be added to.
-
setDerivedFromXSList
public void setDerivedFromXSList(boolean derivedFromXSList) Sets whether thisXSListinstance has been created as a result of a invalid input: '<'xs:list> definition.- Parameters:
derivedFromXSList- A boolean value, true or false.
-
isDerivedFromXSList
public boolean isDerivedFromXSList()Indicates whether thisXSListinstance has been created as a result of a invalid input: '<'xs:list> definition.- Parameters:
derivedFromXSList- True if this XSList instance has been created as a result of a invalid input: '<'xs:list> definition.
-