Public Member Functions | Package Attributes

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

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

List of all members.

Public Member Functions

 XSShort ()
 XSShort (boolean asWrapper)
JType getJType ()
Short getMaxExclusive ()
Short getMaxInclusive ()
Short getMinExclusive ()
Short getMinInclusive ()
boolean hasMaximum ()
boolean hasMinimum ()
void setMaxExclusive (short max)
void setMaxExclusive (Short max)
void setMaxInclusive (short max)
void setMaxInclusive (Short max)
void setMinExclusive (short min)
void setMinExclusive (Short min)
void setMinInclusive (short min)
void setMinInclusive (Short min)
void setFacets (SimpleType simpleType)
String createToJavaObjectCode (String variableName)
String createFromJavaObjectCode (String variableName)
void validationCode (JSourceCode jsc, String fixedValue, String fieldValidatorInstanceName)

Package Attributes

Short maxInclusive = null
Short maxExclusive = null
Short minInclusive = null
Short minExclusive = null

Detailed Description

The XML Schema Short type

Author:
Keith Visco
Version:
Revision:
1.5
Date:
2004/10/01 13:24:47

Constructor & Destructor Documentation

org.exolab.castor.builder.types.XSShort.XSShort (  ) 
org.exolab.castor.builder.types.XSShort.XSShort ( boolean  asWrapper  ) 

Member Function Documentation

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

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

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

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

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

Returns the JType that this XSType represents

Returns:
the JType that this XSType represents

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

Short org.exolab.castor.builder.types.XSShort.getMaxExclusive (  ) 

Returns the maximum exclusive value that this XSShort can hold.

Returns:
the maximum exclusive value that this XSShort can hold. If no maximum exclusive value has been set, Null will be returned
See also:
getMaxInclusive

References org.exolab.castor.builder.types.XSShort.maxExclusive.

Referenced by org.exolab.castor.builder.types.XSShort.validationCode().

Short org.exolab.castor.builder.types.XSShort.getMaxInclusive (  ) 

Returns the maximum inclusive value that this XSShort can hold.

Returns:
the maximum inclusive value that this XSShort can hold. If no maximum inclusive value has been set, Null will be returned
See also:
getMaxExclusive

References org.exolab.castor.builder.types.XSShort.maxInclusive.

Referenced by org.exolab.castor.builder.types.XSShort.validationCode().

Short org.exolab.castor.builder.types.XSShort.getMinExclusive (  ) 

Returns the minimum exclusive value that this XSShort can hold.

Returns:
the minimum exclusive value that this XSShort can hold. If no minimum exclusive value has been set, Null will be returned
See also:
getMinInclusive
setMaxInclusive

References org.exolab.castor.builder.types.XSShort.minExclusive.

Referenced by org.exolab.castor.builder.types.XSShort.validationCode().

Short org.exolab.castor.builder.types.XSShort.getMinInclusive (  ) 

Returns the minimum inclusive value that this XSShort can hold.

Returns:
the minimum inclusive value that this XSShort can hold. If no minimum inclusive value has been set, Null will be returned
See also:
getMinExclusive

References org.exolab.castor.builder.types.XSShort.minInclusive.

Referenced by org.exolab.castor.builder.types.XSShort.validationCode().

void org.exolab.castor.builder.types.XSShort.setMaxExclusive ( short  max  ) 

Sets the maximum exclusive value that this XSShort can hold.

Parameters:
max the maximum exclusive value this XSShort can be
See also:
setMaxInclusive

References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.

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

void org.exolab.castor.builder.types.XSShort.setMaxExclusive ( Short  max  ) 

Sets the maximum exclusive value that this XSShort can hold.

Parameters:
max the maximum exclusive value this XSShort can be
See also:
setMaxInclusive

References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.

void org.exolab.castor.builder.types.XSShort.setMaxInclusive ( Short  max  ) 

Sets the maximum inclusive value that this XSShort can hold.

Parameters:
max the maximum inclusive value this XSShort can be
See also:
setMaxExclusive

References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.

void org.exolab.castor.builder.types.XSShort.setMaxInclusive ( short  max  ) 

Sets the maximum inclusive value that this XSShort can hold.

Parameters:
max the maximum inclusive value this XSShort can be
See also:
setMaxExclusive

References org.exolab.castor.builder.types.XSShort.maxExclusive, and org.exolab.castor.builder.types.XSShort.maxInclusive.

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

void org.exolab.castor.builder.types.XSShort.setMinExclusive ( Short  min  ) 

Sets the minimum exclusive value that this XSShort can hold.

Parameters:
max the minimum exclusive value this XSShort can be
See also:
setMinInclusive

References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.

void org.exolab.castor.builder.types.XSShort.setMinExclusive ( short  min  ) 

Sets the minimum exclusive value that this XSShort can hold.

Parameters:
max the minimum exclusive value this XSShort can be
See also:
setMinInclusive

References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.

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

void org.exolab.castor.builder.types.XSShort.setMinInclusive ( Short  min  ) 

Sets the minimum inclusive value that this XSShort can hold.

Parameters:
max the minimum inclusive value this XSShort can be
See also:
setMinExclusive

References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.

void org.exolab.castor.builder.types.XSShort.setMinInclusive ( short  min  ) 

Sets the minimum inclusive value that this XSShort can hold.

Parameters:
max the minimum inclusive value this XSShort can be
See also:
setMinExclusive

References org.exolab.castor.builder.types.XSShort.minExclusive, and org.exolab.castor.builder.types.XSShort.minInclusive.

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

void org.exolab.castor.builder.types.XSShort.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.

References org.exolab.javasource.JSourceCode.add(), org.exolab.javasource.JSourceCode.append(), org.exolab.castor.builder.types.XSType.escapePattern(), org.exolab.castor.builder.types.XSShort.getMaxExclusive(), org.exolab.castor.builder.types.XSShort.getMaxInclusive(), org.exolab.castor.builder.types.XSShort.getMinExclusive(), org.exolab.castor.builder.types.XSShort.getMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.getPattern(), org.exolab.castor.builder.types.XSShort.hasMaximum(), and org.exolab.castor.builder.types.XSShort.hasMinimum().


Member Data Documentation


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