createFromJavaObjectCode
public String createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType. This method is really only useful
for primitive types
- createFromJavaObjectCode in interface XSType
variableName
- the name of the Object
- the String necessary to convert an Object to an
instance of this XSType
createToJavaObjectCode
public String createToJavaObjectCode(String variableName)
Returns the String necessary to convert an instance of this XSType
to an Object. This method is really only useful for primitive types
- createToJavaObjectCode in interface XSType
variableName
- the name of the instance variable
- the String necessary to convert an instance of this XSType
to an Object
getJType
public JType getJType()
Returns the JType that this XSType represents
- getJType in interface XSType
- the JType that this XSType represents
getMaxExclusive
public Byte getMaxExclusive()
Returns the maximum exclusive value that this XSByte can hold.
- the maximum exclusive value that this XSByte can hold. If
no maximum exclusive value has been set, Null will be returned
getMaxInclusive
public Byte getMaxInclusive()
Returns the maximum inclusive value that this XSByte can hold.
- the maximum inclusive value that this XSByte can hold. If
no maximum inclusive value has been set, Null will be returned
getMinExclusive
public Byte getMinExclusive()
Returns the minimum exclusive value that this XSByte can hold.
- the minimum exclusive value that this XSByte can hold. If
no minimum exclusive value has been set, Null will be returned
getMinInclusive
public Byte getMinInclusive()
Returns the minimum inclusive value that this XSByte can hold.
- the minimum inclusive value that this XSByte can hold. If
no minimum inclusive value has been set, Null will be returned
hasMaximum
public boolean hasMaximum()
hasMinimum
public boolean hasMinimum()
setFacets
public void setFacets(SimpleType simpleType)
Reads and sets the facets for XSByte
override the readFacet method of XSType
- setFacets in interface XSType
setMaxExclusive
public void setMaxExclusive(Byte max)
Sets the maximum exclusive value that this XSByte can hold.
max
- the maximum exclusive value this XSByte can be
setMaxExclusive
public void setMaxExclusive(byte max)
Sets the maximum exclusive value that this XSByte can hold.
max
- the maximum exclusive value this XSByte can be
setMaxInclusive
public void setMaxInclusive(Byte max)
Sets the maximum inclusive value that this XSByte can hold.
max
- the maximum inclusive value this XSByte can be
setMaxInclusive
public void setMaxInclusive(byte max)
Sets the maximum inclusive value that this XSByte can hold.
max
- the maximum inclusive value this XSByte can be
setMinExclusive
public void setMinExclusive(Byte min)
Sets the minimum exclusive value that this XSByte can hold.
setMinExclusive
public void setMinExclusive(byte min)
Sets the minimum exclusive value that this XSByte can hold.
setMinInclusive
public void setMinInclusive(Byte min)
Sets the minimum inclusive value that this XSByte can hold.
setMinInclusive
public void setMinInclusive(byte min)
Sets the minimum inclusive value that this XSByte can hold.
validationCode
public void validationCode(JSourceCode jsc,
String fixedValue,
String fieldValidatorInstanceName)
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.
- validationCode in interface XSType
jsc
- the JSourceCode to fill in.fixedValue
- a fixed value to use if anyfieldValidatorInstanceName
- the name of the FieldValidator
that the configured TypeValidator should be added to.