Public Member Functions | |
XSClass (JClass jClass) | |
XSClass (JClass jClass, String schemaTypeName) | |
void | setFacets (SimpleType simpleType) |
JType | getJType () |
String | getName () |
void | validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName) |
The XML Schema user-defined archetype
org.exolab.castor.builder.types.XSClass.XSClass | ( | JClass | jClass | ) |
org.exolab.castor.builder.types.XSClass.XSClass | ( | JClass | jClass, | |
String | schemaTypeName | |||
) |
Creates a new XSClass with the given JClass reference
jClass | the JClass associated with this XSType | |
schemaTypeName | The XML Schema type name |
References org.exolab.javasource.JStructure.getName().
JType org.exolab.castor.builder.types.XSClass.getJType | ( | ) | [virtual] |
Returns the JType that this XSType represents
Implements org.exolab.castor.builder.types.XSType.
String org.exolab.castor.builder.types.XSClass.getName | ( | ) |
Returns the name of this XSType
Reimplemented from org.exolab.castor.builder.types.XSType.
void org.exolab.castor.builder.types.XSClass.setFacets | ( | SimpleType | simpleType | ) | [virtual] |
Reads and sets the facets for XSType
simpleType | the SimpleType containing the facets |
Implements org.exolab.castor.builder.types.XSType.
void org.exolab.castor.builder.types.XSClass.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.