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