|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.object.IeObject
com.infoengine.object.IeAtt
Field Summary | |
static String |
ATT_TYPE_ID_KEY
|
static String |
EMPTY_STRING
|
Fields inherited from class com.infoengine.object.IeObject |
_attributes, _children, _hasChanged, _meta, _name, _type, INITIAL_LIST_SIZE, INITIAL_MAP_SIZE, USE_COLLECTIONS |
Constructor Summary | |
IeAtt()
default no arg constructor to be used for de-serialization |
|
IeAtt(AttributeTypeIdentifier attrTypeId)
Constructs a new attribute instance with a specific attribute type identifier. |
|
IeAtt(String name)
Constructs a new attribute instance with a specific logical name. |
|
IeAtt(String name,
AttributeTypeIdentifier attrTypeId)
Constructs a new attribute instance with a specific logical name and a specific attribute type identifier. |
Method Summary | |
void |
addDatum(IeDatum datum)
Adds a datum to the attribute. |
void |
addDatums(Vector v)
Appends a Vector of datums to the attribute. |
void |
addIUniqueValue(IeDatum datum)
Adds a datum to the attribute if, and only if, the attribute does not contain the datum already. |
void |
addUniqueValue(IeDatum datum)
Adds a datum to the attribute if, and only if, the attribute does not contain the datum already. |
void |
appendDatum(IeDatum datum)
Appends a datum to the attribute. |
Object |
deepClone()
Returns a deep copy of the attribute. |
IeDatum |
firstDatum()
Returns the first datum contained in the attribute. |
Enumeration |
getAttributeIdentifiers(State state,
String fti,
String ufid)
Returns the attribute identifiers of all values of this attribute that have a specific state. |
Enumeration |
getAttributeIdentifiers(String fti,
String ufid)
Returns the attribute identifiers of all values of this attribute. |
AttributeTypeIdentifier |
getAttributeTypeIdentifier()
Returns the attribute type identifier associated with this attribute. |
AttributeTypeIdentifier |
getAttributeTypeIdentifier(String fti)
Returns the attribute type identifier associated with this attribute. |
Object |
getContent()
Returns the content associated with this instance. |
Object |
getContent(AttributeIdentifier attrId)
Returns the content associated with a specific value identified by attribute identifier. |
IeDatum |
getDatum()
Returns the first datum contained in the attribute. |
IeDatum |
getDatum(AttributeIdentifier attrId)
Returns the datum with a specific attribute identifier. |
IeDatum |
getDatumAt(int index)
Returns the datum located at a specified index. |
int |
getDatumCount()
Returns the number of datums contained in the attribute. |
Enumeration |
getDatums()
Returns all of the datums contained in the attribute. |
String |
getNodeName()
Returns the DOM node name of this object. |
State |
getState(AttributeIdentifier attrId)
Returns the state of a specific value identified by attribute identifier. |
int |
indexOfDatum(IeDatum datum)
Returns the index of a specified datum. |
IeDatum |
lastDatum()
Returns the last datum contained in the attribute. |
void |
removeAllDatums()
Removes all of the datums contained in the attribute. |
void |
removeDatum(AttributeIdentifier attrId)
Removes the datum with a specific attribute identifier. |
void |
removeDatum(IeDatum datum)
Removes a specified datum from the attribute. |
void |
removeDatumAt(int index)
Removes the datum located at a specified index of the attribute. |
void |
setAttributeTypeIdentifier(AttributeTypeIdentifier attrTypeId)
Sets the attribute type identifier associated with this attribute. |
void |
setContent(AttributeIdentifier attrId,
Object content)
Sets the content for a specific value identified by attribute identifier. |
void |
setContent(Object content)
Sets the content associated with this instance. |
void |
setDatum(IeDatum datum)
Removes any pre-existing datums contained within the attribute, then sets the specified datum as the only datum in the attribute. |
void |
setDatumAt(IeDatum datum,
int index)
Sets the datum located at a specified index of the attribute. |
void |
setName(String name)
Sets the name of the attribute. |
void |
setState(AttributeIdentifier attrId,
State state)
Sets the state of a specific value identified by attribute identifier. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ATT_TYPE_ID_KEY
public static final String EMPTY_STRING
Constructor Detail |
public IeAtt()
public IeAtt(String name)
name
- The logical name of the attributepublic IeAtt(AttributeTypeIdentifier attrTypeId)
attrTypeId
- The attribute type identifierpublic IeAtt(String name, AttributeTypeIdentifier attrTypeId)
name
- The logical name of the attributeattrTypeId
- The attribute type identifierMethod Detail |
public void addDatum(IeDatum datum)
datum
- the datum to be addedpublic void appendDatum(IeDatum datum)
datum
- the datum to be appendedpublic void addDatums(Vector v)
v
- the Vector of datums to be appendedpublic IeDatum firstDatum()
public IeDatum getDatum()
public IeDatum getDatum(AttributeIdentifier attrId)
attrId
- The attribute identifier containing the instance
identifier that identifies the datum to be returned.
public Enumeration getDatums()
public IeDatum getDatumAt(int index)
index
- the index of the datum to be returned
public int getDatumCount()
public int indexOfDatum(IeDatum datum)
datum
- the datum for which to return an index
public IeDatum lastDatum()
public void removeAllDatums()
public void removeDatum(IeDatum datum)
datum
- the datum to be removedpublic void removeDatum(AttributeIdentifier attrId)
attrId
- The attribute identifier containing the instance
identifier that identifies the datum to be removed.public void removeDatumAt(int index)
index
- the index of the datum to be removedpublic void setDatum(IeDatum datum)
datum
- the datum to setpublic void setName(String name)
setName
in class IeObject
name
- the new namepublic void setDatumAt(IeDatum datum, int index)
datum
- the new datum to be setindex
- the index of the datum to be setpublic void addUniqueValue(IeDatum datum)
datum
- the datum to be addedpublic void addIUniqueValue(IeDatum datum)
datum
- the datum to be addedpublic Object getContent()
public Object getContent(AttributeIdentifier attrId)
attrId
- The attribute identifier containing the instance
identifier that identifies the instance whose content
will be returned.
public void setContent(Object content)
content
- The new content. If null is specified, the instance
will have no content upon return from this method.public void setContent(AttributeIdentifier attrId, Object content)
attrId
- The attribute identifier containing the instance
identifier that identifies the instance whose content
will be set.content
- The new content. If null is specified, the instance
will have no content upon return from this method.public AttributeTypeIdentifier getAttributeTypeIdentifier()
public AttributeTypeIdentifier getAttributeTypeIdentifier(String fti)
fti
- The federated type identifier of the node that contains
this attribute.
public void setAttributeTypeIdentifier(AttributeTypeIdentifier attrTypeId)
attrTypeId
- The new attribute type identifier.public Enumeration getAttributeIdentifiers(String fti, String ufid)
fti
- The federated type identifier to use in constructing
definition identifiers for new attribute identifiers.ufid
- The unique federation identifier to use in constructing
context identifiers for new attribute identifiers.
public Enumeration getAttributeIdentifiers(State state, String fti, String ufid)
fti
- The federated type identifier to use in constructing
definition identifiers for new attribute identifiers.ufid
- The unique federation identifier to use in constructing
context identifiers for new attribute identifiers.
public State getState(AttributeIdentifier attrId)
attrId
- The attribute identifier containing the instance
identifier that identifies the instance whose state
will be returned.
public void setState(AttributeIdentifier attrId, State state)
attrId
- The attribute identifier containing the instance
identifier that identifies the instance whose state
will be set.state
- The new state.public String getNodeName()
getNodeName
in class IeObject
public final Object deepClone()
deepClone
in class IeObject
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |