|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.metainfo.AnnotationMap
public class AnnotationMap
A map of annotations used with ComponentDefinition
and
ComponentInfo
.
Note: it is not thread safe.
Constructor Summary | |
---|---|
AnnotationMap()
|
Method Summary | |
---|---|
void |
addAll(AnnotationMap src)
Adds all annotations of the specified map to this map. |
static void |
addAllAns(java.util.Map ans,
java.util.Map srcans)
Adds the value of _annots, Map(String annotName, AnnotImpl). |
void |
addAnnotation(java.lang.String annotName,
java.util.Map annotAttrs)
Adds an annotation. |
void |
addAnnotation(java.lang.String propName,
java.lang.String annotName,
java.util.Map annotAttrs)
Adds an annotation to a proeprty. |
java.lang.Object |
clone()
Clones this annotation map. |
java.util.List |
getAnnotatedProperties()
Returns a read-only list of the name (String) of properties that are associated at least one annotation (never null). |
java.util.List |
getAnnotatedPropertiesBy(java.lang.String annotName)
Returns a read-only list of the names (String) of the properties that are associated with the specified annotation (never null). |
Annotation |
getAnnotation(java.lang.String annotName)
Returns the annotation associated with the component definition, or null if not available. |
Annotation |
getAnnotation(java.lang.String propName,
java.lang.String annotName)
Returns the annotation associated with the definition of the specified property, or null if not available. |
java.util.Collection |
getAnnotations()
Returns a read-only collection of all annotations associated with the component definition (never null). |
java.util.Collection |
getAnnotations(java.lang.String propName)
Returns a read-only collection of all annotations associated with the definition of the specified property (never null). |
boolean |
isEmpty()
Returns whether no annotation at all. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationMap()
Method Detail |
---|
public boolean isEmpty()
public Annotation getAnnotation(java.lang.String annotName)
annotName
- the annotation namepublic Annotation getAnnotation(java.lang.String propName, java.lang.String annotName)
annotName
- the annotation namepropName
- the property name, e.g., "value".
java.lang.IllegalArgumentException
- if propName is null or emptypublic java.util.Collection getAnnotations()
public java.util.Collection getAnnotations(java.lang.String propName)
propName
- the property name, e.g., "value".
java.lang.IllegalArgumentException
- if propName is null or emptypublic java.util.List getAnnotatedPropertiesBy(java.lang.String annotName)
public java.util.List getAnnotatedProperties()
public void addAll(AnnotationMap src)
public static void addAllAns(java.util.Map ans, java.util.Map srcans)
public void addAnnotation(java.lang.String annotName, java.util.Map annotAttrs)
public void addAnnotation(java.lang.String propName, java.lang.String annotName, java.util.Map annotAttrs)
propName
- the property name.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |