Public Member Functions

org.exolab.castor.builder.types.XSQName Class Reference

Inheritance diagram for org.exolab.castor.builder.types.XSQName:
org.exolab.castor.builder.types.XSPatternBase org.exolab.castor.builder.types.XSType

List of all members.

Public Member Functions

 XSQName ()
String createFromJavaObjectCode (String variableName)
int getMaxLength ()
int getMinLength ()
int getLength ()
boolean hasMaxLength ()
boolean hasMinLength ()
boolean hasLength ()
void setLength (int length)
void setMaxLength (int maxLength)
void setMinLength (int minLength)
void setFacets (SimpleType simpleType)
JType getJType ()
void validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)

Detailed Description

The XML Schema QName type

Note : A QName (prefix:NCName) is mapped in memory {URI}NCName.

Author:
Arnaud Blandin
Version:
Revision:
1.4
Date:
2004/10/01 13:24:47

Constructor & Destructor Documentation

org.exolab.castor.builder.types.XSQName.XSQName (  ) 

Member Function Documentation

String org.exolab.castor.builder.types.XSQName.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

Parameters:
variableName the name of the Object
Returns:
the String necessary to convert an Object to an instance of this XSType

Reimplemented from org.exolab.castor.builder.types.XSType.

JType org.exolab.castor.builder.types.XSQName.getJType (  )  [virtual]

Returns the JType that this XSType represents

Returns:
the JType that this XSType represents

Implements org.exolab.castor.builder.types.XSType.

int org.exolab.castor.builder.types.XSQName.getLength (  ) 

Returns the length that this type must have

Returns:
the length that this type must have
int org.exolab.castor.builder.types.XSQName.getMaxLength (  ) 

Returns the maximum length occurances of this type can be. A negative value denotes no maximum length

Returns:
the maximum length facet
int org.exolab.castor.builder.types.XSQName.getMinLength (  ) 

Returns the minimum length occurances of this type can be.

Returns:
the minimum length facet
boolean org.exolab.castor.builder.types.XSQName.hasLength (  ) 

Returns true if a length has been set

Returns:
true if a length has been set
boolean org.exolab.castor.builder.types.XSQName.hasMaxLength (  ) 

Returns true if a maximum length has been set

Returns:
true if a maximum length has been set
boolean org.exolab.castor.builder.types.XSQName.hasMinLength (  ) 

Returns true if a minimum length has been set

Returns:
true if a minimum length has been set
void org.exolab.castor.builder.types.XSQName.setLength ( int  length  ) 

Sets the length of this XSString. While setting the length, the maxLength and minLength are also set up to this length

Parameters:
length the length to set
See also:
setMaxLength
setMinLength

References org.exolab.castor.builder.types.XSQName.setMaxLength(), and org.exolab.castor.builder.types.XSQName.setMinLength().

Referenced by org.exolab.castor.builder.types.XSQName.setFacets().

void org.exolab.castor.builder.types.XSQName.setMaxLength ( int  maxLength  ) 

Sets the maximum length of this XSString. To remove the max length facet, use a negative value.

Parameters:
maxLength the maximum length for occurances of this type

Referenced by org.exolab.castor.builder.types.XSQName.setFacets(), and org.exolab.castor.builder.types.XSQName.setLength().

void org.exolab.castor.builder.types.XSQName.setMinLength ( int  minLength  ) 

Sets the minimum length of this XSString.

Parameters:
minLength the minimum length for occurances of this type

Referenced by org.exolab.castor.builder.types.XSQName.setFacets(), and org.exolab.castor.builder.types.XSQName.setLength().

void org.exolab.castor.builder.types.XSQName.validationCode ( JSourceCode  jsc,
String  fixedValue,
String  fieldValidatorInstanceName 
) [virtual]

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.

Parameters:
fixedValue a fixed value to use if any
jsc the JSourceCode to fill in.
fieldValidatorInstanceName the name of the FieldValidator that the configured TypeValidator should be added to.

Implements org.exolab.castor.builder.types.XSType.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties