|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.jbo.mom.xml.WrapperDefElement
public abstract class WrapperDefElement
This abstract class implements the DefElement interface
by creating a wrapper around some sort of object that behaves
roughly like an immutable Element.
The concrete subclasses ElementDefElement and
MElementDefElement use an Element or an
MElement as the wrapped object.
DefElement| Field Summary |
|---|
| Fields inherited from interface oracle.jbo.mom.xml.DefElement |
|---|
NODETYPES_TEXT_CDATA |
| Fields inherited from interface oracle.jbo.mom.xml.DefNode |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, ELEMENT_NODE, TEXT_NODE |
| Constructor Summary | |
|---|---|
WrapperDefElement()
|
|
| Method Summary | |
|---|---|
DefElement |
findChildElement(java.lang.String childName)
Finds the first child element of the given node name |
abstract java.lang.String |
getAttribute(java.lang.String param1)
|
NamedNodeMap |
getAttributes()
|
abstract java.util.ArrayList |
getAttrsList()
Gets all the attributes of the element, in no particular order. |
NodeList |
getChildNodes()
|
java.util.Vector |
getChildren(java.lang.String childName)
Gets the child elements of the given node name. |
NodeList |
getChildrenByTagName(java.lang.String sName)
|
NodeList |
getChildrenByTagName(java.lang.String uri,
java.lang.String localName)
|
java.util.ArrayList |
getChildrenList()
Gets all the child elements. |
java.util.ArrayList |
getChildrenList(short[] nodeTypes)
Gets all the child nodes of the given types. |
abstract java.util.ArrayList |
getChildrenList(short[] nodeTypes,
java.lang.String childName)
Gets the child nodes of the given types and node name. |
java.util.ArrayList |
getChildrenList(java.lang.String childName)
Gets the child elements of the given node name. |
java.lang.String |
getElementName()
Retrieves the node name of the element as a string. |
protected abstract DefElement |
getFirstChildByTagName(java.lang.String name)
|
protected abstract DefElement |
getFirstElementByTagName(java.lang.String name)
Returns the first DefElement descendant (preorder)
with the specified tag name. |
protected abstract DefElement |
getImmediateFirstElementByTagName(java.lang.String name)
Returns the first immediate child with the specified tag name. |
abstract java.lang.String |
getLocalName()
|
abstract java.lang.String |
getNamespaceURI()
|
abstract java.lang.String |
getNodeName()
|
short |
getNodeType()
|
java.lang.String |
getNodeValue()
|
Document |
getOwnerDocument()
|
java.util.Vector |
getSimilarChildren(java.lang.String childName)
Gets the child elements with node names "similar to" the given node name (i.e. |
abstract java.util.ArrayList |
getSimilarChildrenList(java.lang.String childName)
Gets the child elements with node names "similar to" the given node name (i.e. |
java.lang.String |
getTagName()
|
java.util.Hashtable |
loadProperties()
Loads the Jbo Properties |
java.util.HashMap |
loadPropertiesMap()
Loads the Jbo Properties |
java.util.Hashtable |
loadTable(java.lang.String attrName,
java.lang.String elemName,
java.lang.String name,
java.lang.String value)
|
java.util.HashMap |
loadTableMap(java.lang.String attrName,
java.lang.String elemName,
java.lang.String name,
java.lang.String value)
|
boolean |
readBoolean(java.lang.String attrName)
Given the Object name and Attribute name loads that attribute |
java.lang.String |
readCDataObject(java.lang.String attrName)
|
java.lang.Class |
readClassName(java.lang.String attrName)
|
int |
readInt(java.lang.String attrName)
Given the Object name and Attribute name loads that attribute and returns the int value. |
long |
readLong(java.lang.String attrName)
Given the Object name and Attribute name loads that attribute |
java.lang.String |
readString(java.lang.String attrName)
Given the Object name and Attribute name loads that attribute |
java.util.Vector |
readStringArray(java.lang.String attrName)
Given the Attribute name loads the array |
java.util.ArrayList |
readStringArrayList(java.lang.String attrName)
Given the Attribute name loads the array |
java.util.ArrayList |
readStringArrayListElement(java.lang.String attrName)
Given the Attribute name loads the array |
java.lang.String |
readUserNodeValue(java.lang.String attrName)
Given the Object name and Attribute name loads that attribute |
java.lang.String |
readUserObject(java.lang.String attrName)
|
java.lang.String |
readUserObjectTrim(java.lang.String attrName)
|
java.util.ArrayList |
readUserStringArrayListElement(java.lang.String elemName)
Given the Attribute name loads the array |
java.util.HashMap |
readUserStringElementsMap(java.lang.String elemName)
|
void |
removeAttribute(java.lang.String param1)
|
void |
setAttribute(java.lang.String param1,
java.lang.String param2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperDefElement()
| Method Detail |
|---|
public abstract java.lang.String getLocalName()
getLocalName in interface DefNodepublic abstract java.lang.String getNamespaceURI()
getNamespaceURI in interface DefNodepublic abstract java.lang.String getNodeName()
getNodeName in interface DefNodepublic short getNodeType()
getNodeType in interface DefNodepublic java.lang.String getNodeValue()
getNodeValue in interface DefNodepublic java.lang.String getElementName()
DefElement
getElementName in interface DefElementpublic java.util.Vector getChildren(java.lang.String childName)
DefElement
getChildren in interface DefElementchildName - the node name of the child - null indicates all names.
public DefElement findChildElement(java.lang.String childName)
DefElement
findChildElement in interface DefElementchildName - the node name of the child - null indicates all names.
public java.util.ArrayList getChildrenList()
DefElement
getChildrenList in interface DefElementpublic java.util.ArrayList getChildrenList(short[] nodeTypes)
DefElement
getChildrenList in interface DefElementnodeTypes - the types of nodes to be retrieved. Notes:
(1) Only ELEMENT_NODE, TEXT_NODE, and
CDATA_SECTION_NODE are currently supported.
(2) The order in which node types are listed
has no effect, even on performance.
public java.util.ArrayList getChildrenList(java.lang.String childName)
DefElement
getChildrenList in interface DefElementchildName - the node name of the child - null indicates all names.
public abstract java.util.ArrayList getChildrenList(short[] nodeTypes,
java.lang.String childName)
DefElement
getChildrenList in interface DefElementnodeTypes - the types of nodes to be retrieved. Notes:
(1) Only ELEMENT_NODE, TEXT_NODE, and
CDATA_SECTION_NODE are currently supported.
(2) The order in which node types are listed
has no effect, even on performance.childName - the node name of the child - null indicates all names.
public java.util.Vector getSimilarChildren(java.lang.String childName)
DefElement
getSimilarChildren in interface DefElementchildName - the substring within node name of the child.
public abstract java.util.ArrayList getSimilarChildrenList(java.lang.String childName)
DefElement
getSimilarChildrenList in interface DefElementchildName - the Substring within node name of the child.
public abstract java.util.ArrayList getAttrsList()
DefElement
getAttrsList in interface DefElementpublic int readInt(java.lang.String attrName)
DefElement
readInt in interface DefElementattrName - Name of the Attribute
public long readLong(java.lang.String attrName)
DefElement
readLong in interface DefElementattrName - Name of the Attribute
public boolean readBoolean(java.lang.String attrName)
DefElement
readBoolean in interface DefElementattrName - Name of the Attribute
public java.lang.String readString(java.lang.String attrName)
DefElement
readString in interface DefElementattrName - Name of the Attribute
public java.lang.String readCDataObject(java.lang.String attrName)
readCDataObject in interface DefElementpublic java.lang.String readUserObject(java.lang.String attrName)
readUserObject in interface DefElementpublic java.lang.String readUserObjectTrim(java.lang.String attrName)
readUserObjectTrim in interface DefElementpublic java.lang.String readUserNodeValue(java.lang.String attrName)
DefElement
readUserNodeValue in interface DefElementattrName - Name of the Attribute
public java.util.Vector readStringArray(java.lang.String attrName)
DefElement
readStringArray in interface DefElementattrName - Name of the Attribute
public java.util.ArrayList readStringArrayList(java.lang.String attrName)
DefElement
readStringArrayList in interface DefElementattrName - Name of the Attribute
public java.util.ArrayList readStringArrayListElement(java.lang.String attrName)
DefElement
readStringArrayListElement in interface DefElementattrName - Name of the Attribute
public java.lang.Class readClassName(java.lang.String attrName)
readClassName in interface DefElementpublic java.util.Hashtable loadProperties()
DefElement
loadProperties in interface DefElementpublic java.util.HashMap loadPropertiesMap()
DefElement
loadPropertiesMap in interface DefElement
public java.util.Hashtable loadTable(java.lang.String attrName,
java.lang.String elemName,
java.lang.String name,
java.lang.String value)
loadTable in interface DefElement
public java.util.HashMap loadTableMap(java.lang.String attrName,
java.lang.String elemName,
java.lang.String name,
java.lang.String value)
loadTableMap in interface DefElementpublic java.lang.String getTagName()
getTagName in interface DefElementpublic abstract java.lang.String getAttribute(java.lang.String param1)
getAttribute in interface DefElement
public void setAttribute(java.lang.String param1,
java.lang.String param2)
setAttribute in interface DefElementpublic void removeAttribute(java.lang.String param1)
removeAttribute in interface DefElementpublic NamedNodeMap getAttributes()
getAttributes in interface DefElementpublic NodeList getChildNodes()
getChildNodes in interface DefElementpublic NodeList getChildrenByTagName(java.lang.String sName)
getChildrenByTagName in interface DefElement
public NodeList getChildrenByTagName(java.lang.String uri,
java.lang.String localName)
getChildrenByTagName in interface DefElementpublic Document getOwnerDocument()
getOwnerDocument in interface DefElementprotected abstract DefElement getImmediateFirstElementByTagName(java.lang.String name)
name - The tag name to match on, or "*" for first child.
null if none).protected abstract DefElement getFirstChildByTagName(java.lang.String name)
protected abstract DefElement getFirstElementByTagName(java.lang.String name)
DefElement descendant (preorder)
with the specified tag name.
name - The tag name to match on.
null if none).public java.util.ArrayList readUserStringArrayListElement(java.lang.String elemName)
DefElement
readUserStringArrayListElement in interface DefElementelemName - Name of the child element that is a list of CData strings
public java.util.HashMap readUserStringElementsMap(java.lang.String elemName)
readUserStringElementsMap in interface DefElement
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||