|
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
Abstract base class for SOMElement and SOMAttribute. SOMBasic provides the functionality common to both SOMElement and SOMAttribute.
SOMAttribute
,
SOMElement
,
SOMSchema
, Serialized FormConstructor Summary | |
protected |
SOMBasic(org.xml.sax.Attributes attrs,
SOMObject parent)
constructor for use with SAX parser, loading SOM from a file. |
|
SOMBasic(SOMBasic ref)
Construct an element using another element as a reference. |
|
SOMBasic(java.lang.String name)
|
Method Summary | |
SOMAnnotation |
addAnnotation()
create a new empty annotation element for this element. |
SOMAnnotation |
addAnnotation(SOMAnnotation annotation)
add an annotation to the schema tree. |
protected SOMObject |
addChild(java.lang.String tagName,
org.xml.sax.Attributes attrs)
|
SOMComplexType |
addComplexType()
sets the element type to a newly constructed complexType. |
SOMDocumentation |
addDocumentation(java.lang.String info)
adds a documentation element to a new annotation element for this element. |
SOMSequence |
addSequence()
adds a SOMSequence to this element. |
SOMSimpleType |
addSimpleType()
sets the element type to a newly constructed simpleType. |
java.util.Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
java.lang.String |
getDefault()
get the "default" attribute. |
java.lang.String |
getFixed()
get the "fixed" attribute. |
java.lang.String |
getForm()
get the "form" attribute. |
java.lang.String |
getName()
get the "name" attribute. |
SOMReference |
getRef()
get the "ref" attribute. |
SOMType |
getType()
get the "type" attribute. |
boolean |
isRef()
Is this element a reference to another element. |
boolean |
isValidatingContent()
get the current validation setting |
SOMAnnotation |
removeAnnotation()
set the annotation for this type to null. |
void |
setDefault(java.lang.String p_default)
The default attribute for an schema element. |
void |
setFixed(java.lang.String fixed)
The fixed attribute for an schema element. |
void |
setForm(java.lang.String form)
set the "form" attribute. |
void |
setName(java.lang.String name)
set the "name" attribute. |
void |
setRef(SOMReference ref)
set the element to which this element should reference. |
void |
setRef(SOMUnresolvedReference ref)
set the element to which this element should reference. |
SOMType |
setType(SOMType type)
sets the type attribute or complexType/simpleType for the element. |
void |
toXML(java.io.Writer rtn,
int indent)
|
Methods inherited from class com.bea.schema.SOMObject |
attributesToXML,
doIndent,
getID_UQ,
getID,
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 SOMBasic(java.lang.String name)
public SOMBasic(SOMBasic ref)
<element name="name" type="xsd:string"> <element ref="name"> SOMElement name = new SOMElement("name", SOMType.STRING); SOMElement name_reference = new SOMElement(name);
ref
- the element to be used as a reference pointprotected SOMBasic(org.xml.sax.Attributes attrs, SOMObject parent)
attrs
- Method Detail |
public void setName(java.lang.String name)
name
- the element namepublic void setForm(java.lang.String form)
If form is present and its actual value is qualified, or if form is absent and the actual value of attributeFormDefault on the <schema>ancestor is qualified, then the actual value of the targetNamespace [attribute] of the parent <schema> element information item, or absent if there is none, otherwise absent.
Valid values for form:
form
- qualified or unqualifiedpublic void setFixed(java.lang.String fixed)
Setting the fixed attribute causes the default attribute to be erased. fixed and default must not both be present.
fixed
- the value for this instance document elementpublic void setDefault(java.lang.String p_default)
Setting the default attribute causes the fixed attribute to be erased. fixed and "default" must not both be present.
p_default
- The default value for this elementpublic void setRef(SOMReference ref)
ref
- the element to be referencedpublic void setRef(SOMUnresolvedReference ref)
ref
- the element to be referencedpublic SOMType setType(SOMType type)
type
- The type value for this elementpublic java.lang.String getName()
public java.lang.String getForm()
public java.lang.String getDefault()
public java.lang.String getFixed()
public boolean isRef()
public SOMReference getRef()
public SOMType getType()
public SOMDocumentation addDocumentation(java.lang.String info)
SOMAttribute myAttr ... ... SOMAnnotation note = myAttr.addAnnotation(); note.addDocumentation(info);
info
- The documentation string to be addedpublic SOMAnnotation addAnnotation()
public SOMAnnotation addAnnotation(SOMAnnotation annotation)
annotation
- a previously created annotationpublic SOMAnnotation removeAnnotation()
public SOMComplexType addComplexType()
public SOMSimpleType addSimpleType()
public SOMSequence addSequence()
protected SOMObject addChild(java.lang.String tagName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
public java.util.Map getAttributes(boolean getAll)
getAll
- get all attributespublic void toXML(java.io.Writer rtn, int indent) throws java.io.IOException
public boolean isValidatingContent()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |