Class AttributesInfo

java.lang.Object
org.zkoss.zk.ui.metainfo.AttributesInfo
All Implemented Interfaces:
Serializable, NodeInfo, Condition

public class AttributesInfo extends Object
Represents a map of custom attributes of a component definition (ComponentDefinition). It is equivalent to the custom-attributes element.

Note: it is serializable.

Author:
tomyeh
See Also:
  • Constructor Details

    • AttributesInfo

      public AttributesInfo(NodeInfo parent, Map<String,String> attrs, String scope, String composite, ConditionImpl cond)
      Constructor.
      Parameters:
      attrs - the custom attributes (String name, String value). Once called, the caller shall not access attrs again -- it belongs to this object.
      scope - specifies the scope.
      composite - indicates the composite type. It can be one of "none", "list" or "map". If null or empty, "none" is assumed.
      Throws:
      IllegalArgumentException - if the composite type is illegal.
      Since:
      3.0.6
    • AttributesInfo

      public AttributesInfo(NodeInfo parent, Map<String,String> attrs, String scope, ConditionImpl cond)
      The same as AttributesInfo(parent, attrs, scope, "none", cond).
      Parameters:
      attrs - the custom attributes (String name, String value). Once called, the caller shall not access attrs again -- it belongs to this object.
      scope - specifies the scope.
  • Method Details