|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.object.factory.Att
public class Att
| Constructor Summary | |
|---|---|
Att(IeAtt att)
Constructs an attribute wrapper around an existing IeAtt object. |
|
Att(java.lang.String name)
Constructs an attribute with a specific name and no initial value. |
|
Att(java.lang.String name,
com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value)
Constructs an attribute with a specific name, attribute identifier, and initial generic value. |
|
Att(java.lang.String name,
com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
Constructs an attribute with a specific name, attribute identifier, initial generic value, and initial state. |
|
Att(java.lang.String name,
boolean value)
Constructs an attribute with a specific name and initial boolean value. |
|
Att(java.lang.String name,
byte[] value)
Constructs an attribute with a specific name and initial byte array value. |
|
Att(java.lang.String name,
java.util.Date value)
Constructs an attribute with a specific name and initial date value. |
|
Att(java.lang.String name,
java.lang.Number value)
Constructs an attribute with a specific name and initial number value. |
|
Att(java.lang.String name,
java.lang.Object value)
Constructs an attribute with a specific name and initial generic value. |
|
Att(java.lang.String name,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
Constructs an attribute with a specific name, initial generic value, and initial state. |
|
Att(java.lang.String name,
java.lang.String value)
Constructs an attribute with a specific name and initial string value. |
|
| Method Summary | |
|---|---|
void |
addDatum(IeDatum value)
Adds an object of type IeDatum as a value of the attribute. |
void |
addMeta(java.lang.String name,
byte[] value)
Adds a meta item with a byte array value to the attribute. |
void |
addMeta(java.lang.String name,
java.util.Date value)
Adds a meta item with a Date value to the attribute. |
void |
addMeta(java.lang.String name,
java.lang.Number value)
Adds a meta item with a Number value to the attribute. |
void |
addMeta(java.lang.String name,
java.lang.String value)
Adds a meta item with a String value to the attribute. |
void |
addRawValue(java.lang.Object value)
Adds a raw value of a generic type to this attribute. |
void |
addUniqueValue(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value)
Adds a value with a specific attribute identifier to this attribute, but only if this attribute does not contain this value already. |
void |
addUniqueValue(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
Adds a value with a specific attribute identifier and state to this attribute, but only if this attribute does not contain this value already. |
void |
addUniqueValue(java.lang.Object value)
Adds a value to this attribute, but only if this attribute does not contain this value already. |
void |
addValue(boolean value)
Adds a value of a string type to this attribute. |
void |
addValue(byte[] value)
Adds a value of a byte array type to this attribute. |
void |
addValue(java.util.Date value)
Adds a value of a date type to this attribute. |
void |
addValue(java.lang.Number value)
Adds a value of a number type to this attribute. |
void |
addValue(java.lang.Object value)
Adds a value of a generic type to this attribute. |
void |
addValue(java.lang.Object value,
com.ptc.core.meta.container.common.State state)
Adds a value with a specific state to this attribute. |
void |
addValue(java.lang.String value)
Adds a value of a string type to this attribute. |
java.lang.Object |
clone()
Returns a shallow copy of this attribute. |
boolean |
containsMetaValue(java.lang.String name,
java.lang.Object value)
Determines whether the attribute contains a meta item with a specific name and value. |
Att |
deepClone()
Returns a deep copy of this attribute. |
IeAtt |
getAtt()
Returns the attribute's internal IeAtt object. |
com.ptc.core.meta.common.AttributeTypeIdentifier |
getAttributeTypeIdentifier()
Returns the attribute type identifier currently assigned to this attribute. |
com.ptc.core.meta.common.AttributeTypeIdentifier |
getAttributeTypeIdentifier(java.lang.String fti)
Returns the attribute type identifier associated with this attribute. |
java.util.Enumeration |
getMetaNames()
Returns the names of all meta items associated with the attribute. |
java.util.Enumeration |
getMetaValues(java.lang.String name)
Returns all of the values of a meta item associated with the attribute. |
java.lang.String |
getName()
Returns the name currently assigned to this attribute. |
java.lang.Object |
getRawValue()
Returns the raw value of the first datum of this attribute. |
java.lang.Object |
getRawValueAt(int index)
Returns the raw value of the datum at a specific index position of this attribute. |
com.ptc.core.meta.container.common.State |
getState()
Returns the state of the first datum of this attribute. |
com.ptc.core.meta.container.common.State |
getState(int index)
Returns the state of the datum at a specific index position of this attribute. |
java.lang.Object |
getValue()
Returns the first datum (IeDatum object) of this attribute. |
int |
getValueCount()
Returns the number of values contained in the attribute. |
java.util.Enumeration |
getValues()
Returns all of the raw values of this attribute. |
void |
removeAllValues()
Removes all values from this attribute. |
void |
removeValue(IeDatum value)
Removes a specific value from this attribute. |
void |
setAttributeTypeIdentifier(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
Sets this attribute's attribute type identifier. |
void |
setName(java.lang.String name)
Sets this attribute's name. |
void |
setRawValue(java.lang.Object value)
Sets the raw value of this attribute to a generic type. |
void |
setRawValueAt(java.lang.Object value,
int index)
Sets the raw value of the datum at a specific index position of this attribute to a generic type. |
void |
setState(com.ptc.core.meta.container.common.State state)
Sets the state of the first datum of this attribute. |
void |
setStateAt(com.ptc.core.meta.container.common.State state,
int index)
Sets the state of the datum at a specific index position of this attribute. |
void |
setValue(boolean value)
Sets the value of this attribute to a string type. |
void |
setValue(byte[] value)
Sets the value of this attribute to a byte array type. |
void |
setValue(java.util.Date value)
Sets the value of this attribute to a date type. |
void |
setValue(java.lang.Number value)
Sets the value of this attribute to a number type. |
void |
setValue(java.lang.Object value)
Sets the raw value of the datum at a specific index position of this attribute to a generic type. |
void |
setValue(java.lang.String value)
Sets the value of this attribute to a string type. |
void |
toXML(java.io.PrintWriter output)
Writes the XML representation of the attribute to a specified PrintWriter. |
void |
toXML(java.io.PrintWriter output,
boolean includeMeta)
Writes the XML representation of the attribute to a specified PrintWriter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Att(java.lang.String name,
java.lang.Object value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
boolean value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
java.lang.String value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
java.lang.Number value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
java.util.Date value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
byte[] value)
name - The name of the attribute.value - The initial value of the attribute.
public Att(java.lang.String name,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
name - The name of the attribute.value - The initial value of the attribute.state - The initial state of the attribute value.
public Att(java.lang.String name,
com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value)
name - The name of the attribute.attrId - The attribute identifier.value - The initial value of the attribute.
public Att(java.lang.String name,
com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
name - The name of the attribute.attrId - The attribute identifier.value - The initial value of the attribute.state - The initial state of the attribute value.public Att(java.lang.String name)
name - The name of the attribute.public Att(IeAtt att)
att - The IeAtt object to be wrapped.| Method Detail |
|---|
public void toXML(java.io.PrintWriter output)
output - The PrintWriter on which to write the XML representation.
public void toXML(java.io.PrintWriter output,
boolean includeMeta)
output - The PrintWriter on which to write the XML representation.includeMeta - Specify true to include meta-information in the XML
representation.public java.lang.String getName()
public void setName(java.lang.String name)
name - The attribute's new name.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 element that contains
this attribute.
public void setAttributeTypeIdentifier(com.ptc.core.meta.common.AttributeTypeIdentifier attrTypeId)
attrTypeId - The attribute's new attribute type identifier.public java.util.Enumeration getValues()
public java.lang.Object getValue()
public int getValueCount()
public java.lang.Object getRawValue()
public java.lang.Object getRawValueAt(int index)
index - The index of the datum whose raw value will be returned.
public void setRawValue(java.lang.Object value)
value - The value to set.
public void setRawValueAt(java.lang.Object value,
int index)
index - The index of the datum whose value will be set.value - The value to set.public void setValue(java.lang.Object value)
index - The index of the datum whose value will be set.value - The value to set.public void setValue(java.lang.String value)
value - The value to set.public void setValue(boolean value)
value - The value to set.public void setValue(java.lang.Number value)
value - The value to set.public void setValue(java.util.Date value)
value - The value to set.public void setValue(byte[] value)
value - The value to set.public void addRawValue(java.lang.Object value)
value - The value to add.public void addValue(java.lang.Object value)
value - The value to add.public void addValue(java.lang.String value)
value - The value to add.public void addValue(boolean value)
value - The value to add.public void addValue(java.lang.Number value)
value - The value to add.public void addValue(java.util.Date value)
value - The value to add.public void addValue(byte[] value)
value - The value to add.
public void addValue(java.lang.Object value,
com.ptc.core.meta.container.common.State state)
value - The value to add uniquely.state - The state to associate with the value.public void addUniqueValue(java.lang.Object value)
value - The value to add uniquely.
public void addUniqueValue(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value)
attrId - The attribute identifier.value - The value to add uniquely.
public void addUniqueValue(com.ptc.core.meta.common.AttributeIdentifier attrId,
java.lang.Object value,
com.ptc.core.meta.container.common.State state)
attrId - The attribute identifier.value - The value to add uniquely.state - The state to associate with the value.public void removeValue(IeDatum value)
value - The value to be removed.public void removeAllValues()
public com.ptc.core.meta.container.common.State getState()
public com.ptc.core.meta.container.common.State getState(int index)
index - The index position of the datum for which to return state.
public void setState(com.ptc.core.meta.container.common.State state)
The - state to set.
public void setStateAt(com.ptc.core.meta.container.common.State state,
int index)
The - state to set.index - The index position of the datum for which to set state.
public boolean containsMetaValue(java.lang.String name,
java.lang.Object value)
name - The name of the meta.value - The value of the meta.
public java.util.Enumeration getMetaNames()
public java.util.Enumeration getMetaValues(java.lang.String name)
name - The name of the meta item.
public void addMeta(java.lang.String name,
java.lang.String value)
name - the name of the meta item.value - the value of the meta item.
public void addMeta(java.lang.String name,
java.util.Date value)
name - the name of the meta item.value - the value of the meta item.
public void addMeta(java.lang.String name,
java.lang.Number value)
name - the name of the meta item.value - the value of the meta item.
public void addMeta(java.lang.String name,
byte[] value)
name - the name of the meta item.value - the value of the meta item.public void addDatum(IeDatum value)
value - The object to be added.public IeAtt getAtt()
public java.lang.Object clone()
clone in class java.lang.Objectpublic Att deepClone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||