Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

oracle.apps.fnd.applcp.migrate.modeler.common
Class CPXMLOutputStream

java.lang.Object
  extended by oracle.jbo.mom.xml.XMLOutputStream
      extended by oracle.apps.fnd.applcp.migrate.modeler.common.CPXMLOutputStream
All Implemented Interfaces:
oracle.jbo.mom.xml.DefWriter

public class CPXMLOutputStream
extends oracle.jbo.mom.xml.XMLOutputStream


Field Summary
static int AMP
           
static java.lang.String AMP_STR
           
static int APOS
           
static java.lang.String APOS_STR
           
static int GT
           
static java.lang.String GT_STR
           
static int LT
           
static java.lang.String LT_STR
           
static int MAX_CONT_STRING_SIZE
           
static int MAX_STRING_LINE
           
protected  java.lang.StringBuffer mBuffer
           
protected  oracle.jbo.mom.xml.DTAttrsHolder mDTAttrs
           
protected  java.lang.String mIndentStr
           
static java.lang.String NEW_LINE
           
static int NEW_LINE_CHAR
           
static int QUOT
           
static java.lang.String QUOT_STR
           
static int SPACE_CHAR
           
static java.lang.String SPACE_STR
           
 
Constructor Summary
CPXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr)
           
CPXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr, oracle.jbo.mom.PersistableDefObject obj)
           
 
Method Summary
 java.lang.String breakStr(java.lang.String inStr)
          Breaks the String in to multiple lines by appending new line Characters.
protected  java.lang.String checkSpecialChar(java.lang.String value, char specialChar, java.lang.String replacement)
           
protected  java.lang.String checkSpecialChars(java.lang.String value)
           
 void closeConnection()
          Writes the internal buffers and closes the XML file.
 void commit()
          This method Commits the transaction.
protected static java.lang.String createEscapes(java.lang.String inStr, boolean userString)
           
static java.net.URL createURL(java.lang.String fileName)
          Creates the URL class for the given filename
protected  void doWriteString(java.lang.String attrName, java.lang.String value)
           
 void epilogue(oracle.jbo.mom.xml.DefPersistable jtpObject)
          This method write the ending block for each Object.
 void epilogue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
          This method write the ending block for each Object.
 org.w3c.dom.Element findChildElemWithAttribute(org.w3c.dom.Element parent, java.lang.String sName, java.lang.String sValue)
           
 java.lang.Object getConnection()
          Returns the the XML FileOutStream.
 java.lang.String getIanaEncoding()
           
 java.lang.String getJdkEncoding()
           
 boolean isConnectionOpen()
          Returns if a Connection is already open
protected  boolean isDefaultValue(java.lang.String attrName, java.lang.String value)
           
 void openConnection(java.lang.String tagName)
           
 void openConnection(java.lang.String xmlFileName, java.lang.String tagName)
          Opens the XML file in output mode.
 void prologue(oracle.jbo.mom.xml.DefPersistable jtpObject)
          This method writes the starting block for each Object.
 void prologue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
          This method writes the starting block for each Object.
static java.lang.StringBuffer removeDesignTime(java.lang.StringBuffer buffer)
           
 boolean removeObject(oracle.jbo.mom.xml.DefPersistable jtpObject)
           
 void resetIndentation()
          Decreases the indentation by three spaces
 void rollback()
          This method rolls back the transaction.
 void saveAs(java.lang.String xmlFileName)
          Opens the XML file in output mode.
 void saveAsRunTimeXML(java.lang.String xmlFileName)
          Saves the Runtime Version of XML File Same as the Regular XML file without DesignTime section
protected  void saveDesignTimeAttrs()
           
 void saveToOutputStream(java.io.OutputStream os)
          Saves the Buffer to given OutputStream
 void saveToOutputStream(java.io.Writer os)
          Saves the Buffer to given Writer
 void saveXMLData(oracle.jbo.mom.PersistableDefObject obj)
           
 void saveXMLData(oracle.jbo.mom.PersistableDefObject obj, java.lang.String objFullName, char[] data)
           
 void setIanaEncoding(java.lang.String iana)
           
 void setIndentation()
          Increases the indentation by three spaces
 void setJdkEncoding(java.lang.String jdkEnc)
           
 char[] toCharArray()
          expose own content as a char array: this involves a complete buffer copy
 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
 void writeFileHeader(java.lang.String tagName)
          Creates Properties XML section.
 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(oracle.jbo.mom.xml.DefPersistable jtpObject)
          Writes a DefPersistible object
 void writeObject(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
          Writes a PersistentDefinition object
 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[] value)
          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(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, java.util.HashMap value)
          This method writes an attribute of type Hashtable
 boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, java.util.Hashtable value)
          This method writes an attribute of type Hashtable
 boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, java.lang.String elemName, java.lang.String name, java.lang.String value, java.util.HashMap ht)
           
 boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, java.lang.String elemName, java.lang.String name, java.lang.String value, java.util.Hashtable ht)
           
 void writeUserObject(java.lang.String elementName, java.lang.String value)
           
 void writeUserObject(java.lang.String ns, java.lang.String elementName, java.lang.String value)
           
 void writeUserObjectWithName(java.lang.String elementName, java.lang.String name, java.lang.String value)
           
 boolean writeUserString(java.lang.String attrName, java.lang.String value)
          This method writes an attribute of type String This method replaces the system characters such as '"&<> to escape sequances that XML parser understands.
 boolean writeUserStringArrayElement(java.lang.String attrName, java.lang.String elemName, java.util.Iterator value)
          This method writes CData elements of type String
 boolean writeUserStringElementsMap(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, java.lang.String elemName, java.util.HashMap values)
           
 
Methods inherited from class oracle.jbo.mom.xml.XMLOutputStream
removeAttribute, removeElementByAttribute, removeElements, writeUserObjectWithAttrs, writeVariableValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW_LINE

public static java.lang.String NEW_LINE

LT_STR

public static final java.lang.String LT_STR
See Also:
Constant Field Values

GT_STR

public static final java.lang.String GT_STR
See Also:
Constant Field Values

AMP_STR

public static final java.lang.String AMP_STR
See Also:
Constant Field Values

APOS_STR

public static final java.lang.String APOS_STR
See Also:
Constant Field Values

QUOT_STR

public static final java.lang.String QUOT_STR
See Also:
Constant Field Values

SPACE_STR

public static final java.lang.String SPACE_STR
See Also:
Constant Field Values

MAX_CONT_STRING_SIZE

public static final int MAX_CONT_STRING_SIZE
See Also:
Constant Field Values

MAX_STRING_LINE

public static final int MAX_STRING_LINE
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

AMP

public static final int AMP
See Also:
Constant Field Values

APOS

public static final int APOS
See Also:
Constant Field Values

QUOT

public static final int QUOT
See Also:
Constant Field Values

SPACE_CHAR

public static final int SPACE_CHAR
See Also:
Constant Field Values

NEW_LINE_CHAR

public static final int NEW_LINE_CHAR
See Also:
Constant Field Values

mIndentStr

protected java.lang.String mIndentStr

mBuffer

protected java.lang.StringBuffer mBuffer

mDTAttrs

protected oracle.jbo.mom.xml.DTAttrsHolder mDTAttrs
Constructor Detail

CPXMLOutputStream

public CPXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr)

CPXMLOutputStream

public CPXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr,
                         oracle.jbo.mom.PersistableDefObject obj)
Method Detail

prologue

public void prologue(oracle.jbo.mom.xml.DefPersistable jtpObject)
This method writes the starting block for each Object.

Overrides:
prologue in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
jtpObject - the JT Persistable Object

findChildElemWithAttribute

public org.w3c.dom.Element findChildElemWithAttribute(org.w3c.dom.Element parent,
                                                      java.lang.String sName,
                                                      java.lang.String sValue)
Overrides:
findChildElemWithAttribute in class oracle.jbo.mom.xml.XMLOutputStream

prologue

public void prologue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
This method writes the starting block for each Object.

Overrides:
prologue in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
jtpObject - the JT Persistable Object

epilogue

public void epilogue(oracle.jbo.mom.xml.DefPersistable jtpObject)
This method write the ending block for each Object.

Overrides:
epilogue in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
jtpObject - the JT Persistable Object

epilogue

public void epilogue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
This method write the ending block for each Object.

Overrides:
epilogue in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
jtpObject - the JT Persistable Object

saveDesignTimeAttrs

protected void saveDesignTimeAttrs()
Overrides:
saveDesignTimeAttrs in class oracle.jbo.mom.xml.XMLOutputStream

writeObject

public boolean writeObject(java.lang.String attrName,
                           java.lang.Object value)
This method writes an attribute of type object

Specified by:
writeObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeObject in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeTable

public boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.util.HashMap value)
This method writes an attribute of type Hashtable

Specified by:
writeTable in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeTable in class oracle.jbo.mom.xml.XMLOutputStream
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(oracle.jbo.mom.xml.DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.util.Hashtable value)
This method writes an attribute of type Hashtable

Specified by:
writeTable in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeTable in class oracle.jbo.mom.xml.XMLOutputStream
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(oracle.jbo.mom.xml.DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.lang.String elemName,
                          java.lang.String name,
                          java.lang.String value,
                          java.util.Hashtable ht)
Specified by:
writeTable in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeTable in class oracle.jbo.mom.xml.XMLOutputStream

writeTable

public boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject,
                          java.lang.String attrName,
                          java.lang.String elemName,
                          java.lang.String name,
                          java.lang.String value,
                          java.util.HashMap ht)
Specified by:
writeTable in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeTable in class oracle.jbo.mom.xml.XMLOutputStream

checkSpecialChars

protected java.lang.String checkSpecialChars(java.lang.String value)
Overrides:
checkSpecialChars in class oracle.jbo.mom.xml.XMLOutputStream

checkSpecialChar

protected java.lang.String checkSpecialChar(java.lang.String value,
                                            char specialChar,
                                            java.lang.String replacement)
Overrides:
checkSpecialChar in class oracle.jbo.mom.xml.XMLOutputStream

writeString

public boolean writeString(java.lang.String attrName,
                           java.lang.String value)
This method writes an attribute of type String

Specified by:
writeString in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeString in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

doWriteString

protected void doWriteString(java.lang.String attrName,
                             java.lang.String value)
Overrides:
doWriteString in class oracle.jbo.mom.xml.XMLOutputStream

isDefaultValue

protected boolean isDefaultValue(java.lang.String attrName,
                                 java.lang.String value)
Overrides:
isDefaultValue in class oracle.jbo.mom.xml.XMLOutputStream

writeUserString

public boolean writeUserString(java.lang.String attrName,
                               java.lang.String value)
This method writes an attribute of type String This method replaces the system characters such as '"&<> to escape sequances that XML parser understands. This method should be used in all the places where the string might contain the above characters.

Specified by:
writeUserString in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeUserString in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.util.Iterator value)
This method writes an attribute of type String

Specified by:
writeStringArray in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeStringArray in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Enumeration of values
Returns:
Returns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.util.Enumeration value)
This method writes an attribute of type String

Specified by:
writeStringArray in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeStringArray in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Enumeration of values
Returns:
Returns true if there are no erros in writing the attribute

writeStringArray

public boolean writeStringArray(java.lang.String attrName,
                                java.lang.Object[] value)
This method writes an attribute of type String

Specified by:
writeStringArray in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeStringArray in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Enumeration of values
Returns:
Returns true if there are no erros in writing the attribute

writeInt

public boolean writeInt(java.lang.String attrName,
                        int value)
This method writes an attribute of type int

Specified by:
writeInt in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeInt in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeShort

public boolean writeShort(java.lang.String attrName,
                          short value)
This method writes an attribute of type short

Specified by:
writeShort in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeShort in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeLong

public boolean writeLong(java.lang.String attrName,
                         long value)
This method writes an attribute of type long

Specified by:
writeLong in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeLong in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeFloat

public boolean writeFloat(java.lang.String attrName,
                          float value)
This method writes an attribute of type float

Specified by:
writeFloat in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeFloat in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeDouble

public boolean writeDouble(java.lang.String attrName,
                           double value)
This method writes an attribute of type double

Specified by:
writeDouble in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeDouble in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeBoolean

public boolean writeBoolean(java.lang.String attrName,
                            boolean value)
This method writes an attribute of type boolean

Specified by:
writeBoolean in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeBoolean in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeByte

public boolean writeByte(java.lang.String attrName,
                         byte value)
This method writes an attribute of type byte

Specified by:
writeByte in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeByte in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

writeChar

public boolean writeChar(java.lang.String attrName,
                         char value)
This method writes an attribute of type char

Specified by:
writeChar in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeChar in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the Attribute to read
value - Value of the Attribute
Returns:
Returns true if there are no erros in writing the attribute

openConnection

public void openConnection(java.lang.String tagName)
Overrides:
openConnection in class oracle.jbo.mom.xml.XMLOutputStream

openConnection

public void openConnection(java.lang.String xmlFileName,
                           java.lang.String tagName)
Opens the XML file in output mode. Initializes the internal buffers

Overrides:
openConnection in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
xmlFileName - Name of the XML File.
Throws:
java.lang.Error - opening the XML file

closeConnection

public void closeConnection()
Writes the internal buffers and closes the XML file.

Overrides:
closeConnection in class oracle.jbo.mom.xml.XMLOutputStream
Throws:
java.lang.Error - closing the connection

isConnectionOpen

public boolean isConnectionOpen()
Returns if a Connection is already open

Overrides:
isConnectionOpen in class oracle.jbo.mom.xml.XMLOutputStream
Returns:
Returns true if the connection is opened. Otherwise returns false.

getConnection

public java.lang.Object getConnection()
Returns the the XML FileOutStream.

Overrides:
getConnection in class oracle.jbo.mom.xml.XMLOutputStream
Returns:
Returns the XML FileOutputStream object

commit

public void commit()
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 oracle.jbo.mom.xml.DefWriter
Overrides:
commit in class oracle.jbo.mom.xml.XMLOutputStream
Throws:
java.lang.Error - commiting the transaction

rollback

public void rollback()
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 oracle.jbo.mom.xml.DefWriter
Overrides:
rollback in class oracle.jbo.mom.xml.XMLOutputStream
Throws:
java.lang.Error - Rolling back the transaction

setIndentation

public void setIndentation()
Increases the indentation by three spaces

Overrides:
setIndentation in class oracle.jbo.mom.xml.XMLOutputStream

resetIndentation

public void resetIndentation()
Decreases the indentation by three spaces

Overrides:
resetIndentation in class oracle.jbo.mom.xml.XMLOutputStream

writeFileHeader

public void writeFileHeader(java.lang.String tagName)
Creates Properties XML section. Writes all the Property in the hashtable

Overrides:
writeFileHeader in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
tagName - Hashtable consists of Properties.

writeObject

public void writeObject(oracle.jbo.mom.xml.DefPersistable jtpObject)
Writes a DefPersistible object

Specified by:
writeObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeObject in class oracle.jbo.mom.xml.XMLOutputStream

writeObject

public void writeObject(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
Writes a PersistentDefinition object

Specified by:
writeObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeObject in class oracle.jbo.mom.xml.XMLOutputStream

writeUserObject

public void writeUserObject(java.lang.String ns,
                            java.lang.String elementName,
                            java.lang.String value)
Specified by:
writeUserObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeUserObject in class oracle.jbo.mom.xml.XMLOutputStream

writeUserObject

public void writeUserObject(java.lang.String elementName,
                            java.lang.String value)
Specified by:
writeUserObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeUserObject in class oracle.jbo.mom.xml.XMLOutputStream

writeUserObjectWithName

public void writeUserObjectWithName(java.lang.String elementName,
                                    java.lang.String name,
                                    java.lang.String value)
Overrides:
writeUserObjectWithName in class oracle.jbo.mom.xml.XMLOutputStream

writeComment

public void writeComment(java.lang.String comment)
Overrides:
writeComment in class oracle.jbo.mom.xml.XMLOutputStream

saveAs

public void saveAs(java.lang.String xmlFileName)
Opens the XML file in output mode. Initializes the internal buffers

Overrides:
saveAs in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
xmlFileName - Name of the XML File.
Throws:
java.lang.Error - opening the XML file

saveAsRunTimeXML

public void saveAsRunTimeXML(java.lang.String xmlFileName)
Saves the Runtime Version of XML File Same as the Regular XML file without DesignTime section

Overrides:
saveAsRunTimeXML in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
xmlFileName - Name of the XML File.
Throws:
java.lang.Error - opening the XML file

removeDesignTime

public static java.lang.StringBuffer removeDesignTime(java.lang.StringBuffer buffer)

saveToOutputStream

public void saveToOutputStream(java.io.OutputStream os)
Saves the Buffer to given OutputStream

Overrides:
saveToOutputStream in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
os - OutputStream
Throws:
java.lang.Error - opening the XML file

breakStr

public java.lang.String breakStr(java.lang.String inStr)
Breaks the String in to multiple lines by appending new line Characters.

Overrides:
breakStr in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
inStr - Input String
Returns:
Retuns the new String

createEscapes

protected static java.lang.String createEscapes(java.lang.String inStr,
                                                boolean userString)

createURL

public static java.net.URL createURL(java.lang.String fileName)
                              throws java.io.IOException
Creates the URL class for the given filename

Parameters:
fileName - The Xml file name
Returns:
URL the created URL
Throws:
java.io.IOException - Can not java.io.File class

saveToOutputStream

public void saveToOutputStream(java.io.Writer os)
Saves the Buffer to given Writer

Overrides:
saveToOutputStream in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
os - Writer
Throws:
java.lang.Error

getIanaEncoding

public java.lang.String getIanaEncoding()
Overrides:
getIanaEncoding in class oracle.jbo.mom.xml.XMLOutputStream

setIanaEncoding

public void setIanaEncoding(java.lang.String iana)
Overrides:
setIanaEncoding in class oracle.jbo.mom.xml.XMLOutputStream

getJdkEncoding

public java.lang.String getJdkEncoding()
Overrides:
getJdkEncoding in class oracle.jbo.mom.xml.XMLOutputStream

setJdkEncoding

public void setJdkEncoding(java.lang.String jdkEnc)
Overrides:
setJdkEncoding in class oracle.jbo.mom.xml.XMLOutputStream

toCharArray

public char[] toCharArray()
expose own content as a char array: this involves a complete buffer copy

Overrides:
toCharArray in class oracle.jbo.mom.xml.XMLOutputStream

writeStringArrayElement

public boolean writeStringArrayElement(java.lang.String attrName,
                                       java.util.Iterator value)
This method writes an attribute of type String

Specified by:
writeStringArrayElement in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeStringArrayElement in class oracle.jbo.mom.xml.XMLOutputStream
Parameters:
attrName - the name of the element to write
value - Enumeration of values
Returns:
Returns 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)
This method writes CData elements of type String

Specified by:
writeUserStringArrayElement in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeUserStringArrayElement in class oracle.jbo.mom.xml.XMLOutputStream

writeUserStringElementsMap

public boolean writeUserStringElementsMap(oracle.jbo.mom.xml.DefPersistable jtpObject,
                                          java.lang.String attrName,
                                          java.lang.String elemName,
                                          java.util.HashMap values)
Specified by:
writeUserStringElementsMap in interface oracle.jbo.mom.xml.DefWriter
Overrides:
writeUserStringElementsMap in class oracle.jbo.mom.xml.XMLOutputStream

removeObject

public boolean removeObject(oracle.jbo.mom.xml.DefPersistable jtpObject)
Specified by:
removeObject in interface oracle.jbo.mom.xml.DefWriter
Overrides:
removeObject in class oracle.jbo.mom.xml.XMLOutputStream

saveXMLData

public void saveXMLData(oracle.jbo.mom.PersistableDefObject obj)
Overrides:
saveXMLData in class oracle.jbo.mom.xml.XMLOutputStream

saveXMLData

public void saveXMLData(oracle.jbo.mom.PersistableDefObject obj,
                        java.lang.String objFullName,
                        char[] data)
Overrides:
saveXMLData in class oracle.jbo.mom.xml.XMLOutputStream

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

Copyright © 2011 Oracle. All Rights Reserved.