|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sap.mw.jco.JCO.MetaData | +--com.sap.mw.jco.JCO.Record
Base class for all data-structures used throughout the JCO toolkit. The class takes care of internal bookkeeping of buffers, meta data, etc. In addition it provides a rich set of get/set methods which allow a convenient access to the individual fields that make up a record. Getters and Setters support conversion of field values which are summarized by the following table:
method/type | JCO.TYPE_CHAR | JCO.TYPE_INT1 | JCO.TYPE_INT2 | JCO.TYPE_INT | JCO.TYPE_NUM | JCO.TYPE_BCD | JCO.TYPE_FLOAT | JCO.TYPE_BYTE | JCO.TYPE_DATE | JCO.TYPE_TIME | JCO.TYPE_STRING | JCO.TYPE_XSTRING | JCO.TYPE_STRUCTURE | JCO.TYPE_TABLE |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Object getValue() | String | Integer | Integer | Integer | String | String | Double | byte[] | Date | Date | String | byte[] | JCO.Structure | JCO.Table |
String getString() | String | String | String | String | String | String | String | String (hex) | String | String | String | String (hex) | String (Name) | String (Name) |
char getChar() | char | --- | --- | --- | --- | --- | --- | --- | --- | --- | char | --- | --- | --- |
short getShort() | short | short | short | short | short | --- | --- | short | --- | --- | short | short | --- | --- |
int getInt() | int | int | int | int | int | --- | --- | int | --- | --- | int | int | --- | --- |
long getLong() | long | long | long | long | long | --- | --- | long | --- | --- | long | long | --- | --- |
BigInteger getBigInteger() | BigInteger | BigInteger | BigInteger | BigInteger | BigInteger | BigInteger | --- | --- | --- | --- | BigInteger | --- | --- | --- |
double getDouble() | double | double | double | double | double | double | double | --- | --- | --- | double | --- | --- | --- |
BigDecimal getBigDecimal() | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | BigDecimal | --- | --- | --- | BigDecimal | --- | --- | --- |
Date getDate() | Date | --- | --- | --- | --- | --- | --- | --- | Date | Date | Date | --- | --- | --- |
Date getTime() | Date | --- | --- | --- | --- | --- | --- | --- | Date | Date | Date | --- | --- | --- |
byte[] getByteArray() | byte[] | --- | --- | --- | --- | --- | --- | byte[] | --- | --- | byte[] | byte[] | --- | --- |
JCO.Structure getStructure() | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | JCO.Structure | --- |
JCO.Table getTable() | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | JCO.Table |
Fields inherited from interface com.sap.mw.jco.IMetaData |
EXPORT_PARAMETER, IMPORT_PARAMETER, INACTIVE_PARAMETER, OPTIONAL_PARAMETER, TYPE_BCD, TYPE_BYTE, TYPE_CHAR, TYPE_DATE, TYPE_EXCEPTION, TYPE_FLOAT, TYPE_INT, TYPE_INT1, TYPE_INT2, TYPE_INVALID, TYPE_ITAB, TYPE_NUM, TYPE_STRING, TYPE_STRUCTURE, TYPE_TABLE, TYPE_TIME, TYPE_XSTRING, UNINITIALIZED, UNINITIALIZED_PARAMETER |
Constructor Summary | |
JCO.Record(IMetaData meta_data)
Creates a record with a layout as specified by the meta data |
|
JCO.Record(int type)
Creates a record of the specified type |
|
JCO.Record(int rec_type,
IMetaData meta_data)
Creates a record with a layout as specified by the meta data |
Method Summary | |
void |
addInfo(java.lang.String name,
int type,
int length,
int offset,
int decimals,
java.lang.String sdefault,
java.lang.String description,
int flags,
java.lang.Object tab_meta,
com.sap.mw.jco.IExtendedFieldMetaData extended)
Adds a new field descriptor to the meta data object |
void |
clear()
Clears the record, i.e. resets everything to its initial state |
java.lang.Object |
clone()
Creates a clone of this record |
int |
copyFrom(JCO.Record source)
Copies the matching fields from the source record into this record Data fields are considered to be equivalent if the name and type of two fields match. |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this record for equality. |
JCO.FieldIterator |
fields()
Returns an iterator for the fields |
void |
fromXML(java.lang.String data)
Sets the whole record from a XML string. |
java.math.BigDecimal |
getBigDecimal(int index)
Returns the value of the i'th field as a BigDecimal object |
java.math.BigDecimal |
getBigDecimal(java.lang.String field_name)
Returns the value of the i'th field as a BigDecimal object |
java.math.BigInteger |
getBigInteger(int index)
Returns the value of the i'th field as a BigInteger object |
java.math.BigInteger |
getBigInteger(java.lang.String field_name)
Returns the value of the i'th field as a BigInteger object |
java.io.InputStream |
getBinaryStream(int index)
Returns the value of the i'th field as a stream of uninterpreted bytes, i.e. an java.io.InputStream object |
java.io.InputStream |
getBinaryStream(java.lang.String field_name)
Returns the value of the i'th field as a stream of uninterpreted bytes, i.e. a java.io.InputStream object |
byte[] |
getByteArray(int index)
Returns the value of the i'th field as a byte array |
byte[] |
getByteArray(java.lang.String field_name)
Returns the value of the i'th field as a byte[] array |
char |
getChar(int index)
Returns the value of the i'th field as a char |
char |
getChar(java.lang.String field_name)
Returns the value of the named field as a char |
java.io.Reader |
getCharacterStream(int index)
Returns the value of the i'th field as a java.io.Reader object |
java.io.Reader |
getCharacterStream(java.lang.String field_name)
Returns the value of the i'th field as a stream of characters, i.e. a java.io.Reader object |
java.lang.String |
getClassNameOfValue(int index)
Returns the fully-qualified name of the Java class whose instances are manufactured if the methods getValue(int index) or getValue(String field_name) are called to retrieve a calue from the field. |
java.lang.String |
getClassNameOfValue(java.lang.String field_name)
Returns the fully-qualified name of the Java class whose instances are manufactured if the methods getValue(int index) or getValue(String field_name) are called to retrieve a calue from the field. |
java.util.Date |
getDate(int index)
Returns the value of the i'th field as a date |
java.util.Date |
getDate(java.lang.String field_name)
Returns the value of the named field as a Date object |
double |
getDouble(int index)
Returns the value of the i'th field as a double |
double |
getDouble(java.lang.String field_name)
Returns the value of the named field as a double |
JCO.Field |
getField(int index)
Returns the i'th field as an JCO.Field object |
JCO.Field |
getField(java.lang.String field_name)
Returns the named field as a JCO.Field object |
int |
getInt(int index)
Returns the value of the i'th field as an integer |
int |
getInt(java.lang.String field_name)
Returns the value of the named field as an integer |
long |
getLong(int index)
Returns the value of the i'th field as a long |
long |
getLong(java.lang.String field_name)
Returns the value of the named field as a long |
short |
getShort(int index)
Returns the value of the i'th field as a short |
short |
getShort(java.lang.String field_name)
Returns the value of the named field as a short |
java.lang.String |
getString(int index)
Returns the value of the i'th field as a string |
java.lang.String |
getString(java.lang.String field_name)
Returns the value of the named field as a java.lang.String object |
JCO.Structure |
getStructure(int index)
Returns the value of the i'th field as a JCO.Structure |
JCO.Structure |
getStructure(java.lang.String field_name)
Returns the value of the named field as a JCO.Structure object |
JCO.Table |
getTable(int index)
Returns the value of the i'th field as a table |
JCO.Table |
getTable(java.lang.String field_name)
Returns the value of the named field as a JCO.Table object |
java.util.Date |
getTime(int index)
Returns the value of the i'th field as a date |
java.util.Date |
getTime(java.lang.String field_name)
Returns the value of the named field as a Date object |
java.lang.Object |
getValue(int index)
Generic method that returns the value of the i'th field as an object. |
java.lang.Object |
getValue(java.lang.String field_name)
Returns the value of the named field as an object |
int |
hashCode()
Returns the hash code value for this record |
void |
readXML(java.io.Reader reader)
Read the |
void |
readXML(java.lang.String xml_filename)
Loads the request or response and all parameters and tables from the specified XML file. |
void |
setValue(byte[] value,
int index)
Sets the byte array as the value for the i'th field |
void |
setValue(byte[] value,
java.lang.String name)
Sets the byte array as the value for the named field |
void |
setValue(char value,
int index)
Sets the specified character as the field's value. |
void |
setValue(char value,
java.lang.String name)
Sets the character as the value for the named field. |
void |
setValue(double value,
int index)
Sets the double as the value for the i'th field |
void |
setValue(double value,
java.lang.String name)
Sets the double as the value for the named field |
void |
setValue(int value,
int index)
Sets the int as the value for the i'th field |
void |
setValue(int value,
java.lang.String name)
Sets the int as the value for the named field |
void |
setValue(JCO.Structure value,
int index)
Sets the structure as the value for the i'th field |
void |
setValue(JCO.Structure value,
java.lang.String name)
Sets the structure as the value for the named field |
void |
setValue(JCO.Table value,
int index)
Sets the table as the value for the i'th field |
void |
setValue(JCO.Table value,
java.lang.String name)
Sets the table as the value for the named field |
void |
setValue(long value,
int index)
Sets the long as the value for the i'th field |
void |
setValue(long value,
java.lang.String name)
Sets the long as the value for the named field. |
void |
setValue(java.lang.Object value,
int index)
Sets the object as the value for the i'th field |
void |
setValue(java.lang.Object value,
java.lang.String name)
Sets the object as the value for the named field |
void |
setValue(short value,
int index)
Sets the short as the value for the i'th field |
void |
setValue(short value,
java.lang.String name)
Sets the short as the value for the named field. |
void |
setValue(java.lang.String value,
int index)
Sets the specified string as the field's value. |
void |
setValue(java.lang.String value,
java.lang.String name)
Sets the string as the value for the named field. |
java.lang.String |
toString()
Returns the record as a string |
java.lang.String |
toXML()
Returns the whole record in XML format. Note: Field names in SAP system may contain characters which are illegal in XML element names. Legal elements names however can be assembled by using the following transformation rules: |
java.lang.String |
toXML(int index)
Returns the value of the i'th field as a XML string. Note: Field names in SAP system may contain characters which are illegal in XML element names. Legal elements names however can be assembled by using the following transformation rules: |
java.lang.String |
toXML(java.lang.String field_name)
Returns the value of named field as a XML string. Note: Field names in SAP system may contain characters which are illegal in XML element names. Legal elements names however can be assembled by using the following transformation rules: |
void |
writeHTML(java.lang.String html_filename)
Dump the table to a file. |
void |
writeHTML(java.io.Writer writer)
Dump the table to a file. |
void |
writeXML(java.lang.String xml_filename)
Dump the request or response and all parameters and tables to the specified XML file. |
void |
writeXML(java.io.Writer writer)
Constructs an XML document from the record and writes it to the specified output writer |
void |
writeXML(java.io.Writer writer,
boolean with_header)
Constructs an XML document from the record and writes it to the specified output writer |
void |
writeXML(java.io.Writer writer,
java.lang.String namespace_urn,
boolean with_header)
Constructs an XML document from the record and writes it to the specified output writer |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JCO.Record(int type)
type
- the type of the recordpublic JCO.Record(IMetaData meta_data)
meta_data
- the meta data which describe the layout of the recordpublic JCO.Record(int rec_type, IMetaData meta_data)
type
- the type of the recordmeta_data
- the meta data which describe the layout of the recordMethod Detail |
public java.lang.Object clone()
clone
in class JCO.MetaData
com.sap.mw.jco.JCO.MetaData
public boolean equals(java.lang.Object obj)
equals
in class JCO.MetaData
obj
- the object to compare for equality with this recordpublic int hashCode()
hashCode
in class JCO.MetaData
public void addInfo(java.lang.String name, int type, int length, int offset, int decimals, java.lang.String sdefault, java.lang.String description, int flags, java.lang.Object tab_meta, com.sap.mw.jco.IExtendedFieldMetaData extended)
addInfo
in class JCO.MetaData
name
- Field name for identifying this data fieldtype
- Data field typelength
- Data field internal length in bytesoffset
- Data field offset in the internal JCO data bufferdecimals
- Data field number of decimals (only necessary for the data types JCO.TYPE_BCD and JCO.TYPE_FLOAT)sdefault
- Data Field default valuedescription
- Description of data fieldflags
- Bit-vector for additional attributes of the field. The vector can be ORed together fromFlag | Description |
---|---|
IMPORT_PARAMETER | The field is an import parameter |
EXPORT_PARAMETER | The field is an export parameter |
OPTIONAL_PARAMETER | The field is optional parameter |
INACTIVATE_PARAMETER | Only used for table parameter, indicating that the content of the table will not be sent to the server |
tab_meta
- Meta-data if the field is a complex field, i.e. structure or table, null otherwiseextended
- extended meta data for this field or null if none available.public void clear()
public int copyFrom(JCO.Record source)
source
- the source record from which to copy the dataJCO.Exception
- if something went wrongpublic final JCO.Field getField(int index)
index
- the field indexpublic final java.lang.String getClassNameOfValue(int index)
index
- the field indexpublic java.lang.Object getValue(int index)
type | JCO.TYPE_CHAR | JCO.TYPE_INT1 | JCO.TYPE_INT2 | JCO.TYPE_INT | JCO.TYPE_NUM | JCO.TYPE_BCD | JCO.TYPE_FLOAT | JCO.TYPE_BYTE | JCO.TYPE_DATE | JCO.TYPE_TIME | JCO.TYPE_STRING | JCO.TYPE_XSTRING | JCO.TYPE_STRUCTURE | JCO.TYPE_TABLE |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object | String | Integer | Integer | Integer | String | String | Double | byte[] | Date | Date | String | byte[] | JCO.Structure | JCO.Table |
index
- the field indexJCO.ConversionException
- thrown if the value could not be converted to an objectpublic java.lang.String getString(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a Stringpublic char getChar(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a char,
i.e. if the underlying field contained more than one characterpublic short getShort(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a shortpublic int getInt(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to an intpublic long getLong(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to an longpublic java.math.BigInteger getBigInteger(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a BigIntegerpublic double getDouble(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a doublepublic java.math.BigDecimal getBigDecimal(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a BigDecimalpublic java.util.Date getDate(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a Datepublic java.util.Date getTime(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a Datepublic byte[] getByteArray(int index)
index
- the field indexJCO.ConversionException
- thrown if the value could not be converted to a byte arraypublic java.io.InputStream getBinaryStream(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be
converted to an java.io.InputStreampublic java.io.Reader getCharacterStream(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a java.io.Readerpublic JCO.Table getTable(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a JCO.TableJCO.Table
public JCO.Structure getStructure(int index)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a JCO.StructureJCO.Structure
public java.lang.String toXML(int index)
Note: Field names in SAP system may contain characters which are illegal in XML element names.
Legal elements names however can be assembled by using the following transformation rules:
(e.g. '&' is represented as '_--26').
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a StringJCO.Exception
- thrown if another error occurredpublic java.lang.String toXML(java.lang.String field_name)
Note: Field names in SAP system may contain characters which are illegal in XML element names.
Legal elements names however can be assembled by using the following transformation rules:
(e.g. '&' is represented as '_--26').
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a StringJCO.Exception
- thrown if another error occurredpublic java.lang.String toXML()
Note: Field names in SAP system may contain characters which are illegal in XML element names.
Legal elements names however can be assembled by using the following transformation rules:
(e.g. '&' is represented as '_--26').
The value part of an element may contain the following mappings:
JCO.ConversionException
- thrown if the value could not be converted to a StringJCO.Exception
- thrown if another error occurredpublic void fromXML(java.lang.String data)
data
- the XML dataJCO.Exception
- thrown if an error occurred such as invalid XML format.toXML(int)
public void setValue(java.lang.String value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic final JCO.Field getField(java.lang.String field_name)
field_name
- the name of the fieldJCO.Exception
- thrown if a field with the specified name does not existpublic final java.lang.String getClassNameOfValue(java.lang.String field_name)
field_name
- the name of the fieldJCO.Exception
- thrown if a field with the specified name does not existpublic final java.lang.Object getValue(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to an ObjectJCO.Exception
- thrown if a field with the specified name does not existpublic final java.lang.String getString(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a StringJCO.Exception
- thrown if a field with the specified name does not existpublic final char getChar(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a charJCO.Exception
- thrown if a field with the specified name does not existpublic final short getShort(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a shortJCO.Exception
- thrown if a field with the specified name does not existpublic final int getInt(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to an intJCO.Exception
- thrown if a field with the specified name does not existpublic final long getLong(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a longJCO.Exception
- thrown if a field with the specified name does not existpublic final java.math.BigInteger getBigInteger(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a BigIntegerJCO.Exception
- thrown if a field with the specified name does not existpublic final double getDouble(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a doubleJCO.Exception
- thrown if a field with the specified name does not existpublic final java.math.BigDecimal getBigDecimal(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a BigDecimalJCO.Exception
- thrown if a field with the specified name does not existpublic final java.util.Date getDate(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a DateJCO.Exception
- thrown if a field with the specified name does not existpublic final java.util.Date getTime(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a DateJCO.Exception
- thrown if a field with the specified name does not existpublic final byte[] getByteArray(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a byte[] arrayJCO.Exception
- thrown if a field with the specified name does not existpublic final java.io.InputStream getBinaryStream(java.lang.String field_name)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a java.io.InputStreampublic final java.io.Reader getCharacterStream(java.lang.String field_name)
index
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to a java.io.Readerpublic final JCO.Table getTable(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a JCO.TableJCO.Exception
- thrown if a field with the specified name does not existpublic final JCO.Structure getStructure(java.lang.String field_name)
field_name
- the name of the fieldJCO.ConversionException
- thrown if the value could not be converted to a JCO.StructureJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(char value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(short value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(int value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(long value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(double value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(byte[] value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(JCO.Structure value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(JCO.Table value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(java.lang.Object value, int index)
value
- the value to set for the fieldindex
- the index of the fieldJCO.ConversionException
- thrown if the value could not be converted to its internal representationpublic void setValue(java.lang.String value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(char value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(short value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(int value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(long value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(double value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(byte[] value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(JCO.Structure value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(JCO.Table value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic void setValue(java.lang.Object value, java.lang.String name)
value
- the value to set for the fieldname
- the name of the field to setJCO.ConversionException
- thrown if the value could not be converted to its internal representationJCO.Exception
- thrown if a field with the specified name does not existpublic final JCO.FieldIterator fields()
public void writeHTML(java.lang.String html_filename)
writeHTML
in class JCO.MetaData
html_filename
- the file to write toJCO.Exception
- thrown if something went wrongpublic void writeHTML(java.io.Writer writer) throws java.io.IOException
writeHTML
in class JCO.MetaData
writer
- the stream to write tojava.io.IOException
- thrown in case of an I/O errorJCO.Exception
- thrown if something else went wrongpublic java.lang.String toString()
toString
in class JCO.MetaData
com.sap.mw.jco.IMetaData
public void readXML(java.io.Reader reader) throws java.io.IOException
reader
- the stream to read the xml document fromjava.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurredpublic void readXML(java.lang.String xml_filename) throws java.io.IOException
xml_filename
- the file to read fromjava.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurredpublic void writeXML(java.io.Writer writer) throws java.io.IOException
writer
- the stream to dump the XML document tojava.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurredpublic void writeXML(java.io.Writer writer, boolean with_header) throws java.io.IOException
writer
- the stream to dump the XML document towith_header
- if true prepends the XML header,java.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurredpublic void writeXML(java.io.Writer writer, java.lang.String namespace_urn, boolean with_header) throws java.io.IOException
writer
- the stream to dump the XML document towith_header
- if true prepends the XML header,java.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurredpublic void writeXML(java.lang.String xml_filename) throws java.io.IOException
xml_filename
- the file to write tojava.io.IOException
- thrown if an I/O error occurredJCO.Exception
- thrown if another error occurred
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |