jp.develop.common.util.amf
Class TraitsInfo

java.lang.Object
  extended by jp.develop.common.util.amf.TraitsInfo

public class TraitsInfo
extends Object

Traits information. This class is designed as immutable.

Author:
Waki Takeya

Constructor Summary
TraitsInfo(String className, boolean dynamic, boolean externalizable, List<String> properties)
          Constructs a instance.
 
Method Summary
 boolean equals(Object obj)
           
 String getClassName()
          Get class name.
 List<String> getProperties()
          Get the list of property names.
 int hashCode()
           
 boolean isDynamic()
          Get dynamic flag.
 boolean isExternalizable()
          Get externalizable flag.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraitsInfo

public TraitsInfo(String className,
                  boolean dynamic,
                  boolean externalizable,
                  List<String> properties)
Constructs a instance.

Parameters:
className - The class name.
dynamic - dynamic or sealed. true for dynamic.
externalizable - true for externalizable.
properties - The list of property names.
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getClassName

public String getClassName()
Get class name.

Returns:
class name.

isDynamic

public boolean isDynamic()
Get dynamic flag. True for dynamic.

Returns:
true for dynamic.

isExternalizable

public boolean isExternalizable()
Get externalizable flag. True for externalizable.

Returns:
true for externalizable.

getProperties

public List<String> getProperties()
Get the list of property names.

Returns:
The list of property names.