org.exolab.castor.builder.types

Class XSPositiveInteger


public final class XSPositiveInteger
extends AbstractDigitsFacet

The xsd:positiveInteger XML Schema type.
Version:
$Revision: 7277 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
Authors:
Keith Visco
Ralf Joachim

Field Summary

static String
MIN_VALUE
A constant holding the minimum value an xsd:positiveInteger can have, 1.
static 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, DATETIME_TYPE, DATE_TYPE, DECIMAL_TYPE, DOUBLE_TYPE, DURATION_TYPE, ENTITIES, ENTITY, FLOAT_TYPE, GDAY_TYPE, GMONTHDAY_TYPE, GMONTH_TYPE, GYEARMONTH_TYPE, GYEAR_TYPE, HEXBINARY_TYPE, IDREFS_TYPE, IDREF_TYPE, ID_TYPE, INTEGER_TYPE, INT_TYPE, LANGUAGE_TYPE, LONG_TYPE, NAME_TYPE, NCNAME_TYPE, NEGATIVE_INTEGER_TYPE, NMTOKENS_TYPE, NMTOKEN_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

XSPositiveInteger()
No-arg constructor.
XSPositiveInteger(boolean asWrapper)
Constructs a new XSPositiveInteger.

Method Summary

String
createDefaultValueWithString(String variableName)
String
createFromJavaObjectCode(String variableName)
String
createToJavaObjectCode(String variableName)
JType
getJType()
String
getName()
short
getType()
boolean
isDateTime()
boolean
isPrimitive()
String
newInstanceCode()
void
validationCode(JSourceCode jsc, String fixedValue, String validatorInstanceName)

Methods inherited from class org.exolab.castor.builder.types.AbstractDigitsFacet

codeDigitsFacet, getFractionDigits, getTotalDigits, setDigitsFacet, setFacet, setFractionDigits, setTotalDigits

Methods inherited from class org.exolab.castor.builder.types.AbstractRangeFacet

codeRangeFacet, getMaxExclusive, getMaxInclusive, getMinExclusive, getMinInclusive, hasMaximum, hasMinimum, setFacet, setMaxExclusive, setMaxInclusive, setMinExclusive, setMinInclusive, setRangeFacet

Methods inherited from class org.exolab.castor.builder.types.AbstractWhiteSpaceFacet

codeWhiteSpaceFacet, getWhiteSpace, hasWhiteSpace, setFacet, 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, createFromJavaObjectCode, createToJavaObjectCode, getJType, getName, getType, isCollection, isDateTime, isEnumerated, isPrimitive, newInstanceCode, setAsEnumerated, setFacet, setFacets, validationCode

Field Details

MIN_VALUE

public static final String MIN_VALUE
A constant holding the minimum value an xsd:positiveInteger can have, 1.

NAME

public static final String NAME
Name of this XSType.

TYPE

public static final short TYPE
Type number of this XSType.
Field Value:
44

Constructor Details

XSPositiveInteger

public XSPositiveInteger()
No-arg constructor.

XSPositiveInteger

public XSPositiveInteger(boolean asWrapper)
Constructs a new XSPositiveInteger.
Parameters:
asWrapper - If true, use the java.lang wrapper class.

Method Details

createDefaultValueWithString

public String createDefaultValueWithString(String variableName)
Overrides:
createDefaultValueWithString in interface XSType

createFromJavaObjectCode

public String createFromJavaObjectCode(String variableName)
Overrides:
createFromJavaObjectCode in interface XSType

createToJavaObjectCode

public String createToJavaObjectCode(String variableName)
Overrides:
createToJavaObjectCode in interface XSType

getJType

public JType getJType()
Overrides:
getJType in interface XSType

getName

public String getName()
Overrides:
getName in interface XSType

getType

public short getType()
Overrides:
getType in interface XSType

isDateTime

public boolean isDateTime()
Overrides:
isDateTime in interface XSType

isPrimitive

public boolean isPrimitive()
Overrides:
isPrimitive in interface XSType

newInstanceCode

public String newInstanceCode()
Overrides:
newInstanceCode in interface XSType

validationCode

public void validationCode(JSourceCode jsc,
                           String fixedValue,
                           String validatorInstanceName)
Overrides:
validationCode in interface XSType

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com