|
|||||||||
| 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
public class IeAtt
| Field Summary | |
|---|---|
static java.lang.String |
ATT_TYPE_ID_KEY
|
static java.lang.String |
EMPTY_STRING
|
| Constructor Summary | |
|---|---|
IeAtt()
default no arg constructor to be used for de-serialization |
|
IeAtt(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
Constructs a new attribute instance with a specific attribute type identifier. |
|
IeAtt(java.lang.String name)
Constructs a new attribute instance with a specific logical name. |
|
IeAtt(java.lang.String name,
com.ptc.core.meta.common.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(java.util.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. |
java.lang.Object |
deepClone()
Returns a deep copy of the attribute. |
IeDatum |
firstDatum()
Returns the first datum contained in the attribute. |
java.util.Enumeration |
getAttributeIdentifiers(com.ptc.core.meta.container.common.State state,
java.lang.String fti,
java.lang.String ufid)
Returns the attribute identifiers of all values of this attribute that have a specific state. |
java.util.Enumeration |
getAttributeIdentifiers(java.lang.String fti,
java.lang.String ufid)
Returns the attribute identifiers of all values of this attribute. |
com.ptc.core.meta.common.AttributeTypeIdentifier |
getAttributeTypeIdentifier()
Returns the attribute type identifier associated with this attribute. |
com.ptc.core.meta.common.AttributeTypeIdentifier |
getAttributeTypeIdentifier(java.lang.String fti)
Returns the attribute type identifier associated with this attribute. |
java.lang.Object |
getContent()
Returns the content associated with this instance. |
java.lang.Object |
getContent(com.ptc.core.meta.common.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(com.ptc.core.meta.common.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. |
java.util.Enumeration |
getDatums()
Returns all of the datums contained in the attribute. |
java.lang.String |
getNodeName()
Returns the DOM node name of this object. |
com.ptc.core.meta.container.common.State |
getState(com.ptc.core.meta.common.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(com.ptc.core.meta.common.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(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
Sets the attribute type identifier associated with this attribute. |
void |
setContent(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object content)
Sets the content for a specific value identified by attribute identifier. |
void |
setContent(java.lang.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(java.lang.String name)
Sets the name of the attribute. |
void |
setState(com.ptc.core.meta.common.AttributeIdentifier attrId,
com.ptc.core.meta.container.common.State state)
Sets the state of a specific value identified by attribute identifier. |
java.lang.String |
toString()
|
| Methods inherited from class com.infoengine.object.IeObject |
|---|
addAtt, addMeta, addMeta, addMeta, addMeta, addMetaDatum, addMetaValue, addMetaValues, appendMetaDatum, canonicalize, canonicalize, clone, containsMetaValue, deepCopy, firstAtt, firstChild, firstMetaValue, getAtt, getAttAt, getAttByMeta, getAttCount, getAttribute, getAtts, getChildCount, getChildren, getHasChanged, getMeta, getMetaNames, getMetaValue, getMetaValueAt, getMetaValueCount, getMetaValues, getName, getTagName, getType, hasChildren, indexOfMetaValue, lastAtt, lastChild, lastMetaValue, readExternal, removeAllAtts, removeAllMeta, removeAllMetaValues, removeAtt, removeAtt, removeAttAt, removeAttribute, removeChild, removeMeta, removeMetaValue, removeMetaValueAt, removeName, removeType, replaceChild, setAttAt, setAttribute, setHasChanged, setMeta, setMeta, setMeta, setMeta, setMetaValue, setMetaValueAt, setType, shallowCopy, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATT_TYPE_ID_KEY
public static final java.lang.String EMPTY_STRING
| Constructor Detail |
|---|
public IeAtt()
public IeAtt(java.lang.String name)
name - The logical name of the attributepublic IeAtt(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
attrTypeId - The attribute type identifier
public IeAtt(java.lang.String name,
com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
name - The logical name of the attributeattrTypeId - The attribute type identifier| Method Detail |
|---|
public void addDatum(IeDatum datum)
datum - the datum to be addedpublic void appendDatum(IeDatum datum)
datum - the datum to be appendedpublic void addDatums(java.util.Vector v)
v - the Vector of datums to be appendedpublic IeDatum firstDatum()
public IeDatum getDatum()
public IeDatum getDatum(com.ptc.core.meta.common.AttributeIdentifier attrId)
attrId - The attribute identifier containing the instance
identifier that identifies the datum to be returned.
public java.util.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(com.ptc.core.meta.common.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(java.lang.String name)
setName in class IeObjectname - the new name
public 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 java.lang.Object getContent()
public java.lang.Object getContent(com.ptc.core.meta.common.AttributeIdentifier attrId)
attrId - The attribute identifier containing the instance
identifier that identifies the instance whose content
will be returned.
public void setContent(java.lang.Object content)
content - The new content. If null is specified, the instance
will have no content upon return from this method.
public void setContent(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.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 com.ptc.core.meta.common.AttributeTypeIdentifier getAttributeTypeIdentifier()
public com.ptc.core.meta.common.AttributeTypeIdentifier getAttributeTypeIdentifier(java.lang.String fti)
fti - The federated type identifier of the node that contains
this attribute.ufid - The unique federation identifier of the node that contains
this attribute.
public void setAttributeTypeIdentifier(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
attrTypeId - The new attribute type identifier.
public java.util.Enumeration getAttributeIdentifiers(java.lang.String fti,
java.lang.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 java.util.Enumeration getAttributeIdentifiers(com.ptc.core.meta.container.common.State state,
java.lang.String fti,
java.lang.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 com.ptc.core.meta.container.common.State getState(com.ptc.core.meta.common.AttributeIdentifier attrId)
attrId - The attribute identifier containing the instance
identifier that identifies the instance whose state
will be returned.
public void setState(com.ptc.core.meta.common.AttributeIdentifier attrId,
com.ptc.core.meta.container.common.State state)
attrId - The attribute identifier containing the instance
identifier that identifies the instance whose state
will be set.state - The new state.public java.lang.String getNodeName()
getNodeName in class IeObjectpublic final java.lang.Object deepClone()
deepClone in class IeObjectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||