|
|||||||||
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.XSLong
The XML Schema long type
Field Summary | |
(package private) java.lang.Long |
maxExclusive
|
(package private) java.lang.Long |
maxInclusive
|
(package private) java.lang.Long |
minExclusive
|
(package private) java.lang.Long |
minInclusive
|
Constructor Summary | |
XSLong()
|
|
XSLong(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.Long |
getMaxExclusive()
Returns the maximum exclusive value that this XSLong can hold. |
java.lang.Long |
getMaxInclusive()
Returns the maximum inclusive value that this XSLong can hold. |
java.lang.Long |
getMinExclusive()
Returns the minimum exclusive value that this XSLong can hold. |
java.lang.Long |
getMinInclusive()
Returns the minimum inclusive value that this XSLong can hold. |
boolean |
hasMaximum()
|
boolean |
hasMinimum()
|
void |
setFacets(SimpleType simpleType)
Reads and sets the facets for XSTimeDuration override the readFacet method of XSType |
void |
setMaxExclusive(long max)
Sets the maximum exclusive value that this XSLong can hold. |
void |
setMaxExclusive(java.lang.Long max)
Sets the maximum exclusive value that this XSLong can hold. |
void |
setMaxInclusive(long max)
Sets the maximum inclusive value that this XSLong can hold. |
void |
setMaxInclusive(java.lang.Long max)
Sets the maximum inclusive value that this XSLong can hold. |
void |
setMinExclusive(long min)
Sets the minimum exclusive value that this XSLong can hold. |
void |
setMinExclusive(java.lang.Long min)
Sets the minimum exclusive value that this XSLong can hold. |
void |
setMinInclusive(long min)
Sets the minimum inclusive value that this XSLong can hold. |
void |
setMinInclusive(java.lang.Long min)
Sets the minimum inclusive value that this XSLong 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.Long maxInclusive
java.lang.Long maxExclusive
java.lang.Long minInclusive
java.lang.Long minExclusive
Constructor Detail |
public XSLong()
public XSLong(boolean asWrapper)
Method Detail |
public JType getJType()
getJType
in class XSType
public java.lang.Long getMaxExclusive()
getMaxInclusive()
public java.lang.Long getMaxInclusive()
getMaxExclusive()
public java.lang.Long getMinExclusive()
getMinInclusive()
,
setMaxInclusive(long)
public java.lang.Long getMinInclusive()
getMinExclusive()
public boolean hasMaximum()
public boolean hasMinimum()
public void setMaxExclusive(long max)
max
- the maximum exclusive value this XSLong can besetMaxInclusive(long)
public void setMaxExclusive(java.lang.Long max)
max
- the maximum exclusive value this XSLong can besetMaxInclusive(long)
public void setMaxInclusive(long max)
max
- the maximum inclusive value this XSLong can besetMaxExclusive(long)
public void setMaxInclusive(java.lang.Long max)
max
- the maximum inclusive value this XSLong can besetMaxExclusive(long)
public void setMinExclusive(long min)
setMinInclusive(long)
public void setMinExclusive(java.lang.Long min)
setMinInclusive(long)
public void setMinInclusive(long min)
setMinExclusive(long)
public void setMinInclusive(java.lang.Long min)
setMinExclusive(long)
public void setFacets(SimpleType simpleType)
setFacets
in class XSType
simpleType
- the SimpleType containing the facetsXSType.getFacets(org.exolab.castor.xml.schema.SimpleType)
public 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 |