|
|||||||||
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.XSPatternBase
org.exolab.castor.builder.types.XSQName
The XML Schema QName type
Note : A QName (prefix:NCName) is mapped in memory {URI}NCName.
Field Summary |
Constructor Summary | |
XSQName()
|
Method Summary | |
java.lang.String |
createFromJavaObjectCode(java.lang.String variableName)
Returns the String necessary to convert an Object to an instance of this XSType. |
JType |
getJType()
Returns the JType that this XSType represents |
int |
getLength()
Returns the length that this type must have |
int |
getMaxLength()
Returns the maximum length occurances of this type can be. |
int |
getMinLength()
Returns the minimum length occurances of this type can be. |
boolean |
hasLength()
Returns true if a length has been set |
boolean |
hasMaxLength()
Returns true if a maximum length has been set |
boolean |
hasMinLength()
Returns true if a minimum length has been set |
void |
setFacets(SimpleType simpleType)
Sets the facets of this XSType |
void |
setLength(int length)
Sets the length of this XSString. |
void |
setMaxLength(int maxLength)
Sets the maximum length of this XSString. |
void |
setMinLength(int minLength)
Sets the minimum length of this XSString. |
Methods inherited from class org.exolab.castor.builder.types.XSPatternBase |
getPattern, setPattern |
Methods inherited from class org.exolab.castor.builder.types.XSType |
createToJavaObjectCode, getFacets, getName, getType, isDateTime, isEnumerated, isPrimitive, newInstanceCode, setAsEnumertated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSQName()
Method Detail |
public java.lang.String createFromJavaObjectCode(java.lang.String variableName)
createFromJavaObjectCode
in class XSType
variableName
- the name of the Object
public int getMaxLength()
public int getMinLength()
public int getLength()
public boolean hasMaxLength()
public boolean hasMinLength()
public boolean hasLength()
public void setLength(int length)
length
- the length to setsetMaxLength(int)
,
setMinLength(int)
public void setMaxLength(int maxLength)
maxLength
- the maximum length for occurances of this typepublic void setMinLength(int minLength)
minLength
- the minimum length for occurances of this typepublic void setFacets(SimpleType simpleType)
setFacets
in class XSType
simpleType
- the simpleType to convert in XStypepublic JType getJType()
getJType
in class XSType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |