|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IomObject
defines the generic object.
if(obj.getattrvalue("attrname")==null){
IomObject struct=obj.getattrobj("attrname",0);
}
Method Summary | |
---|---|
void |
addattrobj(java.lang.String attrName,
IomObject value)
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 value)
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()
Deprecated. |
void |
deleteattrobj(java.lang.String attrName,
int index)
removes a value from an indexed attibute with a structured type. |
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()
Deprecated. |
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()
Deprecated. |
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 xmlEleIndex)
Deprecated. |
int |
getxmlelecount()
Deprecated. |
IomObject |
getxmleleobj(int xmlEleIndex)
Deprecated. |
java.lang.String |
getxmleleprim(int xmlEleIndex)
Deprecated. |
int |
getxmlelevalueidx(int xmlEleIndex)
Deprecated. |
void |
insertattrobj(java.lang.String attrName,
int index,
IomObject value)
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 consistency)
Deprecated. |
void |
setobjectline(int line)
sets the line of the object in the file, if read from a file. |
void |
setobjectoid(java.lang.String oid)
sets the identifier of the object. |
void |
setobjectoperation(int operation)
Deprecated. |
void |
setobjectrefbid(java.lang.String refbid)
sets the identifier of the basket containing the referenced object, if this object is a reference value. |
void |
setobjectrefoid(java.lang.String refoid)
sets the identifier of the referenced object, if this object is a reference value. |
void |
setobjectreforderpos(long orderPos)
sets the ordering index, if this object is a reference value of an ordered relationship. |
void |
setobjecttag(java.lang.String tag)
sets the type of the object. |
Method Detail |
---|
void delete()
int getobjectline()
void setobjectline(int line)
int getobjectcol()
void setobjectcol(int col)
java.lang.String getobjecttag()
void setobjecttag(java.lang.String tag)
java.lang.String getobjectoid()
void setobjectoid(java.lang.String oid)
java.lang.String getobjectrefoid()
void setobjectrefoid(java.lang.String refoid)
java.lang.String getobjectrefbid()
void setobjectrefbid(java.lang.String refbid)
long getobjectreforderpos()
void setobjectreforderpos(long orderPos)
int getobjectoperation()
void setobjectoperation(int operation)
int getobjectconsistency()
void setobjectconsistency(int consistency)
int getxmlelecount()
java.lang.String getxmleleattrname(int xmlEleIndex)
int getxmlelevalueidx(int xmlEleIndex)
java.lang.String getxmleleprim(int xmlEleIndex)
IomObject getxmleleobj(int xmlEleIndex)
int getattrcount()
for(int i=0;i<obj.getattrcount();i++){
String propName=obj.getattrname(i);
String value=obj.getattrvalue(propName);
if(value!=null){
...
}
}
java.lang.String getattrname(int index)
for(int i=0;i<obj.getattrcount();i++){
String propName=obj.getattrname(i);
String value=obj.getattrvalue(propName);
if(value!=null){
...
}
}
index
- The index is opaque and only useable to enumerate all defined attributes of this object.
int getattrvaluecount(java.lang.String attrName)
attrName
- name of attribute
java.lang.String getattrvalue(java.lang.String attrName)
attrName
- name of attribute
void setattrvalue(java.lang.String attrName, java.lang.String value)
attrName
- name of attributevalue
- new primitive valuevoid setattrundefined(java.lang.String attrName)
attrName
- name of attributejava.lang.String getattrprim(java.lang.String attrName, int index)
attrName
- name of attributeindex
- index of value to retrieve
IomObject getattrobj(java.lang.String attrName, int index)
attrName
- name of attributeindex
- index of value to retrieve
IomObject changeattrobj(java.lang.String attrName, int index, java.lang.String type)
void changeattrobj(java.lang.String attrName, int index, IomObject value)
attrName
- name of attributeindex
- index of value to changevalue
- new valueIomObject insertattrobj(java.lang.String attrName, int index, java.lang.String type)
void insertattrobj(java.lang.String attrName, int index, IomObject value)
attrName
- name of attributeindex
- index at which the specified value is to be insertedvalue
- new valueIomObject addattrobj(java.lang.String attrName, java.lang.String type)
void addattrobj(java.lang.String attrName, IomObject value)
attrName
- name of attributevalue
- new valuevoid deleteattrobj(java.lang.String attrName, int index)
attrName
- name of attributeindex
- index ov value to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |