MetadataSignatureCollection
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public class MetadataSignatureCollection implements Iterable<MetadataSignature>
Collection of Metadata signature objects.
| Constructor | Description |
|---|---|
| MetadataSignatureCollection() | Creates Collection of Metadata signature. |
| Method | Description |
|---|---|
| getCount() | Gets number of items in the collection. |
| clear() | Removes all items from the collection. |
| contains(String name) | Returns true if a Metadata with the specified name exists in the collection. |
| indexOf(String name) | Gets the index of a property by name. |
| remove(String name) | Removes a Metadata Signature with the specified name from the collection. |
| removeAt(int index) | Removes a Metadata Signature at the specified index. |
| add(MetadataSignature signature) | Add Metadata Signature object to collection. |
| addRange(MetadataSignature[] signatures) | Add Metadata Signature collection. |
| deepClone() | Clone Metadata Signature Collection class with Metadata Signature Items. |
public MetadataSignatureCollection()
Creates Collection of Metadata signature.
public final int getCount()
Gets number of items in the collection.
Returns: int
public final void clear()
Removes all items from the collection.
public final boolean contains(String name)
Returns true if a Metadata with the specified name exists in the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The case-insensitive name of the property. |
Returns: boolean - True if the Metadata exists in the collection; false otherwise.
public final int indexOf(String name)
Gets the index of a property by name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The case-insensitive name of the MetadataSignature. |
Returns: int - The zero based index. Negative value if not found.
public final boolean remove(String name)
Removes a Metadata Signature with the specified name from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The case-insensitive name of the Metadata Signature. |
Returns: boolean -
public final boolean removeAt(int index)
Removes a Metadata Signature at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero based index. |
Returns: boolean
public final void add(MetadataSignature signature)
Add Metadata Signature object to collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signature | MetadataSignature | Metadata signature to be added to collection. |
Throws an exception if name value is not unique entire existing collection
|
public final void addRange(MetadataSignature[] signatures)
Add Metadata Signature collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| signatures | MetadataSignature[] | Collection of signatures to add. |
Throws an exception if name value is not unique entire existing collection
|
public final Object deepClone()
Clone Metadata Signature Collection class with Metadata Signature Items.
Returns: java.lang.Object - Returns copied instance with cloned Signature Items
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.