|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMLSchemaBuilder
| Method Summary | |
|---|---|
java.lang.String |
convertToSchema()
convert this data type to its xml schema definition. |
void |
deriveDataType(java.lang.String nameSpace,
java.lang.String localName)
derive this data type from its parent and from the restrictions set on it. |
java.lang.String |
getBaseDataTypeName()
get the name of the parent data type of this type. |
java.lang.String |
getCurrentDataTypeName()
get the name of this data type. |
java.util.Vector |
getCurrentRestrictionNames()
get the names of al restrictions that are set on this data type. |
java.lang.String |
getRestrictionValue(java.lang.String restrictionName)
get the value of the given restriction. |
boolean |
isValid(java.lang.String value)
check if the given value is allowed by the restrictions in this schema. |
void |
readFromSchema(java.util.Vector types)
create this data type by reading schema its definitions. |
void |
setRestrictionValue(java.lang.String restrictionName,
java.lang.String value)
set the given restriction with its value on this data type. |
| Method Detail |
|---|
java.lang.String getBaseDataTypeName()
java.lang.String getCurrentDataTypeName()
void deriveDataType(java.lang.String nameSpace,
java.lang.String localName)
throws DatatypeException
nameSpace - the name space of the data type.localName - the name of this data type.
DatatypeException
void setRestrictionValue(java.lang.String restrictionName,
java.lang.String value)
throws DatatypeException
restrictionNamet - the name of restriction (e.g. minLength).value - the value of that restriction.
DatatypeExceptionjava.lang.String getRestrictionValue(java.lang.String restrictionName)
restrictionNamet - the name of restriction (e.g. minLength).
java.util.Vector getCurrentRestrictionNames()
boolean isValid(java.lang.String value)
value - the value to be checked.
java.lang.String convertToSchema()
void readFromSchema(java.util.Vector types)
throws DatatypeException
types - a Vector containing xml definitions for this and
its parent data types.
DatatypeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||