|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.schema.SOMObject
com.bea.schema.SOMExtension
com.bea.schema.SOMRestriction
<restriction> A restricting construct for schema components. The XML representation for restricting a type schema component is either a <restriction>, a <list> or a <union> element information item.
The restriction element provides the ability to add facets to a simpleType definition.
Constructor Summary | |
SOMRestriction(SOMType base)
|
Method Summary | |
SOMAttribute |
addAttribute(SOMAttribute attribute)
add an <attribute> to this complexType. |
SOMAttributeGroup |
addAttributeGroup(SOMAttributeGroup attribute)
add an <attributeGroup> to this complexType. |
String |
createDefault()
Limited implementation. |
Iterator |
getFacets()
returns all facets in this restriction. |
String |
getID()
Returns a printable element tag for this Schema Object |
SOMType |
getType()
returns the type that is being restricted. |
SOMFacet |
removeFacet(String facet)
remove a facet element from this restriction element. |
SOMFacet |
setDuration(String val)
Deprecated. |
SOMFacet |
setEncoding(String val)
Deprecated. |
SOMFacet |
setEnumeration(String val)
|
SOMFacet |
setFacet(String facet_name,
String value)
Use the setFacet method to place restrictions on a previously defined type. |
SOMFacet |
setFractionDigits(String val)
|
SOMFacet |
setLength(String val)
|
SOMFacet |
setMaxExclusive(String val)
|
SOMFacet |
setMaxInclusive(String val)
|
SOMFacet |
setMaxLength(String val)
|
SOMFacet |
setMinExclusive(String val)
|
SOMFacet |
setMinInclusive(String val)
|
SOMFacet |
setMinLength(String val)
|
void |
setParent(SOMObject parent)
|
SOMFacet |
setPattern(String val)
|
SOMFacet |
setPeriod(String val)
Deprecated. |
SOMFacet |
setPrecision(String val)
Deprecated. |
SOMFacet |
setScale(String val)
Deprecated. |
SOMFacet |
setTotalDigits(String val)
|
void |
setType(SOMType type)
|
SOMFacet |
setWhiteSpace(String val)
|
Methods inherited from class com.bea.schema.SOMExtension |
addAnnotation, addAttribute, addAttribute, contains, createDefault, getAnnotation, getAttributeElements, getAttributeGroups, getAttributes, getBase, listAttributesExtended, removeAllAttributeGroups, removeAllAttributes, removeAnnotation, removeAttribute, removeAttributeGroup, setBase, setBase, toXML |
Methods inherited from class com.bea.schema.SOMObject |
addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, isSchemaChild, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setTargetNamespace, toString, toXML, toXML, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SOMRestriction(SOMType base)
Method Detail |
public void setType(SOMType type)
public SOMType getType()
public String getID()
SOMObject
getID
in class SOMExtension
public Iterator getFacets()
public SOMFacet setFacet(String facet_name, String value) throws ArrayIndexOutOfBoundsException
For example,
value
- a value for the new facet.
ArrayIndexOutOfBoundsException
- If the facet_type is not a valid index defined in
SOMFacet, ArrayIndexOutOfBoundsException will be thrown.
public SOMFacet setLength(String val)
public SOMFacet setMinLength(String val)
public SOMFacet setMaxLength(String val)
public SOMFacet setPattern(String val)
public SOMFacet setEnumeration(String val)
public SOMFacet setWhiteSpace(String val)
public SOMFacet setMaxInclusive(String val)
public SOMFacet setMaxExclusive(String val)
public SOMFacet setMinExclusive(String val)
public SOMFacet setMinInclusive(String val)
public SOMFacet setTotalDigits(String val)
public SOMFacet setFractionDigits(String val)
public SOMFacet setPrecision(String val)
public SOMFacet setScale(String val)
public SOMFacet setEncoding(String val)
public SOMFacet setDuration(String val)
public SOMFacet setPeriod(String val)
public SOMFacet removeFacet(String facet)
facet
- the facet name from SOMFacet declared facets
public SOMAttribute addAttribute(SOMAttribute attribute)
SOMExtension
addAttribute
in class SOMExtension
attribute
- the attribute to add
public SOMAttributeGroup addAttributeGroup(SOMAttributeGroup attribute)
SOMExtension
addAttributeGroup
in class SOMExtension
attribute
- the attributeGroup to add
public void setParent(SOMObject parent)
setParent
in class SOMObject
public String createDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |