public abstract class Metadata extends Object
Represents base abstraction for metadata.
Modifier | Constructor and Description |
---|---|
protected |
Metadata(int metadataType)
Initializes a new instance of the
Metadata class. |
Modifier and Type | Method and Description |
---|---|
static Metadata |
getByType(Metadata[] array,
int type)
Gets metadata by type from array.
|
abstract String[] |
getKeys()
Gets array of available metadata keys.
|
int |
getMetadataType()
Gets metadata type.
|
MetadataProperty |
readByStringKey(String key) |
protected Metadata(int metadataType)
Initializes a new instance of the Metadata
class.
metadataType
- Metadata type.public final int getMetadataType()
Gets metadata type.
public abstract String[] getKeys()
Gets array of available metadata keys. Keys related to null values are skipped.
public static Metadata getByType(Metadata[] array, int type)
Gets metadata by type from array.
array
- Array of Metadata
.type
- MetadataType
.Metadata
if entity is presented in array
; otherwise null.ArgumentNullException
- Metadata array could not be null.public MetadataProperty readByStringKey(String key)
Copyright © 2018. All rights reserved.