|
||||||||||
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.SOMBasic
com.bea.schema.SOMElement
<element> The XML representation for an element declaration schema component is an <element> element information item. It specifies a type definition for an element either by reference or explicitly, and may provide occurrence and default information.
SOMSchema
,
Serialized FormConstructor Summary | |
SOMElement(SOMElement ref)
Construct an <element> |
|
SOMElement(String name)
Construct an <element> where type is defaulted to SOMType.STRING |
|
SOMElement(String name,
SOMType type)
Construct an <element> |
Method Summary | |
boolean |
getAbstract()
get the "abstract" attribute. |
String |
getAbstractString()
get the "abstract" attribute. |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
String |
getBlock()
get the "block" attribute. |
SOMElement |
getElement(String locationString)
Lookup an element within this element. |
String |
getEquivClass()
get the "equivClass" attribute. |
String |
getFinal()
get the "final" attribute. |
String |
getID()
<xsd:element> |
int |
getMaxOccurs()
maxOccurs attribute for schema element. |
String |
getMaxOccursString()
maxOccurs attribute for schema element, as a string. |
int |
getMinOccurs()
minOccurs attribute for schema element. |
int |
getMinOccurs(DefaultDocumentOptions options)
minOccurs attribute for schema element. |
String |
getMinOccursString()
minOccurs attribute for schema element, as a string. |
boolean |
getNillable()
get the "nillable" attribute. |
String |
getNillableString()
get the "nillable" attribute. |
String |
getSubstitutionGroup()
get the "substitutionGroup" attribute. |
boolean |
isGlobal()
Is this a top-level global element? |
boolean |
isValid(Element element,
List errorList)
Validates an DOM Element against an XML Schema. |
void |
setAbstract(boolean p_abstract)
set the "abstract" attribute. |
void |
setAbstract(String p_abstract)
set the "abstract" attribute. |
void |
setBlock(String p_block)
set the "block" attribute. |
void |
setEquivClass(String p_equivClass)
set the "equivclass" attribute. |
void |
setFinal(String p_final)
set the "final" attribute. |
void |
setMaxOccurs(int maxOccurs)
The maxOccurs attribute for schema element. |
void |
setMaxOccurs(String maxOccurs)
The maxOccurs attribute for schema element. |
void |
setMinOccurs(int minOccurs)
The minOccurs attribute for schema element. |
void |
setMinOccurs(String minOccurs)
The minOccurs attribute for schema element. |
void |
setNillable(boolean nillable)
set the "nillable" attribute. |
void |
setNillable(String nillable)
set the "block" attribute. |
void |
setSubstitutionGroup(String substitutionGroup)
set the "substitionGroup" attribute. |
Methods inherited from class com.bea.schema.SOMBasic |
addAnnotation, addAnnotation, addComplexType, addDocumentation, addSequence, addSimpleType, contains, createDefault, getAnnotation, getDefault, getFixed, getForm, getName, getRef, getType, getTypeName, isRef, isValidatingContent, removeAnnotation, setDefault, setFixed, setForm, setName, setRef, setRef, setType, 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, setParent, setTargetNamespace, toString, toXML, toXML, toXML |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SOMElement(String name)
name
- <element name="...">public SOMElement(String name, SOMType type)
name
- <element name="...">type
- <element type="..."> If the type parameter is null,
the default type is set to SOMType.STRING.public SOMElement(SOMElement ref)
ref
- <element ref="...">Method Detail |
public void setAbstract(boolean p_abstract)
p_abstract
- true or false, default is falsepublic void setAbstract(String p_abstract)
p_abstract
- true or false, default is falsesetAbstract(boolean)
public void setBlock(String p_block)
public void setEquivClass(String p_equivClass)
public void setFinal(String p_final)
public void setMinOccurs(String minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMinOccurs(int minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMaxOccurs(String maxOccurs)
maxOccurs
- a nonNegativeInteger or "unbounded"public void setMaxOccurs(int maxOccurs)
Any negative number is treated as "unbounded"
maxOccurs
- a nonNegativeInteger or -1 (unbounded)public void setNillable(boolean nillable)
public void setNillable(String nillable)
nillable
- boolean value in string formpublic void setSubstitutionGroup(String substitutionGroup)
public int getMinOccurs(DefaultDocumentOptions options)
options
- DefaultDocumentOptions used in createDefaultDocument
public int getMinOccurs()
public String getMinOccursString()
public int getMaxOccurs()
public String getMaxOccursString()
public boolean getAbstract()
public String getAbstractString()
public String getBlock()
public String getEquivClass()
public String getFinal()
public boolean getNillable()
public String getNillableString()
public String getSubstitutionGroup()
public String getID()
getID
in interface SOMReference
getID
in class SOMObject
public Map getAttributes(boolean getAll)
getAttributes
in class SOMBasic
getAll
- get all attributes
public SOMElement getElement(String locationString)
Virtual Path nodes must be separated by the forward slash, "/"
locationString
- a virtual element path where nodes are separated by the forward slash, "/"
SOMSchema.getElement(java.lang.String)
public boolean isGlobal()
public boolean isValid(Element element, List errorList)
The error list is cleared before beginning the validation. The List implementation used must support the clear() method.
Elements of the list are instances of the class SOMValidationException.
element
- errorList
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |