|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.types.XSType
org.exolab.castor.builder.types.XSClass
public class XSClass
The XML Schema user-defined archetype
Field Summary |
---|
Constructor Summary | |
---|---|
XSClass(JClass jClass)
Creates a new XSClass with the given JClass reference |
|
XSClass(JClass jClass,
java.lang.String schemaTypeName)
Creates a new XSClass with the given JClass reference |
Method Summary | |
---|---|
JType |
getJType()
Returns the JType that this XSType represents |
java.lang.String |
getName()
Returns the name of this XSType |
void |
setFacets(SimpleType simpleType)
Reads and sets the facets for XSType |
void |
validationCode(JSourceCode jsc,
java.lang.String fixedValue,
java.lang.String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType. |
Methods inherited from class org.exolab.castor.builder.types.XSType |
---|
createFromJavaObjectCode, createToJavaObjectCode, escapePattern, getFacets, getType, isDateTime, isEnumerated, isPrimitive, newInstanceCode, setAsEnumerated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSClass(JClass jClass)
jClass
- the JClass type of this XSClasspublic XSClass(JClass jClass, java.lang.String schemaTypeName)
jClass
- the JClass associated with this XSTypeschemaTypeName
- The XML Schema type nameMethod Detail |
---|
public void setFacets(SimpleType simpleType)
XSType
setFacets
in class XSType
simpleType
- the SimpleType containing the facetspublic JType getJType()
getJType
in class XSType
public java.lang.String getName()
XSType
getName
in class XSType
public void validationCode(JSourceCode jsc, java.lang.String fixedValue, java.lang.String fieldValidatorInstanceName)
validationCode
in class XSType
fixedValue
- a fixed value to use if anyjsc
- the JSourceCode to fill in.fieldValidatorInstanceName
- the name of the FieldValidator
that the configured TypeValidator should be added to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |