public final class XSUnsignedLong extends AbstractDigitsFacet
Modifier and Type | Field and Description |
---|---|
static String |
MAX_VALUE
A constant holding the maximum value an xsd:long can have,
264-1.
|
static String |
MIN_VALUE
A constant holding the minimum value an xsd:long can have, 0.
|
static String |
NAME
Name of this XSType.
|
static short |
TYPE
Type number of this XSType.
|
ANYURI_TYPE, BASE64BINARY_TYPE, BOOLEAN_TYPE, BYTE_TYPE, CLASS, COLLECTION, DATE_TYPE, DATETIME_TYPE, DECIMAL_TYPE, DOUBLE_TYPE, DURATION_TYPE, ENTITIES, ENTITY, FLOAT_TYPE, GDAY_TYPE, GMONTH_TYPE, GMONTHDAY_TYPE, GYEAR_TYPE, GYEARMONTH_TYPE, HEXBINARY_TYPE, ID_TYPE, IDREF_TYPE, IDREFS_TYPE, INT_TYPE, INTEGER_TYPE, LANGUAGE_TYPE, LONG_TYPE, NAME_TYPE, NCNAME_TYPE, NEGATIVE_INTEGER_TYPE, NMTOKEN_TYPE, NMTOKENS_TYPE, NON_NEGATIVE_INTEGER_TYPE, NON_POSITIVE_INTEGER_TYPE, NORMALIZEDSTRING_TYPE, NOTATION_TYPE, NULL, POSITIVE_INTEGER_TYPE, QNAME_TYPE, SHORT_TYPE, STRING_TYPE, TIME_TYPE, TOKEN_TYPE, UNSIGNED_BYTE_TYPE, UNSIGNED_INT_TYPE, UNSIGNED_LONG_TYPE, UNSIGNED_SHORT_TYPE
Constructor and Description |
---|
XSUnsignedLong()
No-arg constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
createFromJavaObjectCode(String variableName)
Returns the string necessary to convert an Object to an instance of this
XSType.
|
String |
createToJavaObjectCode(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.
|
String |
getName()
Returns the name of this XSType.
|
short |
getType()
Returns the type of this XSType.
|
boolean |
isDateTime()
Returns true if the XSType represents an XML Schema date/time type.
|
boolean |
isPrimitive()
Returns true if this XSType represents a primitive type.
|
String |
newInstanceCode()
Returns the Java code neccessary to create a new instance of the JType
associated with this XSType.
|
void |
validationCode(JSourceCode jsc,
String fixedValue,
String validatorInstanceName)
Creates the validation code for an instance of this XSType.
|
codeDigitsFacet, getFractionDigits, getTotalDigits, setDigitsFacet, setFacet, setFractionDigits, setTotalDigits
codeRangeFacet, getMaxExclusive, getMaxInclusive, getMinExclusive, getMinInclusive, getNegativeInfinity, getPositiveInfinity, hasMaximum, hasMinimum, hasNegavtiveInfinity, hasPositiveInfinity, setMaxExclusive, setMaxInclusive, setMinExclusive, setMinInclusive, setNegativeInfinity, setPositiveInfinity, setRangeFacet
codeWhiteSpaceFacet, getWhiteSpace, hasWhiteSpace, setWhiteSpace, setWhiteSpaceFacet
addPattern, addPatternFacet, codePatternFacet, getPatterns
createDefaultValueWithString, isCollection, isEnumerated, setAsEnumerated, setFacets
public static final String NAME
public static final short TYPE
public static final String MIN_VALUE
public static final String MAX_VALUE
public String getName()
XSType
public short getType()
XSType
public boolean isPrimitive()
XSType
isPrimitive
in class XSType
public boolean isDateTime()
XSType
isDateTime
in class XSType
public JType getJType()
XSType
public String newInstanceCode()
XSType
newInstanceCode
in class XSType
public String createToJavaObjectCode(String variableName)
XSType
createToJavaObjectCode
in class XSType
variableName
- The name of the instance variable.public String createFromJavaObjectCode(String variableName)
XSType
createFromJavaObjectCode
in class XSType
variableName
- The name of the Object.public void validationCode(JSourceCode jsc, String fixedValue, String validatorInstanceName)
XSType
validationCode
in class XSType
jsc
- The JSourceCode to fill in.fixedValue
- A fixed value to use if any.validatorInstanceName
- The name of the FieldValidator that the configured
TypeValidator should be added to.Copyright © 2021. All rights reserved.