|
|||||||||
| 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 AttributeAttribute.Type.getAttributeImpl(Attribute)public final AttributeValue getAttributeValue()
getAttributeValue in interface AttributeAttribute.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 Attributeindex - The offset.attr - The attribute.public java.util.Iterator iterator()
ListAttributeValue-specific method.
iterator in interface java.lang.Iterableiterator in interface Attributepublic int size()
ListAttributeValue or MapAttributeValue-specific method.
size in interface Attributepublic Attribute get(int index)
ListAttributeValue-specific method.
get in interface Attributeindex - The offset.
public void remove(int index)
ListAttributeValue-specific method.
remove in interface Attributeindex - The entry to remove.
public void set(int index,
Attribute value)
ListAttributeValue-specific method.
set in interface Attributeindex - The index to set.value - The attribute to set.public void clear()
MapAttributeValue-specific method.
clear in interface Attributepublic java.util.Set entrySet()
MapAttributeValue-specific method.
entrySet in interface Attributepublic java.util.Set keySet()
MapAttributeValue-specific method.
keySet in interface Attributepublic 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 Attributekey - The key to the entry.value - The Value of the entry.public void remove(java.lang.String key)
MapAttributeValue-specific method.
remove in interface Attributekey - The key of the entry to remove.public Attribute get(java.lang.String key)
MapAttributeValue-specific method.
get in interface Attributekey - The key.
public byte[] getBlobValue()
Attribute
getBlobValue in interface Attributepublic boolean getBooleanValue()
Attribute
getBooleanValue in interface Attributepublic byte getByteValue()
Attribute
getByteValue in interface Attributepublic short getShortValue()
Attribute
getShortValue in interface Attributepublic int getIntValue()
Attribute
getIntValue in interface Attributepublic long getLongValue()
Attribute
getLongValue in interface Attributepublic double getDoubleValue()
Attribute
getDoubleValue in interface Attributepublic float getFloatValue()
Attribute
getFloatValue in interface Attributepublic java.lang.String getStringValue()
Attribute
getStringValue in interface Attributepublic java.io.Serializable getSerializableValue()
Attribute
getSerializableValue in interface Attributepublic void setBlobValue(byte[] value)
Attribute
setBlobValue in interface Attributevalue - The value to set.public void setBooleanValue(boolean value)
Attribute
setBooleanValue in interface Attributevalue - The value.public void setByteValue(byte value)
Attribute
setByteValue in interface Attributevalue - The value to set.public void setShortValue(short value)
Attribute
setShortValue in interface Attributevalue - The value to set.public void setIntValue(int value)
Attribute
setIntValue in interface Attributevalue - The value to set.public void setLongValue(long value)
Attribute
setLongValue in interface Attributevalue - The value to set.public void setDoubleValue(double value)
Attribute
setDoubleValue in interface Attributevalue - The value to set.public void setFloatValue(float value)
Attribute
setFloatValue in interface Attributevalue - The value to set.public void setStringValue(java.lang.String value)
Attribute
setStringValue in interface Attributevalue - 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 | ||||||||