|
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
abstract base class for all SOM classes
SOMSchema
, Serialized FormConstructor Summary | |
SOMObject()
|
Method Summary | |
protected SOMObject |
addChild(java.lang.String tagName,
org.xml.sax.Attributes attrs)
for use with the SAX parser while loading a SOM from a file. |
protected void |
addPrefixMapping(java.lang.String prefix,
java.lang.String uri)
add a new prefix mapping to this object. |
protected void |
attributesToXML(java.io.Writer rtn,
java.util.Map attrs)
internal utility to print attributes to XML used in toXML(). |
protected void |
collectEffectivePrefixMappings(java.util.Map mappings)
|
protected void |
doIndent(java.io.Writer buf,
int indent)
|
java.lang.String |
getContainmentXPath()
|
java.util.Map |
getEffectivePrefixMappings()
get a map of all the prefix->URI mappings that are in effect for this SOMObject. |
java.lang.String |
getID_UQ()
get the unqualified ID (no namespace). |
abstract java.lang.String |
getID()
Returns a printable element tag for this Schema Object |
SOMObject |
getParent()
get a reference to the parent object |
java.lang.String |
getParentName()
get the name of the nearest named parent for this object |
SOMSchema |
getParentSchema()
get a reference to the parent schema for this object |
java.lang.String |
getPrefixForTargetNamespace()
get an appropriate namespace prefix for the current target namespace, or null if no prefix can be found or no target namespace has been set. |
java.lang.String |
getTargetNamespace()
get the value of the targetNamespace attribute for this schema, or null if none was specified. |
java.lang.String |
getURIForPrefix(java.lang.String prefix)
get the URI mapped to a given namespace prefix within this SOMObject, or null if no URI is mapped to the given prefix. |
boolean |
isCircularReference(SOMReference reference)
|
boolean |
isSchemaChild()
determines if the immediate parent object is the schema element. |
protected void |
namespacePrefixesToXML(java.io.Writer rtn)
internal utility to print namespace prefix mapping attributes into output XML. |
static java.lang.String |
removeNamespaceQualifier(java.lang.String value)
remove the namespace qualifier from a string. |
protected java.lang.String |
removePrefixMapping(java.lang.String prefix)
remove a new prefix mapping from this object. |
static void |
setIndent(java.lang.String indentToken)
Allows the user to specify a token to be used for the indent when formatting output XML. |
void |
setParent(SOMObject parent)
|
java.lang.String |
toString()
The String representation of the XML Schema Object. |
java.lang.String |
toXML()
The String representation of the XML Schema Object. |
java.lang.String |
toXML(java.lang.String encoding)
The String representation of the XML Schema Object. |
void |
toXML(java.io.Writer rtn)
Outputs a formatted XML representation of SOMObject. |
abstract void |
toXML(java.io.Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
protected static boolean |
trace(int lvl)
|
protected static void |
trace(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SOMObject()
Method Detail |
protected SOMObject addChild(java.lang.String tagName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
tagName
- tag name from parserattrs
- attributes from parserprotected void addPrefixMapping(java.lang.String prefix, java.lang.String uri)
protected java.lang.String removePrefixMapping(java.lang.String prefix)
public java.util.Map getEffectivePrefixMappings()
public java.lang.String getURIForPrefix(java.lang.String prefix)
protected void collectEffectivePrefixMappings(java.util.Map mappings)
public java.lang.String getTargetNamespace()
public java.lang.String getPrefixForTargetNamespace()
public java.lang.String toString()
public java.lang.String toXML()
public java.lang.String toXML(java.lang.String encoding)
public void toXML(java.io.Writer rtn) throws java.io.IOException
rtn
- printable XML Schemapublic abstract void toXML(java.io.Writer rtn, int indent) throws java.io.IOException
rtn
- printable XML Schemaindent
- the indent level for formatting at which to start this schema object.protected void namespacePrefixesToXML(java.io.Writer rtn) throws java.io.IOException
protected void attributesToXML(java.io.Writer rtn, java.util.Map attrs) throws java.io.IOException
The Map used is not reusable. The Map is not guaranteed to be the same after this method completes.
rtn
- the output streamattrs
- the attributes to be written to the streampublic SOMSchema getParentSchema()
public java.lang.String getParentName()
public java.lang.String getContainmentXPath()
public SOMObject getParent()
public void setParent(SOMObject parent)
public boolean isSchemaChild()
public abstract java.lang.String getID()
protected void doIndent(java.io.Writer buf, int indent) throws java.io.IOException
public java.lang.String getID_UQ()
public static java.lang.String removeNamespaceQualifier(java.lang.String value)
value
- qualified datapublic static void setIndent(java.lang.String indentToken)
setIndent("\t");
indentToken
- public boolean isCircularReference(SOMReference reference)
protected static final boolean trace(int lvl)
protected static final void trace(java.lang.String msg)
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |