|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxades4j.utils.PropertiesSet<T>
public class PropertiesSet<T>
A generic bag of properties used to store properties that apply to a specific target (data object descriptions, signature properties collector, signed data objects). The properties are organized by type (class).
| Constructor Summary | |
|---|---|
PropertiesSet(int initialNPropTypes)
Initializes the property bag with the given initial diferent property types. |
|
| Method Summary | |
|---|---|
void |
add(T prop)
Adds a property to the bag. |
Collection<T> |
getProperties()
Gets the properties in the bag. |
boolean |
isEmpty()
Indicates whether the bag has any properties. |
void |
put(T prop)
Puts a property in the bag. |
void |
remove(T prop)
Removes a property from the bag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesSet(int initialNPropTypes)
initialNPropTypes - the initial number of different property types.| Method Detail |
|---|
public void put(T prop)
prop - the property
NullPointerException - if prop is null
PropertyTargetException - if a property of this type was previously
addedpublic void add(T prop)
prop - the property
NullPointerException - if prop is null
PropertyTargetException - if the given property (instance)
is already present in the bagpublic void remove(T prop)
prop - the property to be removed
NullPointerException - if the property is null
IllegalStateException - if the property is not presentpublic boolean isEmpty()
true if the bag has no propertiespublic Collection<T> getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||