|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
Interface for polymorphic attributes.
Nested Class Summary | |
---|---|
static class |
Attribute.Type
|
Method Summary | |
---|---|
void |
add(Attribute attr)
Add an attribute to a list attribute. |
void |
add(int index,
Attribute attr)
Add an attribute to a list attribute at a given position. |
void |
clear()
Clear a map. |
java.util.Set |
entrySet()
Get the entry set for a map. |
Attribute |
get(int index)
Get an Attribute from a List. |
Attribute |
get(java.lang.String key)
Get the Value for a key in a map. |
DbAccessControlList |
getAcl()
Get the (possibly null ACL) on this Attribute. |
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 |
getRawValue()
Method to return the underlying raw data for possible conversion to the descired type. |
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. |
Attribute.Type |
getType()
|
java.util.Iterator |
iterator()
Get an iterator over a list's entries. |
java.util.Set |
keySet()
Get the key set for a map. |
void |
put(java.lang.String key,
Attribute value)
Add an entry to a map. |
void |
remove(int index)
Remove an entry from a list. |
void |
remove(java.lang.String key)
Remove an entry by key from a map. |
void |
set(int index,
Attribute value)
Set an attribute in a list. |
void |
setAcl(DbAccessControlList acl)
Set the ACL on this Attribute. |
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()
Get the size of a List of a Map. |
java.util.Collection |
values()
Get the collection of values of a map. |
Method Detail |
---|
void setAcl(DbAccessControlList acl)
acl
- The ACL.DbAccessControlList getAcl()
Attribute.Type getType()
java.io.Serializable getRawValue()
AttributeValue getAttributeValue()
Attribute.Type.getAttributeValue(Attribute)
AttributeImpl getAttributeImpl()
Attribute.Type.getAttributeImpl(Attribute)
void setBooleanValue(boolean value)
value
- The value.boolean getBooleanValue()
void setByteValue(byte value)
value
- The value to set.byte getByteValue()
void setShortValue(short value)
value
- The value to set.short getShortValue()
void setIntValue(int value)
value
- The value to set.int getIntValue()
void setLongValue(long value)
value
- The value to set.long getLongValue()
void setFloatValue(float value)
value
- The value to set.float getFloatValue()
void setDoubleValue(double value)
value
- The value to set.double getDoubleValue()
void setStringValue(java.lang.String value)
value
- The value to set.java.lang.String getStringValue()
void setBlobValue(byte[] value)
value
- The value to set.byte[] getBlobValue()
void setSerializableValue(java.io.Serializable value)
value
- java.io.Serializable getSerializableValue()
void clear()
void put(java.lang.String key, Attribute value)
key
- The key to the entry.value
- The Value of the entry.Attribute get(java.lang.String key)
key
- The key.
void remove(java.lang.String key)
key
- The key of the entry to remove.java.util.Set entrySet()
java.util.Set keySet()
java.util.Collection values()
void add(Attribute attr)
attr
- void add(int index, Attribute attr)
index
- The offset.attr
- The attribute.int size()
java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
Attribute get(int index)
index
- The offset.
void remove(int index)
index
- The entry to remove.void set(int index, Attribute value)
index
- The index to set.value
- The attribute to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |