|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.metadata.SimpleMetaData
public class SimpleMetaData
Contains all the metadata associated with an
Invocation
instance.
Nested Class Summary | |
---|---|
class |
SimpleMetaData.MetaDataValue
Contains the value of a metadata attribute. |
Field Summary | |
---|---|
protected HashMap<Object,HashMap<Object,SimpleMetaData.MetaDataValue>> |
metaData
Contains all the metadata entries. |
Fields inherited from interface org.jboss.aop.metadata.MetaDataResolver |
---|
EMPTY_TAG |
Constructor Summary | |
---|---|
SimpleMetaData()
|
Method Summary | |
---|---|
void |
addMetaData(Object tag,
Object attr,
Object value)
Adds a metadata attribute/value pair to this instance. |
void |
addMetaData(Object tag,
Object attr,
Object value,
PayloadKey type)
Adds a metadata attribute/value pair to this instance. |
void |
clear()
Erases all the metadata contained in this instance. |
SimpleMetaData |
getAllMetaData(Invocation invocation)
Gets all metadata that belongs with the context of invocation |
Object |
getMetaData(Object tag,
Object attr)
Returns the value of a metadata attribute. |
boolean |
hasTag(String name)
Indicates whether this instance contains metadata tagged with name . |
void |
mergeIn(SimpleMetaData data)
Merges incoming data. |
void |
readExternal(ObjectInput in)
|
void |
removeGroupData(Object group)
Removes all attributes identified by the tag group . |
void |
removeMetaData(Object tag,
Object attr)
Removes the metadata attribute from this instance. |
Object |
resolve(Invocation invocation,
Object tag,
Object attr)
|
int |
size()
Returns the number of items contained in this simple metadata instance. |
void |
tag(Object tag)
Tags metadata to structure. |
HashMap<Object,SimpleMetaData.MetaDataValue> |
tag(String name)
Returns the metadata tagged with name . |
HashSet<Object> |
tags()
Returns the tags that identify the metadata elements contained in this instance. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HashMap<Object,HashMap<Object,SimpleMetaData.MetaDataValue>> metaData
Constructor Detail |
---|
public SimpleMetaData()
Method Detail |
---|
public int size()
public HashSet<Object> tags()
public HashMap<Object,SimpleMetaData.MetaDataValue> tag(String name)
name
.
name
- tag of the queried metadata
name
public boolean hasTag(String name)
name
.
name
- tag of the queried metadata
true
only if there is metadata tagged with name
in this
simple metadata instancepublic void tag(Object tag)
tag
- the tag that represents the no-atribute metadata to be addedpublic void addMetaData(Object tag, Object attr, Object value)
tag
- identifies the metadata attribute to be addedattr
- the name of an attributevalue
- the value of attr
attributepublic void addMetaData(Object tag, Object attr, Object value, PayloadKey type)
tag
- identifies the metadata attribute to be addedattr
- the name of an attributevalue
- the value of attr
attributetype
- the payload typepublic Object getMetaData(Object tag, Object attr)
tag
- identifies the metadata attribute to be retrievedattr
- the name of an attribute
attr
attributepublic void removeMetaData(Object tag, Object attr)
tag
- identifies the metadata attribute to be removedattr
- name of the attribute to be removedpublic void removeGroupData(Object group)
group
.
group
- identifies the attributes to be removedpublic void clear()
public void mergeIn(SimpleMetaData data)
data
- incoming that that should be merged to this instance.public Object resolve(Invocation invocation, Object tag, Object attr)
resolve
in interface MetaDataResolver
public SimpleMetaData getAllMetaData(Invocation invocation)
MetaDataResolver
invocation
getAllMetaData
in interface MetaDataResolver
invocation
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public String toString()
toString
in class Object
|
JBoss AOP Parent POM 2.2.2.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |