org.exolab.castor.builder.types
public final class XSString extends XSPatternBase
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:00 $
| Constructor Summary | |
|---|---|
| XSString()
Creates a new XSString | |
| Method Summary | |
|---|---|
| String | createFromJavaObjectCode(String variableName)
Returns the String necessary to convert an Object to
an instance of this XSType. |
| JType | getJType()
Returns the JType that this XSType represents |
| int | getLength()
Returns the length that this type must have |
| int | getMaxLength()
Returns the maximum length occurances of this type can be.
|
| int | getMinLength()
Returns the minimum length occurances of this type can be. |
| String | getWhiteSpace()
Returns the whiteSpace facet of this type |
| boolean | hasLength()
Returns true if a length has been set |
| boolean | hasMaxLength()
Returns true if a maximum length has been set |
| boolean | hasMinLength()
Returns true if a minimum length has been set |
| boolean | hasWhiteSpace()
Returns true if the whiteSpace facet is used |
| void | setFacets(SimpleType simpleType) |
| void | setLength(int length)
Sets the length of this XSString.
|
| void | setMaxLength(int maxLength)
Sets the maximum length of this XSString. |
| void | setMinLength(int minLength)
Sets the minimum length of this XSString. |
| void | setWhiteSpace(String value) Sets the whiteSpace facet of this XSString. |
| void | validationCode(JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)
Creates the validation code for an instance of this XSType. |
Parameters: variableName the name of the Object
Returns: the String necessary to convert an Object to an instance of this XSType
Returns: the JType that this XSType represents
Returns: the length that this type must have
Returns: the maximum length facet
Returns: the minimum length facet
Returns: the whiteSpace facet of this type
Returns: true if a length has been set
Returns: true if a maximum length has been set
Returns: true if a minimum length has been set
UNKNOWN: true if the whiteSpace facet is used
Parameters: length the length to set
Parameters: maxLength the maximum length for occurances of this type
Parameters: minLength the minimum length for occurances of this type
Sets the whiteSpace facet of this XSString.
The value of the whiteSpace facet must be one of the following:
Parameters: whiteSpace the whiteSpace value
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.