|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.attributes.AbstractAttribute
public abstract class AbstractAttribute
Base class for handling basic type conversions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.attributes.Attribute |
---|
Attribute.Type |
Constructor Summary | |
---|---|
AbstractAttribute()
|
Method Summary | |
---|---|
void |
add(Attribute attr)
ListAttributeValue -specific method. |
void |
add(int index,
Attribute attr)
ListAttributeValue -specific method. |
void |
clear()
MapAttributeValue -specific method. |
java.util.Set |
entrySet()
MapAttributeValue -specific method. |
Attribute |
get(int index)
ListAttributeValue -specific method. |
Attribute |
get(java.lang.String key)
MapAttributeValue -specific method. |
AttributeImpl |
getAttributeImpl()
|
AttributeValue |
getAttributeValue()
|
byte[] |
getBlobValue()
Get a Blob value from a BlobValue |
boolean |
getBooleanValue()
Get the value of a BooleanValue. |
byte |
getByteValue()
Get the value of a ByteValue. |
double |
getDoubleValue()
Get a double value from a DoubleValue. |
float |
getFloatValue()
Get the value of a FloatValue. |
int |
getIntValue()
Get the integer value of an IntValue. |
long |
getLongValue()
Get the long value of a LongValue. |
java.io.Serializable |
getSerializableValue()
Get a Seriailizable value from a SerializableValue |
short |
getShortValue()
Get the value of a ShortValue. |
java.lang.String |
getStringValue()
Get a String value from a StringValue. |
java.util.Iterator |
iterator()
ListAttributeValue -specific method. |
java.util.Set |
keySet()
MapAttributeValue -specific method. |
void |
put(java.lang.String key,
Attribute value)
MapAttributeValue -specific method. |
void |
remove(int index)
ListAttributeValue -specific method. |
void |
remove(java.lang.String key)
MapAttributeValue -specific method. |
void |
set(int index,
Attribute value)
ListAttributeValue -specific method. |
void |
setBlobValue(byte[] value)
Set a Blob value. |
void |
setBooleanValue(boolean value)
Set a boolean value. |
void |
setByteValue(byte value)
Set a byte value. |
void |
setDoubleValue(double value)
Set a double value. |
void |
setFloatValue(float value)
Set a float value. |
void |
setIntValue(int value)
Set an integer value. |
void |
setLongValue(long value)
Set a long value. |
void |
setSerializableValue(java.io.Serializable value)
Set a Serializable value. |
void |
setShortValue(short value)
Set a short value. |
void |
setStringValue(java.lang.String value)
Set a String value. |
int |
size()
ListAttributeValue or MapAttributeValue -specific method. |
java.util.Collection |
values()
MapAttributeValue -specific method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.attributes.Attribute |
---|
getAcl, getRawValue, getType, setAcl |
Constructor Detail |
---|
public AbstractAttribute()
Method Detail |
---|
public final AttributeImpl getAttributeImpl()
getAttributeImpl
in interface Attribute
Attribute.Type.getAttributeImpl(Attribute)
public final AttributeValue getAttributeValue()
getAttributeValue
in interface Attribute
Attribute.Type.getAttributeValue(Attribute)
public void add(Attribute attr)
ListAttributeValue
-specific method.
add
in interface Attribute
public void add(int index, Attribute attr)
ListAttributeValue
-specific method.
add
in interface Attribute
index
- The offset.attr
- The attribute.public java.util.Iterator iterator()
ListAttributeValue
-specific method.
iterator
in interface java.lang.Iterable
iterator
in interface Attribute
public int size()
ListAttributeValue
or MapAttributeValue
-specific method.
size
in interface Attribute
public Attribute get(int index)
ListAttributeValue
-specific method.
get
in interface Attribute
index
- The offset.
public void remove(int index)
ListAttributeValue
-specific method.
remove
in interface Attribute
index
- The entry to remove.public void set(int index, Attribute value)
ListAttributeValue
-specific method.
set
in interface Attribute
index
- The index to set.value
- The attribute to set.public void clear()
MapAttributeValue
-specific method.
clear
in interface Attribute
public java.util.Set entrySet()
MapAttributeValue
-specific method.
entrySet
in interface Attribute
public java.util.Set keySet()
MapAttributeValue
-specific method.
keySet
in interface Attribute
public java.util.Collection values()
MapAttributeValue
-specific method.
values
in interface Attribute
public void put(java.lang.String key, Attribute value)
MapAttributeValue
-specific method.
put
in interface Attribute
key
- The key to the entry.value
- The Value of the entry.public void remove(java.lang.String key)
MapAttributeValue
-specific method.
remove
in interface Attribute
key
- The key of the entry to remove.public Attribute get(java.lang.String key)
MapAttributeValue
-specific method.
get
in interface Attribute
key
- The key.
public byte[] getBlobValue()
Attribute
getBlobValue
in interface Attribute
public boolean getBooleanValue()
Attribute
getBooleanValue
in interface Attribute
public byte getByteValue()
Attribute
getByteValue
in interface Attribute
public short getShortValue()
Attribute
getShortValue
in interface Attribute
public int getIntValue()
Attribute
getIntValue
in interface Attribute
public long getLongValue()
Attribute
getLongValue
in interface Attribute
public double getDoubleValue()
Attribute
getDoubleValue
in interface Attribute
public float getFloatValue()
Attribute
getFloatValue
in interface Attribute
public java.lang.String getStringValue()
Attribute
getStringValue
in interface Attribute
public java.io.Serializable getSerializableValue()
Attribute
getSerializableValue
in interface Attribute
public void setBlobValue(byte[] value)
Attribute
setBlobValue
in interface Attribute
value
- The value to set.public void setBooleanValue(boolean value)
Attribute
setBooleanValue
in interface Attribute
value
- The value.public void setByteValue(byte value)
Attribute
setByteValue
in interface Attribute
value
- The value to set.public void setShortValue(short value)
Attribute
setShortValue
in interface Attribute
value
- The value to set.public void setIntValue(int value)
Attribute
setIntValue
in interface Attribute
value
- The value to set.public void setLongValue(long value)
Attribute
setLongValue
in interface Attribute
value
- The value to set.public void setDoubleValue(double value)
Attribute
setDoubleValue
in interface Attribute
value
- The value to set.public void setFloatValue(float value)
Attribute
setFloatValue
in interface Attribute
value
- The value to set.public void setStringValue(java.lang.String value)
Attribute
setStringValue
in interface Attribute
value
- The value to set.public void setSerializableValue(java.io.Serializable value)
Attribute
setSerializableValue
in interface Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |