| Constructor and Description | 
|---|
TransferDefWriter(PersistableDefObject def)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
commit()
This method Commits the transaction. 
 | 
DifferDetails | 
getChildren()  | 
DifferDetails | 
getContents()  | 
java.lang.StringBuffer | 
getStringBuffer()  | 
PersistableDefObject | 
getTargetDef()  | 
boolean | 
isBufferOutput()  | 
boolean | 
isJSON()  | 
boolean | 
isTargetDefPDef()  | 
boolean | 
isTipCustomizedAttribute(java.lang.String attrName)
Indicates whether the attribute for the current element XML element
 was set at the tip CC layer. 
 | 
boolean | 
isTipInserted()
Indicates whether the current element XML element was inserted at
 the tip CC layer. 
 | 
boolean | 
isToTransferAllChildren()  | 
void | 
openConnection(java.lang.String xmlFileName,
              java.lang.String tagName)  | 
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. 
 | 
void | 
setChildElementTag(java.lang.String s)  | 
void | 
setToTransferAllChildren(boolean b)  | 
boolean | 
write2DStringArray(java.lang.String parentAttrName,
                  java.lang.String firstAttrName,
                  java.lang.String secondAttrName,
                  java.util.List<java.util.List<java.lang.String>> items)
This method creates a 2D hierarchical element structure under the parent element. 
 | 
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 
 | 
void | 
writeComment(java.lang.String comment)  | 
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 jtpObject)
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 
 | 
void | 
writeObject(PersistentDefinition jtpObject,
           boolean bAsChildMap)
If in json, this will save the object as a map. 
 | 
boolean | 
writeObject(java.lang.String attrName,
           java.lang.Object value)
This method writes an attribute of type object 
 | 
void | 
writeProcessingInstruction(java.lang.String target,
                          java.lang.String data)  | 
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 en)
This method writes an attribute of type String 
 | 
boolean | 
writeStringArray(java.lang.String attrName,
                java.util.Iterator en)
This method writes an attribute of type String 
 | 
boolean | 
writeStringArray(java.lang.String attrName,
                java.lang.Object[] en)
This method writes an attribute of type String 
 | 
boolean | 
writeStringArrayElement(java.lang.String attrName,
                       java.util.Iterator en)
This method writes an attribute of type String 
 | 
boolean | 
writeStringList(java.lang.String attrName,
               java.lang.String[] en)
This method writes an attribute of type String
 For JSON, this reads a simple list of strings instead
 of the more complex xml element structure. 
 | 
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 value,
          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.HashMap table,
          boolean bAsChildMap)
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)  | 
org.w3c.dom.Element | 
writeUserObjectWithAttrs(java.lang.String ns,
                        java.lang.String elementName,
                        java.lang.String value,
                        java.util.LinkedHashMap map)  | 
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)  | 
public TransferDefWriter(PersistableDefObject def)
public PersistableDefObject getTargetDef()
public boolean isTargetDefPDef()
public DifferDetails getContents()
public DifferDetails getChildren()
public void setChildElementTag(java.lang.String s)
public boolean isToTransferAllChildren()
public void setToTransferAllChildren(boolean b)
public void commit()
            throws DefPersistenceException
DefWritercommit in interface DefWriterDefPersistenceExceptionpublic void rollback()
              throws DefPersistenceException
DefWriterrollback in interface DefWriterDefPersistenceExceptionpublic boolean isTipInserted()
DefWriterisTipInserted in interface DefWritertrue if this element was inserted at the tip
         CC layer.  If the persistence backend does not support
         customization, it returns true as well.public boolean isTipCustomizedAttribute(java.lang.String attrName)
DefWriterfalse.isTipCustomizedAttribute in interface DefWritertrue if the attribute was set at the tip
         CC layer.  If the persistence backend does not support
         customization, it returns true as well.public void writeObject(DefPersistable jtpObject) throws DefPersistenceException
DefWriterwriteObject in interface DefWriterjtpObject - the DefPersistable object to writeDefPersistenceExceptionpublic void writeUserObject(java.lang.String elementName,
                            java.lang.String value)
                     throws DefPersistenceException
writeUserObject in interface DefWriterDefPersistenceExceptionpublic void writeUserObject(java.lang.String ns,
                            java.lang.String elementName,
                            java.lang.String value)
                     throws DefPersistenceException
writeUserObject in interface DefWriterDefPersistenceExceptionpublic org.w3c.dom.Element writeUserObjectWithAttrs(java.lang.String ns,
                                                    java.lang.String elementName,
                                                    java.lang.String value,
                                                    java.util.LinkedHashMap map)
                                             throws DefPersistenceException
writeUserObjectWithAttrs in interface DefWriterDefPersistenceExceptionpublic boolean writeObject(java.lang.String attrName,
                           java.lang.Object value)
DefWriterwriteObject in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.util.HashMap value)
DefWriterwriteTable in interface DefWriterjtpObject - the object holding this AttributeattrName - the name of the Attribute to writtenvalue - the value of the Attributepublic boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.util.Hashtable value)
DefWriterwriteTable in interface DefWriterjtpObject - the object holding this AttributeattrName - the name of the Attribute to writtenvalue - the value of the Attributepublic boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elementName, java.lang.String name, java.lang.String value, java.util.HashMap table)
DefWriterwriteTable in interface DefWriterjtpObject - the object holding this AttributeattrName - the name of the Attribute to writtenelementName - the value of the name of the attribute.name - the value of the label of the attribute namevalue - the value of the label for the attribute valuetable - the value of the Attributepublic boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elementName, java.lang.String name, java.lang.String value, java.util.HashMap table, boolean bAsChildMap)
DefWriterwriteTable in interface DefWriterjtpObject - the object holding this AttributeattrName - the name of the Attribute to writtenelementName - the value of the name of the attribute.name - the value of the label of the attribute namevalue - the value of the label for the attribute valuetable - the value of the AttributebAsChildMap - save the object as a map, not a listpublic boolean writeTable(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elementName, java.lang.String name, java.lang.String value, java.util.Hashtable table)
DefWriterwriteTable in interface DefWriterjtpObject - the object holding this AttributeattrName - the name of the Attribute to writtenelementName - the value of the name of the attribute.name - the value of the label of the attribute namevalue - the value of the label for the attribute valuetable - the value of the Attributepublic boolean writeString(java.lang.String attrName,
                           java.lang.String value)
DefWriterwriteString in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeUserString(java.lang.String attrName,
                               java.lang.String value)
DefWriterwriteUserString in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeStringArray(java.lang.String attrName,
                                java.util.Iterator en)
DefWriterwriteStringArray in interface DefWriterattrName - the name of the Attribute to readen - Enumeration of valuespublic boolean writeStringArray(java.lang.String attrName,
                                java.util.Enumeration en)
DefWriterwriteStringArray in interface DefWriterattrName - the name of the Attribute to readen - Enumeration of valuespublic boolean writeStringArray(java.lang.String attrName,
                                java.lang.Object[] en)
DefWriterwriteStringArray in interface DefWriterattrName - the name of the Attribute to readen - Enumeration of valuespublic boolean writeStringList(java.lang.String attrName,
                               java.lang.String[] en)
DefWriterwriteStringList in interface DefWriterattrName - the name of the Attribute to readen - Enumeration of valuespublic boolean writeInt(java.lang.String attrName,
                        int value)
DefWriterpublic boolean writeShort(java.lang.String attrName,
                          short value)
DefWriterwriteShort in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeLong(java.lang.String attrName,
                         long value)
DefWriterpublic boolean writeFloat(java.lang.String attrName,
                          float value)
DefWriterwriteFloat in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeDouble(java.lang.String attrName,
                           double value)
DefWriterwriteDouble in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeBoolean(java.lang.String attrName,
                            boolean value)
DefWriterwriteBoolean in interface DefWriterattrName - the name of the Attribute to readvalue - Value of the Attributepublic boolean writeByte(java.lang.String attrName,
                         byte value)
DefWriterpublic boolean writeChar(java.lang.String attrName,
                         char value)
DefWriterpublic void writeObject(PersistentDefinition jtpObject) throws DefPersistenceException
DefWriterwriteObject in interface DefWriterjtpObject - the PersistentDefinition object to writeDefPersistenceExceptionpublic void writeObject(PersistentDefinition jtpObject, boolean bAsChildMap) throws DefPersistenceException
DefWriterwriteObject in interface DefWriterjtpObject - the DefPersistable object to writebAsChildMap - save the object as a map, not a listDefPersistenceExceptionpublic boolean writeStringArrayElement(java.lang.String attrName,
                                       java.util.Iterator en)
DefWriterwriteStringArrayElement in interface DefWriterattrName - the name of the Element to writepublic boolean writeUserStringArrayElement(java.lang.String attrName,
                                           java.lang.String elemName,
                                           java.util.Iterator value)
writeUserStringArrayElement in interface DefWriterpublic boolean writeUserStringElementsMap(DefPersistable jtpObject, java.lang.String attrName, java.lang.String elemName, java.util.HashMap values)
writeUserStringElementsMap in interface DefWriterpublic boolean removeElements(java.lang.String elemName)
removeElements in interface DefWriterpublic boolean removeElementByAttribute(java.lang.String elemName,
                                        java.lang.String attrName,
                                        java.lang.String attrValue)
removeElementByAttribute in interface DefWriterpublic boolean removeObject(DefPersistable jtpObject)
removeObject in interface DefWriterpublic void removeAttribute(java.lang.String attrName)
removeAttribute in interface DefWriterpublic java.lang.Object writeVariableValues(java.lang.String elemName,
                                            java.lang.Object[] objs)
writeVariableValues in interface DefWriterpublic void writeComment(java.lang.String comment)
writeComment in interface DefWriterpublic void writeProcessingInstruction(java.lang.String target,
                                       java.lang.String data)
writeProcessingInstruction in interface DefWriterpublic boolean write2DStringArray(java.lang.String parentAttrName,
                                  java.lang.String firstAttrName,
                                  java.lang.String secondAttrName,
                                  java.util.List<java.util.List<java.lang.String>> items)
DefWriterwrite2DStringArray in interface DefWriterparentAttrName - - Name of the parent element under which this 2D structure is to be builtfirstAttrName - - Name of the first level elementsecondAttrName - - Name of the second level elementitems - - A list of list of strings which represents the 2D structure to be addedpublic boolean isBufferOutput()
isBufferOutput in interface DefWriterpublic java.lang.StringBuffer getStringBuffer()
getStringBuffer in interface DefWriterpublic void openConnection(java.lang.String xmlFileName,
                           java.lang.String tagName)
openConnection in interface DefWriter