jfun.yan
Class ComponentInfo

java.lang.Object
  extended by jfun.yan.ComponentInfo

public class ComponentInfo
extends java.lang.Object

This class contains meta information about any component.

Zephyr Business Solution

Author:
Michelle Lei

Constructor Summary
ComponentInfo(int num_params, java.util.Map params, java.util.Map props, java.lang.Class rtype)
          Creates a ComponentInfo object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getComponentType()
          Get the property type.
 int getParameterCount()
          Get the total number of parameters.
 java.util.Map getParameters()
          Get the parameters.
 java.util.Map getProperties()
          Get the properties.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentInfo

public ComponentInfo(int num_params,
                     java.util.Map params,
                     java.util.Map props,
                     java.lang.Class rtype)
Creates a ComponentInfo object.

Parameters:
num_params - the number of parameters.
params - the map of the parameters.
props - the map of the propertyes.
rtype - the component type.
Method Detail

getParameterCount

public int getParameterCount()
Get the total number of parameters. This number is determined by the maximal ordinal position of the expected parameters. It may be different than getParameters().size() because certain parameter may not be expected. For example, a component may only expect parameters of ordinal position (0, 2, 3) with parameter 1 ignored.

Returns:
the total number of parameters.

getParameters

public java.util.Map getParameters()
Get the parameters.

Returns:
a Map with the ordinal position as key and the parameter type as value.

getProperties

public java.util.Map getProperties()
Get the properties.

Returns:
a Map with the property type as value.

getComponentType

public java.lang.Class getComponentType()
Get the property type.

Returns:
the property type.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object