|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.interlis.iom_j.Iom_jObject
public class Iom_jObject
This class provides a default implementation for the IomObject interface.
Constructor Summary | |
---|---|
Iom_jObject(java.lang.String tag1,
java.lang.String oid1)
creates a new object. |
Method Summary | |
---|---|
void |
addattrobj(java.lang.String attrName,
IomObject obj)
appends a new value to an indexed attribute with a structured type. |
IomObject |
addattrobj(java.lang.String attrName,
java.lang.String type)
Deprecated. |
void |
changeattrobj(java.lang.String attrName,
int index,
IomObject obj)
changes the value of an indexed attribute with a structured type. |
IomObject |
changeattrobj(java.lang.String attrName,
int index,
java.lang.String type)
Deprecated. |
void |
delete()
disposes the underlying native object. |
void |
deleteattrobj(java.lang.String attrName,
int index)
removes a value from an indexed attibute with a structured type. |
static java.lang.String |
dumpObject(IomObject obj)
converts the contents of the given object for debuggung to a one line String. |
int |
getattrcount()
gets the number of attributes of this object. |
java.lang.String |
getattrname(int index)
gets an attribute name. |
IomObject |
getattrobj(java.lang.String attrName,
int index)
gets the value of an indexed attribute with a structured type. |
java.lang.String |
getattrprim(java.lang.String attrName,
int index)
gets the value of an indexed attribute with a primitive type. |
java.lang.String |
getattrvalue(java.lang.String attrName)
gets the value of an attribute with a primitive type. |
int |
getattrvaluecount(java.lang.String attrName)
gets the number of values of a given attribute. |
int |
getobjectcol()
gets the column of the object in the file, if read from a file. |
int |
getobjectconsistency()
gets the consistency (complete, incomplete, inconsistent, adapted) of this object. |
int |
getobjectline()
gets the line of the object in the file, if read from a file. |
java.lang.String |
getobjectoid()
gets the identifier of the object. |
int |
getobjectoperation()
gets the operation mode (insert, update, delete) of this object. |
java.lang.String |
getobjectrefbid()
gets the identifier of the basket containing the referenced object, if this object is a reference value. |
java.lang.String |
getobjectrefoid()
gets the identifier of the referenced object, if this object is a reference value. |
long |
getobjectreforderpos()
gets the ordering index, if this object is a reference value of an ordered relationship. |
java.lang.String |
getobjecttag()
gets the type of the object. |
java.lang.String |
getxmleleattrname(int index)
gets the name of the xml-element with the given xml-element index. |
int |
getxmlelecount()
gets the number of xml-subelements. |
IomObject |
getxmleleobj(int index)
gets the structured value of the xml-element with the given xml-element index. |
java.lang.String |
getxmleleprim(int index)
gets the simple value of the xml-element with the given xml-element index. |
int |
getxmlelevalueidx(int index)
gets the attribute value index of the xml-element with the given xml-element index. |
void |
insertattrobj(java.lang.String attrName,
int index,
IomObject obj)
inserts a new value to an indexed attribute with a structured type. |
IomObject |
insertattrobj(java.lang.String attrName,
int index,
java.lang.String type)
Deprecated. |
void |
setattrundefined(java.lang.String attrName)
Removes any values for a given attribute. |
void |
setattrvalue(java.lang.String attrName,
java.lang.String value)
sets the value of an attribute with a primitve type. |
void |
setobjectcol(int col)
sets the column of the object in the file, if read from a file. |
void |
setobjectconsistency(int consistency1)
sets the consistency (complete, incomplete, inconsistent, adapted) of this object. |
void |
setobjectline(int line)
sets the line of the object in the file, if read from a file. |
void |
setobjectoid(java.lang.String oid1)
sets the identifier of the object. |
void |
setobjectoperation(int operation)
sets the operation mode (insert, update, delete) of this object. |
void |
setobjectrefbid(java.lang.String refbid1)
sets the identifier of the basket containing the referenced object, if this object is a reference value. |
void |
setobjectrefoid(java.lang.String refoid1)
sets the identifier of the referenced object, if this object is a reference value. |
void |
setobjectreforderpos(long orderpos1)
sets the ordering index, if this object is a reference value of an ordered relationship. |
void |
setobjecttag(java.lang.String tag1)
sets the type of the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Iom_jObject(java.lang.String tag1, java.lang.String oid1)
tag1
- type of new object.oid1
- oid of new object. May be null in case of a structure.Method Detail |
---|
public IomObject addattrobj(java.lang.String attrName, java.lang.String type)
addattrobj
in interface IomObject
public void addattrobj(java.lang.String attrName, IomObject obj)
IomObject
addattrobj
in interface IomObject
attrName
- name of attributeobj
- new valuepublic IomObject changeattrobj(java.lang.String attrName, int index, java.lang.String type)
changeattrobj
in interface IomObject
public void changeattrobj(java.lang.String attrName, int index, IomObject obj)
IomObject
changeattrobj
in interface IomObject
attrName
- name of attributeindex
- index of value to changeobj
- new valuepublic void delete()
IomObject
delete
in interface IomObject
public void deleteattrobj(java.lang.String attrName, int index)
IomObject
deleteattrobj
in interface IomObject
attrName
- name of attributeindex
- index ov value to removepublic int getattrcount()
IomObject
for(int i=0;i<obj.getattrcount();i++){
String propName=obj.getattrname(i);
String value=obj.getattrvalue(propName);
if(value!=null){
...
}
}
getattrcount
in interface IomObject
public java.lang.String getattrname(int index)
IomObject
for(int i=0;i<obj.getattrcount();i++){
String propName=obj.getattrname(i);
String value=obj.getattrvalue(propName);
if(value!=null){
...
}
}
getattrname
in interface IomObject
index
- The index is opaque and only useable to enumerate all defined attributes of this object.
public IomObject getattrobj(java.lang.String attrName, int index)
IomObject
getattrobj
in interface IomObject
attrName
- name of attributeindex
- index of value to retrieve
public java.lang.String getattrprim(java.lang.String attrName, int index)
IomObject
getattrprim
in interface IomObject
attrName
- name of attributeindex
- index of value to retrieve
public java.lang.String getattrvalue(java.lang.String attrName)
IomObject
getattrvalue
in interface IomObject
attrName
- name of attribute
public int getattrvaluecount(java.lang.String attrName)
IomObject
getattrvaluecount
in interface IomObject
attrName
- name of attribute
public int getobjectcol()
IomObject
getobjectcol
in interface IomObject
public int getobjectline()
IomObject
getobjectline
in interface IomObject
public void setobjectcol(int col)
IomObject
setobjectcol
in interface IomObject
public void setobjectline(int line)
IomObject
setobjectline
in interface IomObject
public java.lang.String getxmleleattrname(int index)
IomObject
getxmleleattrname
in interface IomObject
public int getxmlelecount()
IomObject
getxmlelecount
in interface IomObject
public IomObject getxmleleobj(int index)
IomObject
getxmleleobj
in interface IomObject
public java.lang.String getxmleleprim(int index)
IomObject
getxmleleprim
in interface IomObject
public int getxmlelevalueidx(int index)
IomObject
getxmlelevalueidx
in interface IomObject
public IomObject insertattrobj(java.lang.String attrName, int index, java.lang.String type)
insertattrobj
in interface IomObject
public void insertattrobj(java.lang.String attrName, int index, IomObject obj)
IomObject
insertattrobj
in interface IomObject
attrName
- name of attributeindex
- index at which the specified value is to be insertedobj
- new valuepublic void setattrundefined(java.lang.String attrName)
IomObject
setattrundefined
in interface IomObject
attrName
- name of attributepublic void setattrvalue(java.lang.String attrName, java.lang.String value)
IomObject
setattrvalue
in interface IomObject
attrName
- name of attributevalue
- new primitive valuepublic int getobjectconsistency()
IomObject
getobjectconsistency
in interface IomObject
public void setobjectconsistency(int consistency1)
IomObject
setobjectconsistency
in interface IomObject
public java.lang.String getobjectoid()
IomObject
getobjectoid
in interface IomObject
public void setobjectoid(java.lang.String oid1)
IomObject
setobjectoid
in interface IomObject
public int getobjectoperation()
IomObject
getobjectoperation
in interface IomObject
public void setobjectoperation(int operation)
IomObject
setobjectoperation
in interface IomObject
public java.lang.String getobjectrefbid()
IomObject
getobjectrefbid
in interface IomObject
public void setobjectrefbid(java.lang.String refbid1)
IomObject
setobjectrefbid
in interface IomObject
public java.lang.String getobjectrefoid()
IomObject
getobjectrefoid
in interface IomObject
public void setobjectrefoid(java.lang.String refoid1)
IomObject
setobjectrefoid
in interface IomObject
public long getobjectreforderpos()
IomObject
getobjectreforderpos
in interface IomObject
public void setobjectreforderpos(long orderpos1)
IomObject
setobjectreforderpos
in interface IomObject
public java.lang.String getobjecttag()
IomObject
getobjecttag
in interface IomObject
public void setobjecttag(java.lang.String tag1)
IomObject
setobjecttag
in interface IomObject
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String dumpObject(IomObject obj)
obj
- object to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |