|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 | |
protected |
SOMElement(org.xml.sax.Attributes attrs,
SOMObject parent)
constructor for use with SAX parser, loading SOM from a file. |
|
SOMElement(SOMElement ref)
Construct an <element> |
|
SOMElement(java.lang.String name)
Construct an <element> where type is defaulted to SOMType.STRING |
|
SOMElement(java.lang.String name,
SOMType type)
Construct an <element> |
Method Summary | |
boolean |
getAbstract()
get the "abstract" attribute. |
java.lang.String |
getAbstractString()
get the "abstract" attribute. |
java.util.Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
java.lang.String |
getBlock()
get the "block" attribute. |
SOMElement |
getElement(java.lang.String locationString)
Lookup an element within this element. |
protected SOMElement |
getElement(java.util.StringTokenizer parsedLocation)
Lookup an element within this element using tokenized virtual path. |
java.lang.String |
getEquivClass()
get the "equivClass" attribute. |
java.lang.String |
getFinal()
get the "final" attribute. |
java.lang.String |
getID()
<xsd:element> |
int |
getMaxOccurs()
maxOccurs attribute for schema element. |
java.lang.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. |
java.lang.String |
getMinOccursString()
minOccurs attribute for schema element, as a string. |
boolean |
getNullable()
get the "nullable" attribute. |
java.lang.String |
getNullableString()
get the "nullable" attribute. |
java.lang.String |
getSubstitutionGroup()
get the "substitutionGroup" attribute. |
boolean |
isValid(org.w3c.dom.Element element,
java.util.List errorList)
Validates an DOM Element against an XML Schema. |
void |
setAbstract(boolean p_abstract)
set the "abstract" attribute. |
void |
setAbstract(java.lang.String p_abstract)
set the "abstract" attribute. |
void |
setBlock(java.lang.String p_block)
set the "block" attribute. |
void |
setEquivClass(java.lang.String p_equivClass)
set the "equivclass" attribute. |
void |
setFinal(java.lang.String p_final)
set the "final" attribute. |
void |
setMaxOccurs(int maxOccurs)
The maxOccurs attribute for schema element. |
void |
setMaxOccurs(java.lang.String maxOccurs)
The maxOccurs attribute for schema element. |
void |
setMinOccurs(int minOccurs)
The minOccurs attribute for schema element. |
void |
setMinOccurs(java.lang.String minOccurs)
The minOccurs attribute for schema element. |
void |
setNullable(boolean nullable)
set the "nullable" attribute. |
void |
setNullable(java.lang.String nullable)
set the "block" attribute. |
void |
setSubstitutionGroup(java.lang.String substitutionGroup)
set the "substitionGroup" attribute. |
Methods inherited from class com.bea.schema.SOMBasic |
addAnnotation,
addAnnotation,
addChild,
addComplexType,
addDocumentation,
addSequence,
addSimpleType,
getDefault,
getFixed,
getForm,
getName,
getRef,
getType,
isRef,
isValidatingContent,
removeAnnotation,
setDefault,
setFixed,
setForm,
setName,
setRef,
setRef,
setType,
toXML |
Methods inherited from class com.bea.schema.SOMObject |
attributesToXML,
doIndent,
getID_UQ,
getParent,
getParentSchema,
isCircularReference,
isSchemaChild,
setIndent,
setParent,
toString,
toXML,
toXML,
toXML,
trace,
trace |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SOMElement(java.lang.String name)
name
- <element name="...">public SOMElement(java.lang.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="...">protected SOMElement(org.xml.sax.Attributes attrs, SOMObject parent)
attrs
- Method Detail |
public void setAbstract(boolean p_abstract)
p_abstract
- true or false, default is falsepublic void setAbstract(java.lang.String p_abstract)
p_abstract
- true or false, default is falsesetAbstract(boolean)
public void setBlock(java.lang.String p_block)
public void setEquivClass(java.lang.String p_equivClass)
public void setFinal(java.lang.String p_final)
public void setMinOccurs(java.lang.String minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMinOccurs(int minOccurs)
minOccurs
- a nonNegativeIntegerpublic void setMaxOccurs(java.lang.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 setNullable(boolean nullable)
public void setNullable(java.lang.String nullable)
nullable
- boolean value in string formpublic void setSubstitutionGroup(java.lang.String substitutionGroup)
public int getMinOccurs(DefaultDocumentOptions options)
options
- DefaultDocumentOptions used in createDefaultDocumentpublic int getMinOccurs()
public java.lang.String getMinOccursString()
public int getMaxOccurs()
public java.lang.String getMaxOccursString()
public boolean getAbstract()
public java.lang.String getAbstractString()
public java.lang.String getBlock()
public java.lang.String getEquivClass()
public java.lang.String getFinal()
public boolean getNullable()
public java.lang.String getNullableString()
public java.lang.String getSubstitutionGroup()
public java.lang.String getID()
public java.util.Map getAttributes(boolean getAll)
getAll
- get all attributespublic SOMElement getElement(java.lang.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)
protected SOMElement getElement(java.util.StringTokenizer parsedLocation)
this method is used by SOMSchema.getElement and SOMElement.getElement to walk the <element> definitions
parsedLocation
- preparsed virtual pathpublic boolean isValid(org.w3c.dom.Element element, java.util.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
-
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |