Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.jbo.mom.xml
Class ElementDefElement

java.lang.Object
  extended by oracle.jbo.mom.xml.WrapperDefElement
      extended by oracle.jbo.mom.xml.ElementDefElement

All Implemented Interfaces:
DefElement, DefNode

public class ElementDefElement
extends WrapperDefElement

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
ElementDefElement(Element element)
           

 

Method Summary
 java.lang.String getAttribute(java.lang.String param1)
           
 NamedNodeMap getAttributes()
           
 java.util.ArrayList getAttrsList()
          Gets all the attributes of the element, in no particular order.
 NodeList getChildNodes()
           
 NodeList getChildrenByTagName(java.lang.String sName)
           
 NodeList getChildrenByTagName(java.lang.String uri, java.lang.String localName)
           
 java.util.ArrayList getChildrenList(short[] nodeTypes, java.lang.String childName)
          Gets the child nodes of the given types and node name.
 Element getElement()
           
protected  DefElement getFirstChildByTagName(java.lang.String name)
           
protected  DefElement getFirstElementByTagName(java.lang.String name)
          Returns the first DefElement descendant (preorder) with the specified tag name.
protected  DefElement getImmediateFirstElementByTagName(java.lang.String name)
          Returns the first immediate child with the specified tag name.
 java.lang.String getLocalName()
           
 java.lang.String getNamespaceURI()
           
 java.lang.String getNodeName()
           
 Document getOwnerDocument()
           
 java.util.ArrayList getSimilarChildrenList(java.lang.String childName)
          Gets the child elements with node names "similar to" the given node name (i.e.
static DefElement normalize(java.lang.Object obj)
           
 java.lang.String readUserNodeValue(java.lang.String attrName)
          Given the Object name and Attribute name loads that attribute
 void removeAttribute(java.lang.String param1)
           
 void setAttribute(java.lang.String param1, java.lang.String param2)
           

 

Methods inherited from class oracle.jbo.mom.xml.WrapperDefElement
findChildElement, getChildren, getChildrenList, getChildrenList, getChildrenList, getElementName, getNodeType, getNodeValue, getSimilarChildren, getTagName, loadProperties, loadPropertiesMap, loadTable, loadTableMap, readBoolean, readCDataObject, readClassName, readInt, readLong, readString, readStringArray, readStringArrayList, readStringArrayListElement, readUserObject, readUserObjectTrim, readUserStringArrayListElement, readUserStringElementsMap

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ElementDefElement

public ElementDefElement(Element element)

Method Detail

normalize

public static final DefElement normalize(java.lang.Object obj)

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface DefNode
Specified by:
getLocalName in class WrapperDefElement

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface DefNode
Specified by:
getNamespaceURI in class WrapperDefElement

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface DefNode
Specified by:
getNodeName in class WrapperDefElement

getChildrenList

public java.util.ArrayList getChildrenList(short[] nodeTypes,
                                           java.lang.String childName)
Description copied from interface: DefElement
Gets the child nodes of the given types and node name.
Specified by:
getChildrenList in interface DefElement
Specified by:
getChildrenList in class WrapperDefElement
Parameters:
nodeTypes - 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.
Returns:
Returns the child ArrayList.

getSimilarChildrenList

public java.util.ArrayList getSimilarChildrenList(java.lang.String childName)
Description copied from interface: DefElement
Gets the child elements with node names "similar to" the given node name (i.e. whose node names contain the given node name as a substring).
Specified by:
getSimilarChildrenList in interface DefElement
Specified by:
getSimilarChildrenList in class WrapperDefElement
Parameters:
childName - the Substring within node name of the child.
Returns:
Returns the child ArrayList.

getAttrsList

public java.util.ArrayList getAttrsList()
Description copied from interface: DefElement
Gets all the attributes of the element, in no particular order.
Specified by:
getAttrsList in interface DefElement
Specified by:
getAttrsList in class WrapperDefElement
Returns:
ArrayList of DefNode objects that represent the attributes.

readUserNodeValue

public java.lang.String readUserNodeValue(java.lang.String attrName)
Description copied from interface: DefElement
Given the Object name and Attribute name loads that attribute
Specified by:
readUserNodeValue in interface DefElement
Overrides:
readUserNodeValue in class WrapperDefElement
Parameters:
attrName - Name of the Attribute
Returns:
Returns the Attribute

getAttribute

public java.lang.String getAttribute(java.lang.String param1)
Specified by:
getAttribute in interface DefElement
Specified by:
getAttribute in class WrapperDefElement

setAttribute

public void setAttribute(java.lang.String param1,
                         java.lang.String param2)
Specified by:
setAttribute in interface DefElement
Overrides:
setAttribute in class WrapperDefElement

removeAttribute

public void removeAttribute(java.lang.String param1)
Specified by:
removeAttribute in interface DefElement
Overrides:
removeAttribute in class WrapperDefElement

getAttributes

public NamedNodeMap getAttributes()
Specified by:
getAttributes in interface DefElement
Overrides:
getAttributes in class WrapperDefElement

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface DefElement
Overrides:
getChildNodes in class WrapperDefElement

getChildrenByTagName

public NodeList getChildrenByTagName(java.lang.String sName)
Specified by:
getChildrenByTagName in interface DefElement
Overrides:
getChildrenByTagName in class WrapperDefElement

getChildrenByTagName

public NodeList getChildrenByTagName(java.lang.String uri,
                                     java.lang.String localName)
Specified by:
getChildrenByTagName in interface DefElement
Overrides:
getChildrenByTagName in class WrapperDefElement

getOwnerDocument

public Document getOwnerDocument()
Specified by:
getOwnerDocument in interface DefElement
Overrides:
getOwnerDocument in class WrapperDefElement

getElement

public Element getElement()

getFirstChildByTagName

protected DefElement getFirstChildByTagName(java.lang.String name)
Specified by:
getFirstChildByTagName in class WrapperDefElement

getFirstElementByTagName

protected DefElement getFirstElementByTagName(java.lang.String name)
Description copied from class: WrapperDefElement
Returns the first DefElement descendant (preorder) with the specified tag name.
Specified by:
getFirstElementByTagName in class WrapperDefElement
Parameters:
name - The tag name to match on.
Returns:
The first matching descendant (or null if none).

getImmediateFirstElementByTagName

protected DefElement getImmediateFirstElementByTagName(java.lang.String name)
Description copied from class: WrapperDefElement
Returns the first immediate child with the specified tag name.
Specified by:
getImmediateFirstElementByTagName in class WrapperDefElement
Parameters:
name - The tag name to match on, or "*" for first child.
Returns:
The first matching child (or null if none).

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


Copyright © 1997, 2012, Oracle. All rights reserved.