|
||||||||||
| 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 Element
public 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 Element| Method Detail |
|---|
public java.lang.String getBaseName()
getBaseName in interface SchemaTypegetBaseName in class SchemaComplexTypeImplpublic java.lang.String[] getChoices()
getChoices in interface SchemaSimpleTypepublic int getPrimitiveDataType()
getPrimitiveDataType in interface SchemaSimpleTypepublic boolean isAttribute()
isAttribute in interface SchemaSimpleTypepublic boolean isChoice()
isChoice in interface SchemaTypeisChoice in class SchemaComplexTypeImplpublic boolean isGroup()
isGroup in interface SchemaTypeisGroup in class SchemaComplexTypeImplpublic boolean isSimple()
isSimple in interface SchemaTypeisSimple in class SchemaComplexTypeImpl
public void validate(Type source,
java.lang.String value)
throws ValidationException
validate in interface SchemaSimpleTypeValidationException - thrown if the submitted string is not validpublic boolean hasRegularExpression()
SchemaSimpleType
hasRegularExpression in interface SchemaSimpleTypepublic long getMaxLength()
SchemaSimpleType
getMaxLength in interface SchemaSimpleTypeSchemaSimpleType.getMinLength()public long getMinLength()
SchemaSimpleType
getMinLength in interface SchemaSimpleTypeSchemaSimpleType.getMinLength()public boolean isNumber()
isNumber in interface SchemaSimpleTypepublic boolean isFloat()
isFloat in interface SchemaSimpleTypepublic boolean isDouble()
isDouble in interface SchemaSimpleTypepublic boolean isDate()
SchemaSimpleType
isDate in interface SchemaSimpleTypeSchemaSimpleType.isDate()public boolean isDateTime()
SchemaSimpleType
isDateTime in interface SchemaSimpleTypeSchemaSimpleType.isDateTime()public boolean isDuration()
isDuration in interface SchemaSimpleTypepublic boolean isString()
isString in interface SchemaSimpleTypepublic boolean isID()
isID in interface SchemaSimpleTypepublic boolean isTime()
isTime in interface SchemaSimpleTypepublic boolean isAnyType()
SchemaSimpleType
isAnyType in interface SchemaSimpleTypeSchemaSimpleType.isAnyType()public boolean isBoolean()
isBoolean in interface SchemaSimpleTypepublic java.lang.String getRegularExpression()
SchemaSimpleType
getRegularExpression in interface SchemaSimpleTypeSchemaSimpleType.getRegularExpression()public double getMaxInclValue()
getMaxInclValue in interface SchemaSimpleTypepublic double getMaxExclValue()
getMaxExclValue in interface SchemaSimpleTypepublic double getMinInclValue()
getMinInclValue in interface SchemaSimpleTypepublic int getFractionDigits()
getFractionDigits in interface SchemaSimpleTypepublic int getTotalDigits()
getTotalDigits in interface SchemaSimpleTypepublic java.lang.String getWhitespace()
getWhitespace in interface SchemaSimpleTypepublic double getMinExclValue()
getMinExclValue in interface SchemaSimpleTypepublic 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 | |||||||||