|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- The key class typeV
- The Value class typepublic interface PropertyCollection<K,V>
PropertyCollection
Field Summary | |
---|---|
static PropertyCollectionTypeHolder |
PROPERTY_COLLECTION_TYPE
object holding the base property collection type object |
Method Summary | |
---|---|
void |
activate()
activate a collection that was created in a not activated state. |
void |
addListener(PropertyListener<? super K,? super V> listener)
add a listener to the collection |
K |
addProperty(K key,
PropertyCollection<?,?> instance,
V value)
add a property value |
boolean |
areKeysAssignedAutomatically()
|
java.util.Set<K> |
asKeySet()
|
java.util.List<Property<V>> |
asPropertyList()
|
java.util.Map<K,Property<V>> |
asPropertyMap()
|
java.util.List<V> |
asValueList()
|
java.util.Map<K,V> |
asValueMap()
|
void |
clear()
clear the whole property list |
java.lang.Object |
clone()
clone the object |
boolean |
containsInstance(java.lang.Object instance)
test to see if the collection contains a specific object instance |
boolean |
containsKey(java.lang.Object key)
test to see if the collection contains a specific Property key |
boolean |
containsValue(java.lang.Object value)
test to see if the collection contains a specific object value |
void |
delete()
delete this property collection |
PropertyCollection<?,?> |
getFixedInstance()
Some collections use the same property instance for all their properties. |
Property<V> |
getProperty(java.lang.Object key)
fetch a property |
V |
getPropertyValue(java.lang.Object key)
fetch a property value |
K |
instanceKey(java.lang.Object instance)
get the object instance key that is contained in this map. |
boolean |
isActivated()
check to see if the collection is activated |
boolean |
isEmpty()
|
boolean |
isListenerRegistered(PropertyListener<? super K,? super V> listener)
test to see if a listener is registered on the collection |
java.util.Iterator<Property<V>> |
iterator()
|
java.util.Iterator<V> |
iteratorByValue()
|
java.lang.Object |
keyOnParent()
|
PropertyCollection<?,?> |
parent()
|
void |
removeListener(PropertyListener<? super K,? super V> listener)
remove a listener to the collection |
Property<V> |
removeProperty(java.lang.Object key)
remove a property from the collection |
Property<V> |
removePropertyInstance(V instance)
remove a property based on its instance. |
Property<V> |
removePropertyValue(V value)
remove a property based on its value, it can be equal if it's by value, or just a reference. |
void |
setParent(PropertyCollection<?,?> parent,
java.lang.Object keyOnParent)
|
V |
setProperty(K key,
V value)
set a property value |
int |
size()
get collection Size |
PropertyCollection<?,?> |
type()
fetch the property description of this collection |
K |
valueKey(java.lang.Object value)
get the object value key that is contained in this map. |
Field Detail |
---|
static final PropertyCollectionTypeHolder PROPERTY_COLLECTION_TYPE
Method Detail |
---|
void addListener(PropertyListener<? super K,? super V> listener)
listener
- the listener to addvoid removeListener(PropertyListener<? super K,? super V> listener)
listener
- the listener to removeboolean isListenerRegistered(PropertyListener<? super K,? super V> listener)
listener
- the listener to check
PropertyCollection<?,?> type()
Property<V> removeProperty(java.lang.Object key)
key
- the key of the property
Property<V> removePropertyValue(V value)
value
- the value to remove
Property<V> removePropertyInstance(V instance)
instance
- the object to remove
Property<V> getProperty(java.lang.Object key)
key
- the property key
boolean containsKey(java.lang.Object key)
key
- the property key
boolean containsInstance(java.lang.Object instance)
instance
- the object instance to look for in the collection.
boolean containsValue(java.lang.Object value)
value
- the object value to look for in the collection.
V getPropertyValue(java.lang.Object key)
key
- the property key
V setProperty(K key, V value)
key
- the key of the propertyvalue
- the new value of the property. If the property is a
collection that is not by reference, this method requires that
the passed collection has a parent set to null since it will
reset the parent.
K addProperty(K key, PropertyCollection<?,?> instance, V value)
key
- the key of the property. Some collections assign keys
automatically, for those collections, a null value is
expected. If the key is specified when they are assigned
automatically, an IllegalArgumentException will be throwninstance
- the property instance to add. Most collections assign the
instance automatically, for those collections, the instance
can either be null or be the same as the instance that is
automatically assigned, otherwise an error will be thrownvalue
- the property value. If the value is a property collection,
then the collection is expected to have a null parent if the
instance is owned (not by reference), otherwise an
IllegalArgumentException will be thrown
java.util.Iterator<Property<V>> iterator()
java.util.Iterator<V> iteratorByValue()
int size()
void clear()
java.lang.Object clone()
PropertyCollection<?,?> parent()
java.lang.Object keyOnParent()
void setParent(PropertyCollection<?,?> parent, java.lang.Object keyOnParent)
parent
- The parent to set.keyOnParent
- the key on the parent to reference this objectjava.util.List<Property<V>> asPropertyList()
java.util.List<V> asValueList()
java.util.Set<K> asKeySet()
java.util.Map<K,Property<V>> asPropertyMap()
java.util.Map<K,V> asValueMap()
boolean isEmpty()
K valueKey(java.lang.Object value)
value
- the value to check for
K instanceKey(java.lang.Object instance)
instance
- the object instance
boolean areKeysAssignedAutomatically()
void delete()
void activate()
boolean isActivated()
PropertyCollection<?,?> getFixedInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |