| java.lang.Object | |
| ↳ | xades4j.utils.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).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Initializes the property bag with the given initial diferent property types.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a property to the bag.
| |||||||||||
Gets the properties in the bag.
| |||||||||||
Indicates whether the bag has any properties.
| |||||||||||
Puts a property in the bag.
| |||||||||||
Removes a property from the bag.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Initializes the property bag with the given initial diferent property types.
| initialNPropTypes | the initial number of different property types. |
|---|
Adds a property to the bag. The add operation allows multiple properties of the same type but not repeated instances.
| prop | the property |
|---|
| NullPointerException | if prop is null |
|---|---|
| PropertyTargetException | if the given property (instance) is already present in the bag |
Gets the properties in the bag.
Indicates whether the bag has any properties.
true if the bag has no properties
Puts a property in the bag. The put operation doesn't allow repeated property types. If a property of this type was previously added an exception is thrown.
| prop | the property |
|---|
| NullPointerException | if prop is null |
|---|---|
| PropertyTargetException | if a property of this type was previously added |
Removes a property from the bag.
| prop | the property to be removed |
|---|
| NullPointerException | if the property is null |
|---|---|
| IllegalStateException | if the property is not present |