|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SchemaSimpleType
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 | |
|---|---|
static short |
WHITESPACE_COLLAPSE
|
static short |
WHITESPACE_PRESERVE
|
static short |
WHITESPACE_REPLACE
|
| Fields inherited from interface com.jaxfront.core.schema.SchemaType |
|---|
NO_NAME |
| Method Summary | |
|---|---|
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()
|
short |
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 |
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 if the primitive data type of this type is a double. |
boolean |
isDuration()
Returns if the primitive data type of this type is Duration. |
boolean |
isFloat()
Returns if the primitive data type of this type is a float. |
boolean |
isFloatingNumber()
|
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 |
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(SimpleType source,
java.lang.String value)
Validates a string against the defined facets in the XML Schema. |
| Methods inherited from interface com.jaxfront.core.schema.SchemaType |
|---|
addRecursiveElement, countSubNodes, getBaseName, getChoiceMaxOccurs, getChoiceMinOccurs, getName, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getSchemaElement, getType, hasBeenAnalysed, isAbstract, isChoice, isEmptyComplexType, isGlobal, isGroup, isMixedContent, isRecursive, isSimple, release, setIsSimpleContent, setRecursive, setType |
| Methods inherited from interface com.jaxfront.core.schema.QName |
|---|
getNamespace, getRefName |
| Field Detail |
|---|
static final short WHITESPACE_COLLAPSE
static final short WHITESPACE_PRESERVE
static final short WHITESPACE_REPLACE
| Method Detail |
|---|
java.lang.String[] getChoices()
java.util.Hashtable getEnumerationAnnotation(java.lang.String enumeration)
int getFractionDigits()
double getMaxExclValue()
double getMaxInclValue()
long getMaxLength()
double getMinExclValue()
double getMinInclValue()
long getMinLength()
int getPrimitiveDataType()
java.lang.String getRegularExpression()
int getTotalDigits()
short getWhitespace()
boolean hasRegularExpression()
boolean isAnyType()
boolean isAttribute()
boolean isBoolean()
boolean isDate()
boolean isDateTime()
boolean isDouble()
boolean isDuration()
boolean isFloat()
boolean isFloatingNumber()
boolean isID()
boolean isNumber()
boolean isString()
boolean isTime()
void validate(SimpleType source,
java.lang.String value)
throws ValidationException
ValidationException - thrown if the submitted string is not valid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||