|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.xmlschema.util.XMLSchemaBuilderImpl
public class XMLSchemaBuilderImpl
Constructor Summary | |
---|---|
XMLSchemaBuilderImpl()
|
|
XMLSchemaBuilderImpl(XSDatatype baseType)
|
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. |
XSDatatype |
getBaseDataType()
|
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 |
getDataCurrentType()
|
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 |
setBaseDataType(java.lang.String baseTypeName)
|
void |
setCurrentDataType(XSDatatype currentType)
|
void |
setRestrictionValue(java.lang.String restrictionName,
java.lang.String value)
set the given restriction with its value on this data type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLSchemaBuilderImpl()
public XMLSchemaBuilderImpl(XSDatatype baseType)
Method Detail |
---|
public void setCurrentDataType(XSDatatype currentType)
public void setBaseDataType(java.lang.String baseTypeName) throws DatatypeException
DatatypeException
public XSDatatype getBaseDataType()
public java.lang.String getBaseDataTypeName()
getBaseDataTypeName
in interface XMLSchemaBuilder
public java.lang.String getCurrentDataTypeName()
getCurrentDataTypeName
in interface XMLSchemaBuilder
public java.lang.String getDataCurrentType()
public void deriveDataType(java.lang.String nameSpace, java.lang.String localName) throws DatatypeException
deriveDataType
in interface XMLSchemaBuilder
nameSpace
- the name space of the data type.localName
- the name of this data type.
DatatypeException
public void setRestrictionValue(java.lang.String restrictionName, java.lang.String value) throws DatatypeException
setRestrictionValue
in interface XMLSchemaBuilder
restrictionNamet
- the name of restriction (e.g. minLength).value
- the value of that restriction.
DatatypeException
public java.lang.String getRestrictionValue(java.lang.String restrictionName)
getRestrictionValue
in interface XMLSchemaBuilder
restrictionNamet
- the name of restriction (e.g. minLength).
public java.util.Vector getCurrentRestrictionNames()
getCurrentRestrictionNames
in interface XMLSchemaBuilder
public boolean isValid(java.lang.String value)
isValid
in interface XMLSchemaBuilder
value
- the value to be checked.
public java.lang.String convertToSchema()
convertToSchema
in interface XMLSchemaBuilder
public void readFromSchema(java.util.Vector types) throws DatatypeException
readFromSchema
in interface XMLSchemaBuilder
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 |