org.exolab.castor.builder.types
Class XSNMTokens

java.lang.Object
  extended by org.exolab.castor.builder.types.XSType
      extended by org.exolab.castor.builder.types.XSListType
          extended by org.exolab.castor.builder.types.XSNMTokens

public class XSNMTokens
extends XSListType

A collection of NMToken type.

Since:
1.1
Version:
$Revision: 6729 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Werner Guttmann

Field Summary
static java.lang.String NMTOKENS_NAME
          name of the NMTOKENS type.
 
Fields inherited from class org.exolab.castor.builder.types.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 Summary
XSNMTokens(java.lang.String colType, boolean useJava50)
          Create a XSNMTokens instance.
 
Method Summary
 java.lang.String getName()
          Returns the name of this XSType.
 short getType()
          Returns the type of this XSType.
 void validationCode(JSourceCode jsc, java.lang.String fixedValue, java.lang.String validatorInstanceName)
          Creates the validation code for an instance of this XSType.
 
Methods inherited from class org.exolab.castor.builder.types.XSListType
createFromJavaObjectCode, createToJavaObjectCode, getContentType, getJType, getMaximumSize, getMinimumSize, isCollection, isDateTime, isPrimitive, newInstanceCode, setFacet, setMaximumSize, setMinimumSize
 
Methods inherited from class org.exolab.castor.builder.types.XSType
isEnumerated, setAsEnumerated, setFacets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NMTOKENS_NAME

public static final java.lang.String NMTOKENS_NAME
name of the NMTOKENS type.

See Also:
Constant Field Values
Constructor Detail

XSNMTokens

public XSNMTokens(java.lang.String colType,
                  boolean useJava50)
Create a XSNMTokens instance.

Parameters:
colType - Type of collection to use.
useJava50 - If true, the collection will be generated using Java 5 features such as generics.
Method Detail

getName

public java.lang.String getName()
Returns the name of this XSType.

Overrides:
getName in class XSListType
Returns:
The name of this XSType.

getType

public short getType()
Returns the type of this XSType.

Specified by:
getType in class XSType
Returns:
the type of this XSType.

validationCode

public void validationCode(JSourceCode jsc,
                           java.lang.String fixedValue,
                           java.lang.String validatorInstanceName)
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:
validationCode in class XSType
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.


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com