|
|||||||||
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.XSShort
The XML Schema Short type
Field Summary | |
(package private) java.lang.Short |
maxExclusive
|
(package private) java.lang.Short |
maxInclusive
|
(package private) java.lang.Short |
minExclusive
|
(package private) java.lang.Short |
minInclusive
|
Constructor Summary | |
XSShort()
|
|
XSShort(boolean asWrapper)
|
Method Summary | |
java.lang.String |
createFromJavaObjectCode(java.lang.String variableName)
Returns the String necessary to convert an Object to an instance of this XSType. |
java.lang.String |
createToJavaObjectCode(java.lang.String variableName)
Returns the String necessary to convert an instance of this XSType to an Object. |
JType |
getJType()
Returns the JType that this XSType represents |
java.lang.Short |
getMaxExclusive()
Returns the maximum exclusive value that this XSShort can hold. |
java.lang.Short |
getMaxInclusive()
Returns the maximum inclusive value that this XSShort can hold. |
java.lang.Short |
getMinExclusive()
Returns the minimum exclusive value that this XSShort can hold. |
java.lang.Short |
getMinInclusive()
Returns the minimum inclusive value that this XSShort can hold. |
boolean |
hasMaximum()
|
boolean |
hasMinimum()
|
void |
setFacets(SimpleType simpleType)
Reads and sets the facets for XSShort |
void |
setMaxExclusive(short max)
Sets the maximum exclusive value that this XSShort can hold. |
void |
setMaxExclusive(java.lang.Short max)
Sets the maximum exclusive value that this XSShort can hold. |
void |
setMaxInclusive(short max)
Sets the maximum inclusive value that this XSShort can hold. |
void |
setMaxInclusive(java.lang.Short max)
Sets the maximum inclusive value that this XSShort can hold. |
void |
setMinExclusive(short min)
Sets the minimum exclusive value that this XSShort can hold. |
void |
setMinExclusive(java.lang.Short min)
Sets the minimum exclusive value that this XSShort can hold. |
void |
setMinInclusive(short min)
Sets the minimum inclusive value that this XSShort can hold. |
void |
setMinInclusive(java.lang.Short min)
Sets the minimum inclusive value that this XSShort can hold. |
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.XSPatternBase |
getPattern, setPattern |
Methods inherited from class org.exolab.castor.builder.types.XSType |
escapePattern, 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 |
Field Detail |
java.lang.Short maxInclusive
java.lang.Short maxExclusive
java.lang.Short minInclusive
java.lang.Short minExclusive
Constructor Detail |
public XSShort()
public XSShort(boolean asWrapper)
Method Detail |
public JType getJType()
getJType
in class XSType
public java.lang.Short getMaxExclusive()
getMaxInclusive()
public java.lang.Short getMaxInclusive()
getMaxExclusive()
public java.lang.Short getMinExclusive()
getMinInclusive()
,
setMaxInclusive(short)
public java.lang.Short getMinInclusive()
getMinExclusive()
public boolean hasMaximum()
public boolean hasMinimum()
public void setMaxExclusive(short max)
max
- the maximum exclusive value this XSShort can besetMaxInclusive(short)
public void setMaxExclusive(java.lang.Short max)
max
- the maximum exclusive value this XSShort can besetMaxInclusive(short)
public void setMaxInclusive(short max)
max
- the maximum inclusive value this XSShort can besetMaxExclusive(short)
public void setMaxInclusive(java.lang.Short max)
max
- the maximum inclusive value this XSShort can besetMaxExclusive(short)
public void setMinExclusive(short min)
setMinInclusive(short)
public void setMinExclusive(java.lang.Short min)
setMinInclusive(short)
public void setMinInclusive(short min)
setMinExclusive(short)
public void setMinInclusive(java.lang.Short min)
setMinExclusive(short)
public void setFacets(SimpleType simpleType)
setFacets
in class XSType
simpleType
- the SimpleType containing the facetspublic java.lang.String createToJavaObjectCode(java.lang.String variableName)
createToJavaObjectCode
in class XSType
variableName
- the name of the instance variable
public java.lang.String createFromJavaObjectCode(java.lang.String variableName)
createFromJavaObjectCode
in class XSType
variableName
- the name of the Object
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 |