XSIdRefs
, XSList
, XSNMTokens
public abstract class XSListType extends 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_TYPE
Constructor | Description |
---|---|
XSListType(java.lang.String colType,
XSType contentType,
boolean useJava50) |
Creates an instance of this (abstract base) collection type.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
createFromJavaObjectCode(java.lang.String variableName) |
Returns the string necessary to convert an Object to an instance of this
XSType.
|
java.lang.String |
createToJavaObjectCode(java.lang.String variableName) |
Returns the string necessary to convert an instance of this XSType to an
Object.
|
XSType |
getContentType() |
Returns the type contained in the list.
|
JType |
getJType() |
Returns the JType that this XSType represents.
|
int |
getMaximumSize() |
Returns the maximum allowed size for this list.
|
int |
getMinimumSize() |
Returns the minimum allowed size for this list.
|
java.lang.String |
getName() |
Returns the name of this XSType.
|
boolean |
isCollection() |
Returns true if this XSType represents a collection.
|
boolean |
isDateTime() |
Returns true if the XSType represents an XML Schema date/time type.
|
boolean |
isPrimitive() |
Returns true if this XSType represents a primitive type.
|
java.lang.String |
newInstanceCode() |
Returns the Java code neccessary to create a new instance of the JType
associated with this XSType.
|
protected void |
setFacet(Facet facet) |
Set the given facet for XSType if applicable.
|
void |
setMaximumSize(int size) |
Sets the maximum allowed size for this list.
|
void |
setMinimumSize(int size) |
Sets the minimum allowed size for this list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDefaultValueWithString, getType, isEnumerated, setAsEnumerated, setFacets, validationCode
public XSListType(java.lang.String colType, XSType contentType, boolean useJava50)
colType
- Type of collection to use.contentType
- Type of the collection members.useJava50
- If true, the collection will be generated using Java 5public final XSType getContentType()
public JType getJType()
public final int getMaximumSize()
public final void setMaximumSize(int size)
size
- New maximum size for this listpublic final int getMinimumSize()
public final void setMinimumSize(int size)
size
- New minimum size for this listpublic boolean isCollection()
isCollection
in class XSType
public java.lang.String getName()
public boolean isPrimitive()
isPrimitive
in class XSType
public boolean isDateTime()
isDateTime
in class XSType
public java.lang.String newInstanceCode()
newInstanceCode
in class XSType
public java.lang.String createToJavaObjectCode(java.lang.String variableName)
createToJavaObjectCode
in class XSType
variableName
- The name of the instance variable.public java.lang.String createFromJavaObjectCode(java.lang.String variableName)
createFromJavaObjectCode
in class XSType
variableName
- The name of the Object.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com