|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
void |
addAnnotation(java.lang.String propName,
java.lang.String annotName,
java.util.Map<java.lang.String,java.lang.String[]> annotAttrs,
Location loc)
Adds an annotation. |
java.lang.Object |
clone()
Clones this annotation map. |
java.util.List<java.lang.String> |
getAnnotatedProperties()
Returns a read-only list of the name (String) of properties that are associated at least one annotation (never null). |
java.util.List<java.lang.String> |
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 propName,
java.lang.String annotName)
Returns the annotation associated with the specified property, or null if not available. |
java.util.Collection<Annotation> |
getAnnotations(java.lang.String propName)
Returns a read-only collection of all annotations associated with the the specified property. |
java.util.Collection<Annotation> |
getAnnotations(java.lang.String propName,
java.lang.String annotName)
Returns the annotations associated with the specified property. |
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 propName, java.lang.String annotName)
annotName
- the annotation namepropName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.Collection<Annotation> getAnnotations(java.lang.String propName, java.lang.String annotName)
annotName
- the annotation namepropName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.Collection<Annotation> getAnnotations(java.lang.String propName)
propName
- the property name, e.g., "value".
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).public java.util.List<java.lang.String> getAnnotatedPropertiesBy(java.lang.String annotName)
public java.util.List<java.lang.String> getAnnotatedProperties()
public void addAll(AnnotationMap src)
public void addAnnotation(java.lang.String propName, java.lang.String annotName, java.util.Map<java.lang.String,java.lang.String[]> annotAttrs, Location loc)
propName
- the property name.
If null, this method returns the annotation(s) associated with the
component (rather than a particular property).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 |