|
||||||||
| 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.AbstractPatternFacet
org.exolab.castor.builder.types.AbstractWhiteSpaceFacet
org.exolab.castor.builder.types.AbstractLengthFacet
org.exolab.castor.builder.types.XSBase64Binary
public final class XSBase64Binary
The xsd:base64Binary XML Schema datatype.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
Name of this XSType. |
static short |
TYPE
Type number of this XSType. |
| Fields inherited from class org.exolab.castor.builder.types.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 Summary | |
|---|---|
XSBase64Binary(boolean useJava50)
Create a new XSBase64Binary object. |
|
| 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.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. |
java.lang.String |
newInstanceCode()
Returns the Java code neccessary to create a new instance of the JType associated with this XSType. |
void |
validationCode(JSourceCode jsc,
java.lang.String fixedValue,
java.lang.String validatorInstanceName)
Creates the validation code for an instance of this XSType. |
| Methods inherited from class org.exolab.castor.builder.types.AbstractLengthFacet |
|---|
codeLengthFacet, getLength, getMaxLength, getMinLength, hasLength, hasMaxLength, hasMinLength, setFacet, setLength, setLengthFacet, setMaxLength, setMinLength |
| Methods inherited from class org.exolab.castor.builder.types.AbstractWhiteSpaceFacet |
|---|
codeWhiteSpaceFacet, getWhiteSpace, hasWhiteSpace, setWhiteSpace, setWhiteSpaceFacet |
| Methods inherited from class org.exolab.castor.builder.types.AbstractPatternFacet |
|---|
addPattern, addPatternFacet, codePatternFacet, getPatterns |
| Methods inherited from class org.exolab.castor.builder.types.XSType |
|---|
createDefaultValueWithString, isCollection, isEnumerated, setAsEnumerated, setFacets |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
public static final short TYPE
| Constructor Detail |
|---|
public XSBase64Binary(boolean useJava50)
useJava50 - If true, Java 5 code artifacts will be generated.| Method Detail |
|---|
public java.lang.String getName()
getName in class XSTypepublic short getType()
getType in class XSTypepublic boolean isPrimitive()
isPrimitive in class XSTypepublic boolean isDateTime()
isDateTime in class XSTypepublic JType getJType()
getJType in class XSTypepublic java.lang.String newInstanceCode()
newInstanceCode in class XSTypepublic java.lang.String createToJavaObjectCode(java.lang.String variableName)
createToJavaObjectCode in class XSTypevariableName - The name of the instance variable.
public java.lang.String createFromJavaObjectCode(java.lang.String variableName)
createFromJavaObjectCode in class XSTypevariableName - The name of the Object.
public void validationCode(JSourceCode jsc,
java.lang.String fixedValue,
java.lang.String validatorInstanceName)
validationCode in class XSTypejsc - 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.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||