|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.schema.SOMObject
abstract base class for all SOM classes
SOMSchema
,
Serialized FormConstructor Summary | |
SOMObject()
|
Method Summary | |
void |
addPrefixMapping(String prefix,
String uri)
add a new prefix mapping to this object. |
String |
getContainmentXPath()
|
Map |
getEffectivePrefixMappings()
get a map of all the prefix->URI mappings that are in effect for this SOMObject. |
String |
getID_UQ()
get the unqualified ID (no namespace). |
abstract String |
getID()
Returns a printable element tag for this Schema Object |
SOMObject |
getParent()
get a reference to the parent object |
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 |
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. |
String |
getPrefixMapping(String prefix)
get the namespace mapped to the given prefix, or null if no such mapping exists. |
String |
getTargetNamespace()
get the value of the targetNamespace attribute for this schema, or null if none was specified. |
String |
getURIForPrefix(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. |
static String |
msg(String key)
get the i18n resource msg. |
static String |
msg(String key,
Object[] arguments)
get the i18n resource msg. |
static String |
removeNamespaceQualifier(String value)
remove the namespace qualifier from a string. |
String |
removePrefixMapping(String prefix)
remove a new prefix mapping from this object. |
static void |
setIndent(String indentToken)
Allows the user to specify a token to be used for the indent when formatting output XML. |
void |
setParent(SOMObject parent)
|
void |
setTargetNamespace(String targetNamespace)
set the value of the targetNamespace attribute for this schema |
String |
toString()
The String representation of the XML Schema Object. |
String |
toXML()
The String representation of the XML Schema Object. |
String |
toXML(String encoding)
The String representation of the XML Schema Object. |
void |
toXML(Writer rtn)
Outputs a formatted XML representation of SOMObject. |
abstract void |
toXML(Writer rtn,
int indent)
Outputs a formatted XML representation of SOMObject. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SOMObject()
Method Detail |
public void addPrefixMapping(String prefix, String uri)
public String removePrefixMapping(String prefix)
public String getPrefixMapping(String prefix)
public Map getEffectivePrefixMappings()
public String getURIForPrefix(String prefix)
public String getTargetNamespace()
public void setTargetNamespace(String targetNamespace)
public String getPrefixForTargetNamespace()
public String toString()
public String toXML()
public String toXML(String encoding)
public void toXML(Writer rtn) throws IOException
rtn
- printable XML Schema
IOException
- if IOExcpetion is thrown by underlying java.io.Writerpublic abstract void toXML(Writer rtn, int indent) throws IOException
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 SOMSchema getParentSchema()
public String getParentName()
public String getContainmentXPath()
public SOMObject getParent()
public void setParent(SOMObject parent)
public boolean isSchemaChild()
public abstract String getID()
public String getID_UQ()
public static String removeNamespaceQualifier(String value)
value
- qualified data
public static void setIndent(String indentToken)
setIndent("\t");
indentToken
- public boolean isCircularReference(SOMReference reference)
public static String msg(String key, Object[] arguments)
msg uses the java.text.Message class to format messages from the ResourceBundle
key
- property/message keyarguments
- for use with the message resources "{#}"
public static String msg(String key)
key
- property/message key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |