|
ADF Designtime | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.dt.objects.JUDTXMLOutputStream
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
|
static java.lang.String |
NEW_LINE
|
static int |
QUOT
|
static java.lang.String |
QUOT_STR
|
static int |
SPACE_CHAR
|
static java.lang.String |
SPACE_STR
|
Constructor Summary | |
JUDTXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr)
|
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 |
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. |
java.lang.StringBuffer |
getBuffer()
|
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 |
void |
openConnection(java.lang.String tagName)
Opens the XML file in output mode. |
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)
|
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 |
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 |
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)
|
void |
writeObject(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
|
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,
Iterator value)
This method writes an attribute of type String |
boolean |
writeStringArrayElement(java.lang.String attrName,
Iterator value)
This method writes an attribute of type String |
boolean |
writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject,
java.lang.String attrName,
HashMap 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.Hashtable ht)
|
void |
writeUserObject(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 replaces the system characters such as '"&<> to escape sequances that XML parser understands. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.mom.xml.DefWriter |
writeStringArray, writeStringArray, writeStringArrayElement, writeTable, writeTable, writeTable |
Field Detail |
public static java.lang.String NEW_LINE
public static final java.lang.String LT_STR
public static final java.lang.String GT_STR
public static final java.lang.String AMP_STR
public static final java.lang.String APOS_STR
public static final java.lang.String QUOT_STR
public static final java.lang.String SPACE_STR
public static final int MAX_CONT_STRING_SIZE
public static final int MAX_STRING_LINE
public static final int LT
public static final int GT
public static final int AMP
public static final int APOS
public static final int QUOT
public static final int SPACE_CHAR
Constructor Detail |
public JUDTXMLOutputStream(oracle.jbo.mom.DefinitionManager mgr)
Method Detail |
public java.lang.StringBuffer getBuffer()
public void prologue(oracle.jbo.mom.xml.DefPersistable jtpObject)
jtpObject
- the JT Persistable Objectpublic void prologue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
jtpObject
- the JT Persistable Objectpublic void epilogue(oracle.jbo.mom.xml.DefPersistable jtpObject)
jtpObject
- the JT Persistable Objectpublic void epilogue(oracle.jbo.mom.xml.PersistentDefinition jtpObject)
jtpObject
- the JT Persistable Objectpublic boolean writeObject(java.lang.String attrName, java.lang.Object value)
writeObject
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeTable(oracle.jbo.mom.xml.DefPersistable jtpObject, java.lang.String attrName, HashMap value)
jtpObject
- the object holding this AttributeattrName
- the name of the Attribute to writtenvalue
- the value of the Attribute
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)
writeTable
in interface oracle.jbo.mom.xml.DefWriter
protected java.lang.String checkSpecialChars(java.lang.String value)
protected java.lang.String checkSpecialChar(java.lang.String value, char specialChar, java.lang.String replacement)
public boolean writeString(java.lang.String attrName, java.lang.String value)
writeString
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeUserString(java.lang.String attrName, java.lang.String value)
writeUserString
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeStringArray(java.lang.String attrName, Iterator value)
attrName
- the name of the Attribute to readvalue
- Enumeration of values
public boolean writeInt(java.lang.String attrName, int value)
writeInt
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeShort(java.lang.String attrName, short value)
writeShort
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeLong(java.lang.String attrName, long value)
writeLong
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeFloat(java.lang.String attrName, float value)
writeFloat
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeDouble(java.lang.String attrName, double value)
writeDouble
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeBoolean(java.lang.String attrName, boolean value)
writeBoolean
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeByte(java.lang.String attrName, byte value)
writeByte
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public boolean writeChar(java.lang.String attrName, char value)
writeChar
in interface oracle.jbo.mom.xml.DefWriter
attrName
- the name of the Attribute to readvalue
- Value of the Attribute
public void openConnection(java.lang.String xmlFileName, java.lang.String tagName) throws oracle.jbo.mom.xml.DefPersistenceException
xmlFileName
- Name of the XML File.
java.lang.Error
- opening the XML file
oracle.jbo.mom.xml.DefPersistenceException
public void closeConnection() throws oracle.jbo.mom.xml.DefPersistenceException
java.lang.Error
- closing the connection
oracle.jbo.mom.xml.DefPersistenceException
public boolean isConnectionOpen()
public java.lang.Object getConnection()
public void commit() throws oracle.jbo.mom.xml.DefPersistenceException
commit
in interface oracle.jbo.mom.xml.DefWriter
oracle.jbo.mom.xml.DefPersistenceException
public void rollback() throws oracle.jbo.mom.xml.DefPersistenceException
rollback
in interface oracle.jbo.mom.xml.DefWriter
oracle.jbo.mom.xml.DefPersistenceException
public void setIndentation()
public void resetIndentation()
public void writeFileHeader(java.lang.String tagName) throws oracle.jbo.mom.xml.DefPersistenceException
oracle.jbo.mom.xml.DefPersistenceException
public void writeObject(oracle.jbo.mom.xml.DefPersistable jtpObject) throws oracle.jbo.mom.xml.DefPersistenceException
writeObject
in interface oracle.jbo.mom.xml.DefWriter
oracle.jbo.mom.xml.DefPersistenceException
public void writeObject(oracle.jbo.mom.xml.PersistentDefinition jtpObject) throws oracle.jbo.mom.xml.DefPersistenceException
writeObject
in interface oracle.jbo.mom.xml.DefWriter
oracle.jbo.mom.xml.DefPersistenceException
public void writeUserObject(java.lang.String elementName, java.lang.String value) throws oracle.jbo.mom.xml.DefPersistenceException
writeUserObject
in interface oracle.jbo.mom.xml.DefWriter
oracle.jbo.mom.xml.DefPersistenceException
public void writeComment(java.lang.String comment) throws oracle.jbo.mom.xml.DefPersistenceException
oracle.jbo.mom.xml.DefPersistenceException
public void saveAs(java.lang.String xmlFileName) throws oracle.jbo.mom.xml.DefPersistenceException
xmlFileName
- Name of the XML File.
java.lang.Error
- opening the XML file
oracle.jbo.mom.xml.DefPersistenceException
public void saveAsRunTimeXML(java.lang.String xmlFileName) throws oracle.jbo.mom.xml.DefPersistenceException
xmlFileName
- Name of the XML File.
java.lang.Error
- opening the XML file
oracle.jbo.mom.xml.DefPersistenceException
public static java.lang.StringBuffer removeDesignTime(java.lang.StringBuffer buffer)
public void saveToOutputStream(java.io.OutputStream os) throws oracle.jbo.mom.xml.DefPersistenceException
os
- OutputStream
java.lang.Error
- opening the XML file
oracle.jbo.mom.xml.DefPersistenceException
public void openConnection(java.lang.String tagName) throws oracle.jbo.mom.xml.DefPersistenceException
java.lang.Error
- opening the XML file
oracle.jbo.mom.xml.DefPersistenceException
public java.lang.String breakStr(java.lang.String inStr)
inStr
- Input String
protected static java.lang.String createEscapes(java.lang.String inStr, boolean userString)
public static java.net.URL createURL(java.lang.String fileName) throws java.io.IOException
java.io.IOException
- Can not java.io.File classpublic void saveToOutputStream(java.io.Writer os) throws oracle.jbo.mom.xml.DefPersistenceException
java.lang.Error
oracle.jbo.mom.xml.DefPersistenceException
public java.lang.String getIanaEncoding()
public void setIanaEncoding(java.lang.String iana)
public java.lang.String getJdkEncoding()
public void setJdkEncoding(java.lang.String jdkEnc)
public char[] toCharArray()
public boolean writeStringArrayElement(java.lang.String attrName, Iterator value)
attrName
- the name of the element to writevalue
- Enumeration of values
|
ADF Designtime | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.