Public Member Functions | |
XSQName () | |
String | createFromJavaObjectCode (String variableName) |
int | getMaxLength () |
int | getMinLength () |
int | getLength () |
boolean | hasMaxLength () |
boolean | hasMinLength () |
boolean | hasLength () |
void | setLength (int length) |
void | setMaxLength (int maxLength) |
void | setMinLength (int minLength) |
void | setFacets (SimpleType simpleType) |
JType | getJType () |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
The XML Schema QName type
Note : A QName (prefix:NCName) is mapped in memory {URI}NCName.
org.exolab.castor.builder.types.XSQName.XSQName | ( | ) |
String org.exolab.castor.builder.types.XSQName.createFromJavaObjectCode | ( | String | variableName | ) |
Returns the String necessary to convert an Object to an instance of this XSType. This method is really only useful for primitive types
variableName | the name of the Object |
Reimplemented from org.exolab.castor.builder.types.XSType.
JType org.exolab.castor.builder.types.XSQName.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
int org.exolab.castor.builder.types.XSQName.getLength | ( | ) |
Returns the length that this type must have
int org.exolab.castor.builder.types.XSQName.getMaxLength | ( | ) |
Returns the maximum length occurances of this type can be. A negative value denotes no maximum length
int org.exolab.castor.builder.types.XSQName.getMinLength | ( | ) |
Returns the minimum length occurances of this type can be.
boolean org.exolab.castor.builder.types.XSQName.hasLength | ( | ) |
Returns true if a length has been set
boolean org.exolab.castor.builder.types.XSQName.hasMaxLength | ( | ) |
Returns true if a maximum length has been set
boolean org.exolab.castor.builder.types.XSQName.hasMinLength | ( | ) |
Returns true if a minimum length has been set
void org.exolab.castor.builder.types.XSQName.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Sets the facets of this XSType
simpleType | the simpleType to convert in XStype |
Implements org.exolab.castor.builder.types.XSType.
References org.exolab.castor.builder.types.XSType.getFacets(), org.exolab.castor.xml.schema.Facet.getName(), org.exolab.castor.xml.schema.Facet.getValue(), org.exolab.castor.builder.types.XSQName.setLength(), org.exolab.castor.builder.types.XSQName.setMaxLength(), org.exolab.castor.builder.types.XSQName.setMinLength(), org.exolab.castor.builder.types.XSPatternBase.setPattern(), and org.exolab.castor.xml.schema.Facet.toInt().
Referenced by org.exolab.castor.builder.TypeConversion.convertType().
void org.exolab.castor.builder.types.XSQName.setLength | ( | int | length | ) |
Sets the length of this XSString. While setting the length, the maxLength and minLength are also set up to this length
length | the length to set |
References org.exolab.castor.builder.types.XSQName.setMaxLength(), and org.exolab.castor.builder.types.XSQName.setMinLength().
Referenced by org.exolab.castor.builder.types.XSQName.setFacets().
void org.exolab.castor.builder.types.XSQName.setMaxLength | ( | int | maxLength | ) |
Sets the maximum length of this XSString. To remove the max length facet, use a negative value.
maxLength | the maximum length for occurances of this type |
Referenced by org.exolab.castor.builder.types.XSQName.setFacets(), and org.exolab.castor.builder.types.XSQName.setLength().
void org.exolab.castor.builder.types.XSQName.setMinLength | ( | int | minLength | ) |
Sets the minimum length of this XSString.
minLength | the minimum length for occurances of this type |
Referenced by org.exolab.castor.builder.types.XSQName.setFacets(), and org.exolab.castor.builder.types.XSQName.setLength().
void org.exolab.castor.builder.types.XSQName.validationCode | ( | JSourceCode | jsc, | |
String | fixedValue, | |||
String | fieldValidatorInstanceName | |||
) | [virtual] |
Creates the validation code for an instance of this XSType. The validation code should if necessary create a newly configured TypeValidator, that should then be added to a FieldValidator instance whose name is provided.
fixedValue | a fixed value to use if any | |
jsc | the JSourceCode to fill in. | |
fieldValidatorInstanceName | the name of the FieldValidator that the configured TypeValidator should be added to. |
Implements org.exolab.castor.builder.types.XSType.