org.zkoss.zk.ui.metainfo
Interface Annotation

All Superinterfaces:
java.io.Serializable

public interface Annotation
extends java.io.Serializable

The common interface extended by all annotation types. An annotation consists of a name (getName()) and a map of attributes getAttribute(java.lang.String).

To get the annotation associated with a component, use ComponentCtrl.getAnnotation(String). To get the annotation associated with a component's property, use ComponentCtrl.getAnnotation(String, String)

Author:
tomyeh
See Also:
ComponentCtrl.getAnnotation(String), ComponentCtrl.getAnnotation(String, String), ComponentCtrl.getAnnotations(), ComponentCtrl.getAnnotations(String)

Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Returns the attribute of the given name, or null if not found.
 java.util.Map getAttributes()
          Returns the map of attributes (String name, String value) (never null).
 java.lang.String getName()
          Returns the name of this annotation.
 

Method Detail

getName

java.lang.String getName()
Returns the name of this annotation.

For each declaration, there is at most one annotation with the same name.


getAttributes

java.util.Map getAttributes()
Returns the map of attributes (String name, String value) (never null). The returned map is read-only.


getAttribute

java.lang.String getAttribute(java.lang.String name)
Returns the attribute of the given name, or null if not found.



Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo