Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


oracle.jbo.mom.xml
Class ElementDefWriter

java.lang.Object
  extended by oracle.jbo.mom.xml.ElementDefWriter

All Implemented Interfaces:
DefWriter

public class ElementDefWriter
extends java.lang.Object
implements DefWriter

Field Summary
protected  Element _element
           

 

Constructor Summary
ElementDefWriter(Element element)
           

 

Method Summary
 void commit()
          This method Commits the transaction.
 Element getElement()
           
 void removeAttribute(java.lang.String attrName)
           
 boolean removeElementByAttribute(java.lang.String elemName, java.lang.String attrName, java.lang.String attrValue)
           
 boolean removeElements(java.lang.String elemName)
           
 boolean removeObject(DefPersistable jtpObject)
           
 void rollback()
          This method rolls back the transaction.
 boolean writeBoolean(java.lang.String attrName, boolean value)
          This method writes an attribute of type boolean
 boolean writeByte(java.lang.String attrName, byte value)
          This method writes an attribute of type byte
 boolean writeChar(java.lang.String attrName, char value)
          This method writes an attribute of type char
 boolean writeDouble(java.lang.String attrName, double value)
          This method writes an attribute of type double
 boolean writeFloat(java.lang.String attrName, float value)
          This method writes an attribute of type float
 boolean writeInt(java.lang.String attrName, int value)
          This method writes an attribute of type int
 boolean writeLong(java.lang.String attrName, long value)
          This method writes an attribute of type long
 void writeObject(DefPersistable value)
          This method writes a persistable object including its children to the output stream
 void writeObject(PersistentDefinition jtpObject)
          This method writes a persistable object including its children to the output stream
 boolean writeObject(java.lang.String attrName, java.lang.Object value)
          This method writes an attribute of type object
 boolean writeShort(java.lang.String attrName, short value)
          This method writes an attribute of type short
 boolean writeString(java.lang.String attrName, java.lang.String value)
          This method writes an attribute of type String
 boolean writeStringArray(java.lang.String attrName, java.util.Enumeration value)
          This method writes an attribute of type String
 boolean writeStringArray(java.lang.String attrName, java.util.Iterator value)
          This method writes an attribute of type String
 boolean writeStringArray(java.lang.String attrName, java.lang.Object[] values)
          This method writes an attribute of type String
 boolean writeStringArrayElement(java.lang.String attrName, java.util.Iterator value)
          This method writes an attribute of type String
 boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.util.HashMap value)
          This method writes an attribute of type ArrayList
 boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.util.Hashtable value)
          This method writes an attribute of type Hashtable
 boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elementName, java.lang.String name, java.lang.String sValue, java.util.HashMap table)
          This method writes an attribute of type Hashtable
 boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elementName, java.lang.String name, java.lang.String value, java.util.Hashtable table)
          This method writes an attribute of type Hashtable
 void writeUserObject(java.lang.String elementName, java.lang.String value)
           
 void writeUserObject(java.lang.String ns, java.lang.String elementName, java.lang.String value)
           
 boolean writeUserString(java.lang.String attrName, java.lang.String value)
          This method writes an attribute of type String This method writes the String as it is.
 boolean writeUserStringArrayElement(java.lang.String attrName, java.lang.String elemName, java.util.Iterator value)
           
 boolean writeUserStringElementsMap(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elemName, java.util.HashMap values)
           
 java.lang.Object writeVariableValues(java.lang.String elemName, java.lang.Object[] objs)
           

 

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

 

Field Detail

_element

protected Element _element

Constructor Detail

ElementDefWriter

public ElementDefWriter(Element element)

Method Detail

writeObject

public void writeObject(DefPersistable value)
                 throws DefPersistenceException
Description copied from interface: DefWriter
This method writes a persistable object including its children to the output stream
Specified by:
writeObject in interface DefWriter
Parameters:
value - the DefPersistable object to write
Throws:
DefPersistenceException

writeUserObject

public void writeUserObject(java.lang.String ns,
                            java.lang.String elementName,
                            java.lang.String value)
                     throws DefPersistenceException
Specified by:
writeUserObject in interface DefWriter
Throws:
DefPersistenceException

writeUserObject

public void writeUserObject(java.lang.String elementName,
                            java.lang.String value)
                     throws DefPersistenceException
Specified by:
writeUserObject in interface DefWriter
Throws:
DefPersistenceException

writeObject

public boolean writeObject(java.lang.String attrName,
                           java.lang.Object value)
Description copied from interface: DefWriter
This method writes an attribute of type object
Specified by:
writeObject in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeTable

public boolean writeTable(DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.util.HashMap value)
Description copied from interface: DefWriter
This method writes an attribute of type ArrayList
Specified by:
writeTable in interface DefWriter
Parameters:
jtpObject - the object holding this Attribute
attrName - the name of the Attribute to written
value - the value of the Attribute
Returns:
Returns true if there are no errors in writing the attribute

writeTable

public boolean writeTable(DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.util.Hashtable value)
Description copied from interface: DefWriter
This method writes an attribute of type Hashtable
Specified by:
writeTable in interface DefWriter
Parameters:
jtpObject - the object holding this Attribute
attrName - the name of the Attribute to written
value - the value of the Attribute
Returns:
Returns true if there are no errors in writing the attribute

writeTable

public boolean writeTable(DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.lang.String elementName,
                          java.lang.String name,
                          java.lang.String sValue,
                          java.util.HashMap table)
Description copied from interface: DefWriter
This method writes an attribute of type Hashtable
Specified by:
writeTable in interface DefWriter
Parameters:
jtpObject - the object holding this Attribute
attrName - the name of the Attribute to written
elementName - the value of the name of the attribute.
name - the value of the label of the attribute name
sValue - the value of the label for the attribute value
table - the value of the Attribute
Returns:
Returns true if there are no errors in writing the attribute

writeTable

public boolean writeTable(DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.lang.String elementName,
                          java.lang.String name,
                          java.lang.String value,
                          java.util.Hashtable table)
Description copied from interface: DefWriter
This method writes an attribute of type Hashtable
Specified by:
writeTable in interface DefWriter
Parameters:
jtpObject - the object holding this Attribute
attrName - the name of the Attribute to written
elementName - the value of the name of the attribute.
name - the value of the label of the attribute name
value - the value of the label for the attribute value
table - the value of the Attribute
Returns:
Returns true if there are no errors in writing the attribute

writeString

public boolean writeString(java.lang.String attrName,
                           java.lang.String value)
Description copied from interface: DefWriter
This method writes an attribute of type String
Specified by:
writeString in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeUserString

public boolean writeUserString(java.lang.String attrName,
                               java.lang.String value)
Description copied from interface: DefWriter
This method writes an attribute of type String This method writes the String as it is. The String's Formatting is retained.
Specified by:
writeUserString in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.util.Iterator value)
Description copied from interface: DefWriter
This method writes an attribute of type String
Specified by:
writeStringArray in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Enumeration of values
Returns:
Retuns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.lang.Object[] values)
Description copied from interface: DefWriter
This method writes an attribute of type String
Specified by:
writeStringArray in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
values - Enumeration of values
Returns:
Retuns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.util.Enumeration value)
Description copied from interface: DefWriter
This method writes an attribute of type String
Specified by:
writeStringArray in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Enumeration of values
Returns:
Retuns true if there are no erros in writing the attribute

writeInt

public boolean writeInt(java.lang.String attrName,
                        int value)
Description copied from interface: DefWriter
This method writes an attribute of type int
Specified by:
writeInt in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeShort

public boolean writeShort(java.lang.String attrName,
                          short value)
Description copied from interface: DefWriter
This method writes an attribute of type short
Specified by:
writeShort in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeLong

public boolean writeLong(java.lang.String attrName,
                         long value)
Description copied from interface: DefWriter
This method writes an attribute of type long
Specified by:
writeLong in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeFloat

public boolean writeFloat(java.lang.String attrName,
                          float value)
Description copied from interface: DefWriter
This method writes an attribute of type float
Specified by:
writeFloat in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeDouble

public boolean writeDouble(java.lang.String attrName,
                           double value)
Description copied from interface: DefWriter
This method writes an attribute of type double
Specified by:
writeDouble in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeBoolean

public boolean writeBoolean(java.lang.String attrName,
                            boolean value)
Description copied from interface: DefWriter
This method writes an attribute of type boolean
Specified by:
writeBoolean in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeByte

public boolean writeByte(java.lang.String attrName,
                         byte value)
Description copied from interface: DefWriter
This method writes an attribute of type byte
Specified by:
writeByte in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeChar

public boolean writeChar(java.lang.String attrName,
                         char value)
Description copied from interface: DefWriter
This method writes an attribute of type char
Specified by:
writeChar in interface DefWriter
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Retuns true if there are no erros in writing the attribute

writeObject

public void writeObject(PersistentDefinition jtpObject)
                 throws DefPersistenceException
Description copied from interface: DefWriter
This method writes a persistable object including its children to the output stream
Specified by:
writeObject in interface DefWriter
Parameters:
jtpObject - the PersistentDefinition object to write
Throws:
DefPersistenceException

writeStringArrayElement

public boolean writeStringArrayElement(java.lang.String attrName,
                                       java.util.Iterator value)
Description copied from interface: DefWriter
This method writes an attribute of type String
Specified by:
writeStringArrayElement in interface DefWriter
Parameters:
attrName - the name of the Element to write
Returns:
Retuns true if there are no erros in writing the attribute

writeUserStringArrayElement

public boolean writeUserStringArrayElement(java.lang.String attrName,
                                           java.lang.String elemName,
                                           java.util.Iterator value)
Specified by:
writeUserStringArrayElement in interface DefWriter

writeUserStringElementsMap

public boolean writeUserStringElementsMap(DefPersistable jtpObject,
                                          java.lang.String attrName,
                                          java.lang.String elemName,
                                          java.util.HashMap values)
Specified by:
writeUserStringElementsMap in interface DefWriter

removeElements

public boolean removeElements(java.lang.String elemName)
Specified by:
removeElements in interface DefWriter

removeElementByAttribute

public boolean removeElementByAttribute(java.lang.String elemName,
                                        java.lang.String attrName,
                                        java.lang.String attrValue)
Specified by:
removeElementByAttribute in interface DefWriter

removeObject

public boolean removeObject(DefPersistable jtpObject)
Specified by:
removeObject in interface DefWriter

removeAttribute

public void removeAttribute(java.lang.String attrName)
Specified by:
removeAttribute in interface DefWriter

commit

public void commit()
            throws DefPersistenceException
Description copied from interface: DefWriter
This method Commits the transaction. In the case of XML and other file based persistent storages, this method just flushes to the file.
Specified by:
commit in interface DefWriter
Throws:
DefPersistenceException

rollback

public void rollback()
              throws DefPersistenceException
Description copied from interface: DefWriter
This method rolls back the transaction. In the case of XML and other file based persistent storages, this method just resets the buffer in the memory.
Specified by:
rollback in interface DefWriter
Throws:
DefPersistenceException

getElement

public Element getElement()

writeVariableValues

public java.lang.Object writeVariableValues(java.lang.String elemName,
                                            java.lang.Object[] objs)
Specified by:
writeVariableValues in interface DefWriter

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


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