|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.schema.impl.SchemaComplexTypeImpl
com.jaxfront.core.schema.impl.SchemaSimpleTypeImpl
public class SchemaSimpleTypeImpl
Represent a simple XML schema type. The XSD constants from the W3C XML Schema specification are defined in the XSD Oracle Parser (oracle.xml.parser.schema.XSDTypeConstants)
Field Summary |
---|
Fields inherited from interface com.jaxfront.core.schema.SchemaType |
---|
NO_NAME |
Constructor Summary | |
---|---|
SchemaSimpleTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaSimpleType based on a oracle XSDSimpleType, a XMLSchema and a SchemaNode. |
|
SchemaSimpleTypeImpl(org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaSimpleType based on a oracle XSDSimpleType, a XMLSchema and a SchemaNode. |
Method Summary | |
---|---|
java.lang.String |
getBaseName()
Returns the base name (if type is an extension or restriction) of the inherited type. |
java.lang.String[] |
getChoices()
Returns the possible choice values (from the facet 'enumeration') defined in a XML Schema. |
java.util.Hashtable |
getEnumerationAnnotation(java.lang.String enumeration)
Return an annotation for an enumeration entry for the passed value or null if none has been defined in the XSD. |
int |
getFractionDigits()
|
double |
getMaxExclValue()
|
double |
getMaxInclValue()
|
long |
getMaxLength()
Returns the required maximum length. |
double |
getMinExclValue()
|
double |
getMinInclValue()
|
long |
getMinLength()
Returns the required minimum length. |
int |
getPrimitiveDataType()
Returns the index of the primitive data type. e.q. |
java.lang.String |
getRegularExpression()
Returns the regular expression if any. |
int |
getTotalDigits()
|
java.lang.String |
getWhitespace()
|
boolean |
hasRegularExpression()
Returns true if a regular expression is defined for this type. |
boolean |
isAnyType()
Returns true if the content of this type can be of any type |
boolean |
isAttribute()
Returns true if this type is an attribute. |
boolean |
isBoolean()
Returns if the primitive data type of this type is Boolean. |
boolean |
isChoice()
Returns true if this schema type is a choice. |
boolean |
isDate()
Returns if the primitive data type of this type is Date. |
boolean |
isDateTime()
Returns if the primitive data type of this type is DateTime. |
boolean |
isDouble()
Returns tru if the primitive data type of this type is a float |
boolean |
isDuration()
Returns if the primitive data type of this type is Duration. |
boolean |
isFloat()
Returns tru if the primitive data type of this type is a float |
boolean |
isGroup()
Returns true if this schema type is a group. |
boolean |
isID()
Returns true if the primitive data type is an ID. |
boolean |
isNumber()
Returns if the primitive data type of this type is a number like Float, Double or Decimal. |
boolean |
isSimple()
Returns true if this schema type is simple. |
boolean |
isString()
Returns if the primitive data type of this type is String. |
boolean |
isTime()
Returns if the primitive data type of this type is Date. |
void |
validate(Type source,
java.lang.String value)
Validates a string against the defined facets in the XML Schema. |
Methods inherited from class com.jaxfront.core.schema.impl.SchemaComplexTypeImpl |
---|
addRecursiveElement, countSubNodes, createQName, getAttributeSet, getChild, getChoiceMaxOccurs, getChoiceMinOccurs, getElementSet, getName, getNamespace, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getRefName, getSchemaElement, getSimpleContent, getType, hasBeenAnalysed, isAbstract, isAnonymous, isEmptyComplexType, isGlobal, isMixedContent, isRecursive, release, setIsSimpleContent, setRecursive, setType, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jaxfront.core.schema.SchemaType |
---|
addRecursiveElement, countSubNodes, getChoiceMaxOccurs, getChoiceMinOccurs, getName, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getSchemaElement, getType, hasBeenAnalysed, isAbstract, isEmptyComplexType, isGlobal, isMixedContent, isRecursive, release, setIsSimpleContent, setRecursive, setType |
Methods inherited from interface com.jaxfront.core.schema.QName |
---|
getNamespace, getRefName |
Constructor Detail |
---|
public SchemaSimpleTypeImpl(org.apache.xerces.xs.XSTypeDefinition node, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema Elementpublic SchemaSimpleTypeImpl(java.lang.String nameSpace, java.lang.String name, org.apache.xerces.xs.XSTypeDefinition node, XMLSchema schema, SchemaNode element)
node
- an oracle XSD Node (from oracle schema parser)schema
- an XML Schemaelement
- an XML Schema ElementMethod Detail |
---|
public java.lang.String getBaseName()
getBaseName
in interface SchemaType
getBaseName
in class SchemaComplexTypeImpl
public java.lang.String[] getChoices()
getChoices
in interface SchemaSimpleType
public int getPrimitiveDataType()
getPrimitiveDataType
in interface SchemaSimpleType
public boolean isAttribute()
isAttribute
in interface SchemaSimpleType
public boolean isChoice()
isChoice
in interface SchemaType
isChoice
in class SchemaComplexTypeImpl
public boolean isGroup()
isGroup
in interface SchemaType
isGroup
in class SchemaComplexTypeImpl
public boolean isSimple()
isSimple
in interface SchemaType
isSimple
in class SchemaComplexTypeImpl
public void validate(Type source, java.lang.String value) throws ValidationException
validate
in interface SchemaSimpleType
ValidationException
- thrown if the submitted string is not validpublic boolean hasRegularExpression()
SchemaSimpleType
hasRegularExpression
in interface SchemaSimpleType
public long getMaxLength()
SchemaSimpleType
getMaxLength
in interface SchemaSimpleType
SchemaSimpleType.getMinLength()
public long getMinLength()
SchemaSimpleType
getMinLength
in interface SchemaSimpleType
SchemaSimpleType.getMinLength()
public boolean isNumber()
isNumber
in interface SchemaSimpleType
public boolean isFloat()
isFloat
in interface SchemaSimpleType
public boolean isDouble()
isDouble
in interface SchemaSimpleType
public boolean isDate()
SchemaSimpleType
isDate
in interface SchemaSimpleType
SchemaSimpleType.isDate()
public boolean isDateTime()
SchemaSimpleType
isDateTime
in interface SchemaSimpleType
SchemaSimpleType.isDateTime()
public boolean isDuration()
isDuration
in interface SchemaSimpleType
public boolean isString()
isString
in interface SchemaSimpleType
public boolean isID()
isID
in interface SchemaSimpleType
public boolean isTime()
isTime
in interface SchemaSimpleType
public boolean isAnyType()
SchemaSimpleType
isAnyType
in interface SchemaSimpleType
SchemaSimpleType.isAnyType()
public boolean isBoolean()
isBoolean
in interface SchemaSimpleType
public java.lang.String getRegularExpression()
SchemaSimpleType
getRegularExpression
in interface SchemaSimpleType
SchemaSimpleType.getRegularExpression()
public double getMaxInclValue()
getMaxInclValue
in interface SchemaSimpleType
public double getMaxExclValue()
getMaxExclValue
in interface SchemaSimpleType
public double getMinInclValue()
getMinInclValue
in interface SchemaSimpleType
public int getFractionDigits()
getFractionDigits
in interface SchemaSimpleType
public int getTotalDigits()
getTotalDigits
in interface SchemaSimpleType
public java.lang.String getWhitespace()
getWhitespace
in interface SchemaSimpleType
public double getMinExclValue()
getMinExclValue
in interface SchemaSimpleType
public java.util.Hashtable getEnumerationAnnotation(java.lang.String enumeration)
SchemaSimpleType
getEnumerationAnnotation
in interface SchemaSimpleType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |