|
||||||||||
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.SOMSimpleContent
<simpleContent> Alternative content for complexType's. simpleContent elements must have either a restriction or an extension for a sub-element.
SOMComplexType
,
Serialized FormConstructor Summary | |
SOMSimpleContent(SOMExtension extension)
|
|
SOMSimpleContent(SOMRestriction restriction)
|
Method Summary | |
SOMExtension |
add(SOMExtension extension)
add an <extension> or <restriction>. |
SOMAnnotation |
addAnnotation(SOMAnnotation annotation)
add an annotation. |
SOMAttribute |
addAttribute(SOMAttribute attribute)
utility for adding attributes to child, restriction or extension. |
boolean |
contains(SOMObject child)
Determine if an object is child of this element. |
void |
createDefault(DefaultDocumentOptions options,
Element current)
Not implemented. |
Map |
getAttributes(boolean getAll)
retrieve the attributes for this schema element. |
SOMExtension |
getExtension()
|
String |
getID()
Returns a printable element tag for this Schema Object |
SOMRestriction |
getRestriction()
|
SOMAnnotation |
removeAnnotation()
set the annotation at this content type to null. |
void |
toXML(Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
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 SOMSimpleContent(SOMRestriction restriction)
public SOMSimpleContent(SOMExtension extension)
Method Detail |
public String getID()
SOMObject
getID
in class SOMObject
public Map getAttributes(boolean getAll)
getAll
- get all attributes
public SOMAttribute addAttribute(SOMAttribute attribute)
Same as getExtenstion().addAttribute(attribute)
attribute
- attribute to be added
public SOMExtension add(SOMExtension extension)
extension
- extension to add, ignored if null
public SOMRestriction getRestriction()
public SOMExtension getExtension()
public SOMAnnotation addAnnotation(SOMAnnotation annotation)
annotation
- a previously created annotation
public SOMAnnotation removeAnnotation()
public boolean contains(SOMObject child)
child
- the object in question
public void toXML(Writer rtn, int indent) throws IOException
SOMObject
toXML
in class SOMObject
rtn
- printable XML Schemaindent
- the indent level for formatting at which to start this schema object.
IOException
- if IOExcpetion is thrown by underlying java.io.Writerpublic void createDefault(DefaultDocumentOptions options, Element current)
options
- current
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |