Public Member Functions | Package Attributes

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

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

List of all members.

Public Member Functions

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

Package Attributes

Float maxInclusive = null
Float maxExclusive = null
Float minInclusive = null
Float minExclusive = null

Detailed Description

The XML Schema Float type

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

Constructor & Destructor Documentation

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

Member Function Documentation

String org.exolab.castor.builder.types.XSFloat.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.XSFloat.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.XSFloat.getJType (  )  [virtual]

Returns the JType that this XSType represents

Returns:
the JType that this XSType represents

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

Float org.exolab.castor.builder.types.XSFloat.getMaxExclusive (  ) 

Returns the maximum exclusive value that this XSFloat can hold.

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

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

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

Float org.exolab.castor.builder.types.XSFloat.getMaxInclusive (  ) 

Returns the maximum inclusive value that this XSFloat can hold.

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

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

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

Float org.exolab.castor.builder.types.XSFloat.getMinExclusive (  ) 

Returns the minimum exclusive value that this XSFloat can hold.

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

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

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

Float org.exolab.castor.builder.types.XSFloat.getMinInclusive (  ) 

Returns the minimum inclusive value that this XSFloat can hold.

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

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

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

void org.exolab.castor.builder.types.XSFloat.setMaxExclusive ( float  max  ) 

Sets the maximum exclusive value that this XSFloat can hold.

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

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

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

void org.exolab.castor.builder.types.XSFloat.setMaxExclusive ( Float  max  ) 

Sets the maximum exclusive value that this XSFloat can hold.

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

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

void org.exolab.castor.builder.types.XSFloat.setMaxInclusive ( Float  max  ) 

Sets the maximum inclusive value that this XSFloat can hold.

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

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

void org.exolab.castor.builder.types.XSFloat.setMaxInclusive ( float  max  ) 

Sets the maximum inclusive value that this XSFloat can hold.

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

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

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

void org.exolab.castor.builder.types.XSFloat.setMinExclusive ( Float  min  ) 

Sets the minimum exclusive value that this XSFloat can hold.

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

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

void org.exolab.castor.builder.types.XSFloat.setMinExclusive ( float  min  ) 

Sets the minimum exclusive value that this XSFloat can hold.

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

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

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

void org.exolab.castor.builder.types.XSFloat.setMinInclusive ( Float  min  ) 

Sets the minimum inclusive value that this XSFloat can hold.

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

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

void org.exolab.castor.builder.types.XSFloat.setMinInclusive ( float  min  ) 

Sets the minimum inclusive value that this XSFloat can hold.

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

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

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

void org.exolab.castor.builder.types.XSFloat.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.XSFloat.getMaxExclusive(), org.exolab.castor.builder.types.XSFloat.getMaxInclusive(), org.exolab.castor.builder.types.XSFloat.getMinExclusive(), org.exolab.castor.builder.types.XSFloat.getMinInclusive(), org.exolab.castor.builder.types.XSPatternBase.getPattern(), org.exolab.castor.builder.types.XSFloat.hasMaximum(), and org.exolab.castor.builder.types.XSFloat.hasMinimum().


Member Data Documentation


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