|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.IeObject
public class IeObject
This is the base class for the Info*Engine classes that are used in defining groups and their components.
| Constructor Summary | |
|---|---|
IeObject()
Constructs a new instance without a name. |
|
IeObject(java.lang.String name)
Constructs a new instance with a name. |
|
| Method Summary | |
|---|---|
void |
addAtt(IeAtt att)
Adds an attribute to the object. |
void |
addMeta(java.lang.String key,
byte[] value)
Adds meta-information of type byte array to the object. |
void |
addMeta(java.lang.String key,
java.util.Date value)
Adds meta-information of type Date to the object. |
void |
addMeta(java.lang.String key,
java.lang.Number value)
Adds meta-information of type Number to the object. |
void |
addMeta(java.lang.String key,
java.lang.String value)
Adds meta-information of type String to the object. |
void |
addMetaDatum(java.lang.String key,
IeDatum value)
Adds meta-information of type IeDatum to the object. |
void |
addMetaValue(java.lang.String key,
java.lang.Object o)
Add/append an object to a possibly multi-valued meta-information item, or create a vector and add it to the meta-information item. |
void |
addMetaValues(java.lang.String key,
java.util.Vector v)
Add elements of a vector to a possibly multi-valued meta-information item. |
void |
appendMetaDatum(java.lang.String key,
IeDatum value)
Appends a value to the pre-existing value defined for a specified meta-information item. |
java.lang.String |
canonicalize()
|
void |
canonicalize(java.lang.StringBuffer sb)
append canonical string representation to a StringBuffer |
java.lang.Object |
clone()
Returns a shallow copy of the object. |
boolean |
containsMetaValue(java.lang.String key,
java.lang.Object value)
Determines whether an object is contained within a meta-information item. |
java.lang.Object |
deepClone()
Returns a deep copy of the object. |
java.lang.Object |
deepCopy(IeObject newObject)
Returns a deep copy of the object. |
IeAtt |
firstAtt()
Returns the first attribute associated with the object. |
java.lang.Object |
firstChild()
Returns the object that is the first child of this object. |
java.lang.Object |
firstMetaValue(java.lang.String key)
Returns the first value contained in a meta-information item. |
IeAtt |
getAtt(java.lang.String name)
Returns an attribute specified by name. |
IeAtt |
getAttAt(int index)
Returns the attribute located at a particular index. |
IeAtt |
getAttByMeta(java.lang.String name,
java.lang.Object value)
Returns the attribute containing a specific metadata name and value. |
int |
getAttCount()
Returns the number of attributes associated with the object. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of a named attribute. |
java.util.Enumeration |
getAtts()
Returns all of the attributes associated with the object. |
int |
getChildCount()
Returns the number of objects that are immediate children of this object. |
java.util.Enumeration |
getChildren()
Returns all of the objects that are immediate children of this object. |
boolean |
getHasChanged()
Indicates whether this object has changed. |
IeMeta |
getMeta(java.lang.String key)
Returns the value of a meta-information item. |
java.util.Enumeration |
getMetaNames()
Return the names of all meta-information items associated with the object instance. |
java.lang.Object |
getMetaValue(java.lang.String key)
Returns the value of a meta-information item. |
java.lang.Object |
getMetaValueAt(java.lang.String key,
int index)
Returns the value of a multi-valued meta-information item located at a specified index. |
int |
getMetaValueCount(java.lang.String key)
Returns the number of values contained within a meta-information item. |
java.util.Enumeration |
getMetaValues(java.lang.String key)
Returns all of the values contained within a meta-information item. |
java.lang.String |
getName()
Returns the name of the object. |
java.lang.String |
getNodeName()
Returns the name of this node. |
java.lang.String |
getTagName()
Returns the name of the element. |
java.lang.String |
getType()
Returns the type of the object. |
boolean |
hasChildren()
Indicates whether this object has any children. |
int |
indexOfMetaValue(java.lang.String key,
java.lang.Object value)
Returns the index of a particular value of a meta-information item. |
IeAtt |
lastAtt()
Returns the last attribute of the object. |
java.lang.Object |
lastChild()
Returns the object that is the last child of this object. |
java.lang.Object |
lastMetaValue(java.lang.String key)
Returns the last value contained in a meta-information item. |
void |
readExternal(java.io.ObjectInput in)
|
void |
removeAllAtts()
Removes all attributes of the object. |
void |
removeAllMeta()
Removes all meta-information items from the object instance. |
void |
removeAllMetaValues(java.lang.String key)
Removes all values of a meta-information item. |
void |
removeAtt(IeAtt att)
Removes a particular attribute from the object. |
void |
removeAtt(java.lang.String name)
Removes a particular attribute specified by name. |
void |
removeAttAt(int index)
Removes the attribute located at a particular index. |
void |
removeAttribute(java.lang.String name)
Removes an attribute from this DOM object. |
void |
removeChild(java.lang.Object o)
Removes a particular child of this object. |
void |
removeMeta(java.lang.String key)
Removes a meta-information item from the object instance. |
void |
removeMetaValue(java.lang.String key,
java.lang.Object o)
Removes a particular value from a meta-information item. |
void |
removeMetaValueAt(java.lang.String key,
int index)
Removes the value located at a particular index of a meta-information item. |
void |
removeName()
Removes the object's name by setting it to null. |
void |
removeType()
Removes the object's type by setting it to an empty string. |
IeObject |
replaceChild(IeObject newChild,
IeObject oldChild)
Replaces the specified child object with a new one. |
void |
setAttAt(IeAtt att,
int index)
Sets the attribute located at a particular index. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets a named attribute to a specified value. |
void |
setHasChanged(boolean hasChanged)
Sets the modification flag. |
void |
setMeta(java.lang.String key,
byte[] value)
Set meta-information of type byte array on the object. |
void |
setMeta(java.lang.String key,
java.util.Date value)
Set meta-information of type Date on the object. |
void |
setMeta(java.lang.String key,
java.lang.Number value)
Set meta-information of type Number on the object. |
void |
setMeta(java.lang.String key,
java.lang.String value)
Set meta-information of type String on the object. |
void |
setMetaValue(java.lang.String s,
java.lang.Object value)
Set the value of a meta-information item. |
void |
setMetaValueAt(java.lang.String key,
java.lang.String o,
int index)
Set the value located at a particular index of a multi-valued meta-information item. |
void |
setName(java.lang.String name)
Sets the name of the object. |
void |
setType(java.lang.String type)
Sets the type of the object. |
java.lang.Object |
shallowCopy(IeObject newObject)
Returns a shallow copy of the object (without children). |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IeObject()
public IeObject(java.lang.String name)
name - the name to be assigned to the object| Method Detail |
|---|
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void addMeta(java.lang.String key,
java.lang.String value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void addMeta(java.lang.String key,
java.util.Date value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void addMeta(java.lang.String key,
java.lang.Number value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void addMeta(java.lang.String key,
byte[] value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void addMetaDatum(java.lang.String key,
IeDatum value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void appendMetaDatum(java.lang.String key,
IeDatum value)
key - the name of the meta-information itemvalue - the value to be appendedpublic IeMeta getMeta(java.lang.String key)
key - the name of the meta-information item to return
public java.util.Enumeration getMetaNames()
public java.lang.String getNodeName()
public void removeAllMeta()
public void removeMeta(java.lang.String key)
key - the name of the meta-information item to remove
public IeObject replaceChild(IeObject newChild,
IeObject oldChild)
newChild - the new child objectoldChild - the child to be replaced
public void setMeta(java.lang.String key,
java.util.Date value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void setMeta(java.lang.String key,
java.lang.String value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void setMeta(java.lang.String key,
byte[] value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void setMeta(java.lang.String key,
java.lang.Number value)
key - the name of the meta-information itemvalue - the value of the meta-information item
public void addMetaValue(java.lang.String key,
java.lang.Object o)
key - the name of the meta-information itemo - the object to be added/appended
public void addMetaValues(java.lang.String key,
java.util.Vector v)
key - the name of the meta-information itemv - the vector containing objects to be added
public boolean containsMetaValue(java.lang.String key,
java.lang.Object value)
key - the name of the meta-information itemvalue - the value to test for containment
public java.lang.Object firstMetaValue(java.lang.String key)
key - the name of the meta-information item
public java.lang.Object getMetaValue(java.lang.String key)
key - the name of the meta-information item
public java.lang.Object getMetaValueAt(java.lang.String key,
int index)
key - the name of the meta-information itemindex - the index of the value to return
public int getMetaValueCount(java.lang.String key)
key - the name of the meta-information item
public java.util.Enumeration getMetaValues(java.lang.String key)
key - the name of the meta-information item
public int indexOfMetaValue(java.lang.String key,
java.lang.Object value)
key - the name of the meta-information itemvalue - the value for which to find the index
public java.lang.Object lastMetaValue(java.lang.String key)
key - the name of the meta-information item
public void removeMetaValue(java.lang.String key,
java.lang.Object o)
key - the name of the meta-information itemo - the value to be removed
public void removeMetaValueAt(java.lang.String key,
int index)
key - the name of the meta-information itemindex - the index of the value to be removedpublic void removeAllMetaValues(java.lang.String key)
key - the name of the meta-information item
public void setMetaValue(java.lang.String s,
java.lang.Object value)
key - the name of the meta-information itemvalue - the value to be set
public void setMetaValueAt(java.lang.String key,
java.lang.String o,
int index)
key - the name of the meta-information itemo - the value to be setindex - the index of the value to be setpublic final java.util.Enumeration getChildren()
public final void removeChild(java.lang.Object o)
o - the child to be removedpublic void addAtt(IeAtt att)
att - the attribute to be addedpublic IeAtt firstAtt()
public IeAtt getAtt(java.lang.String name)
name - the name of the attribute to return
public java.util.Enumeration getAtts()
public IeAtt getAttAt(int index)
index - the index of the attribute to be returned
public IeAtt getAttByMeta(java.lang.String name,
java.lang.Object value)
name - The name of the metadata.value - The value of the metadata.
public int getAttCount()
public IeAtt lastAtt()
public void removeAllAtts()
public void removeAtt(java.lang.String name)
name - the name of the attribute to be removedpublic void removeAtt(IeAtt att)
att - the attribute to be removedpublic void removeAttAt(int index)
index - the index of the attribute to be removed
public void setAttAt(IeAtt att,
int index)
att - the new attribute to be setindex - the index of the attribute to be setpublic java.lang.Object deepClone()
public final java.lang.Object shallowCopy(IeObject newObject)
newObject - base object in which to generate the shallow copy
public final java.lang.Object deepCopy(IeObject newObject)
newObject - base object in which to generate the deep copy
public final java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic void removeName()
public java.lang.String getType()
public void setType(java.lang.String type)
type - the type to setpublic void removeType()
public java.lang.Object firstChild()
public java.lang.Object lastChild()
public int getChildCount()
public boolean hasChildren()
public boolean getHasChanged()
public void setHasChanged(boolean hasChanged)
hasChanged - true to indicate that the object has changedpublic java.lang.String getTagName()
public java.lang.String getAttribute(java.lang.String name)
name - the name of the attribute to retrieve
public void setAttribute(java.lang.String name,
java.lang.String value)
name - the name of the attribute to be setvalue - the value to set
DOMException - if attribute value can not be setpublic void removeAttribute(java.lang.String name)
name - the name of the attribute to be removedpublic java.lang.String canonicalize()
public void canonicalize(java.lang.StringBuffer sb)
sb - - the StringBuffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||