oracle.xml.classgen
Class CGXSDElement
java.lang.Object
|
+--oracle.xml.classgen.CGXSDElement
- public abstract class CGXSDElement
- extends java.lang.Object
This class serves as the base class for the all the generated classes
corresponding to the XML Schema generated by Schema Class Generator
Type | Field |
protected java.lang.Object |
type
|
Type | Method |
protected void |
addAttribute(java.lang.String attName,
java.lang.String attValue)
Add the attribute of a given node to the hashtable. |
protected void |
addElement(java.lang.Object elem)
Add the elements of a given element node to the vector correspondig
to the elements. |
java.util.Hashtable |
getAttributes()
Return the attributes |
java.util.Vector |
getChildElements()
Get the vector having all the local elements |
java.lang.String |
getNodeValue()
Return the node value |
void |
print(XMLOutputStream out)
Print an element node |
void |
printAttributes(XMLOutputStream out,
java.lang.String name,
java.lang.String namespace)
Print an attribute node |
protected void |
setNodeValue(java.lang.String value)
Set the node value of an element |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
type
protected java.lang.Object type
CGXSDElement
public CGXSDElement()
addElement
protected void addElement(java.lang.Object elem)
- Add the elements of a given element node to the vector correspondig
to the elements.
- Parameters:
elem
- the object which needs to be added
getChildElements
public java.util.Vector getChildElements()
- Get the vector having all the local elements
- Returns:
- elemChild vector
addAttribute
protected void addAttribute(java.lang.String attName,
java.lang.String attValue)
- Add the attribute of a given node to the hashtable.
- Parameters:
attName
- the attribute nameattValue
- the attribute value
getAttributes
public java.util.Hashtable getAttributes()
- Return the attributes
- Returns:
- attributes the hashtable containing attribute name and value
setNodeValue
protected void setNodeValue(java.lang.String value)
- Set the node value of an element
- Parameters:
value
- the node value
getNodeValue
public java.lang.String getNodeValue()
- Return the node value
print
public void print(XMLOutputStream out)
throws java.io.IOException
- Print an element node
- Parameters:
out
- the stream where the output is printed
printAttributes
public void printAttributes(XMLOutputStream out,
java.lang.String name,
java.lang.String namespace)
throws java.io.IOException
- Print an attribute node
- Parameters:
out
- the stream where the output is printedname
- the attribute name