public class MetaInfo
extends java.lang.Object
Constructor and Description |
---|
MetaInfo()
Constructs meta-information container.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetaInfo(java.lang.Enum<?> type,
java.lang.Enum<?> value)
Adds meta-information as a pair of the specified information type and information value.
|
void |
addMetaInfo(java.lang.Enum<?> type,
java.lang.String value)
Adds meta-information as a pair of the specified information type and information value.
|
void |
addMetaInfo(java.util.Map<java.lang.String,java.lang.String> map)
Adds meta-information as mapping.
|
void |
addMetaInfo(java.lang.String type,
java.lang.String value)
Adds meta-information as a pair of the specified information type and information value.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetaInfo()
Returns all the meta-information.
|
java.lang.String |
getMetaInfo(java.lang.Enum<?> key)
Returns meta-information of the specified type.
|
java.lang.String |
getMetaInfo(java.lang.String key)
Returns meta-information of the specified type.
|
boolean |
hasMetaInfo(java.lang.Enum<?> type)
Contains rather object contains meta-information for the specified type.
|
boolean |
hasMetaInfo(java.lang.String type)
Contains rather object contains meta-information for the specified type.
|
void |
removeMetaInfo(java.lang.Enum<?> type)
Removes information of the specified type.
|
void |
removeMetaInfo(java.lang.String type)
Removes information of the specified type.
|
public boolean hasMetaInfo(java.lang.Enum<?> type)
java.lang.NullPointerException
- when argument is null
.public boolean hasMetaInfo(java.lang.String type)
java.lang.NullPointerException
- when argument is null
.public void addMetaInfo(java.lang.Enum<?> type, java.lang.Enum<?> value)
type
- information typevalue
- information valuejava.lang.NullPointerException
- when any of the arguments is null
.public void addMetaInfo(java.lang.Enum<?> type, java.lang.String value)
type
- information typevalue
- information valuejava.lang.NullPointerException
- when any of the arguments is null
.public void addMetaInfo(java.lang.String type, java.lang.String value)
type
- information typevalue
- information valuejava.lang.NullPointerException
- when any of the arguments is null
.public void addMetaInfo(java.util.Map<java.lang.String,java.lang.String> map)
map
- meta-information mappingjava.lang.NullPointerException
- when argument is null
.public void removeMetaInfo(java.lang.String type)
type
- information typejava.lang.NullPointerException
- when argument is null
.public void removeMetaInfo(java.lang.Enum<?> type)
type
- information typejava.lang.NullPointerException
- when argument is null
.public java.lang.String getMetaInfo(java.lang.Enum<?> key)
key
- information typenull
otherwise.java.lang.NullPointerException
- when argument is null
.public java.lang.String getMetaInfo(java.lang.String key)
key
- information typenull
otherwise.java.lang.NullPointerException
- when argument is null
.public java.util.Map<java.lang.String,java.lang.String> getMetaInfo()