org.ujac.util.xml
Class AttributeDefinition

java.lang.Object
  extended by org.ujac.util.xml.AttributeDefinition
All Implemented Interfaces:
Serializable, Comparable

public class AttributeDefinition
extends Object
implements Serializable, Comparable

Name: AttributeDefinition
Description: Definition of bean attributes.

Author:
lauerc
See Also:
Serialized Form

Constructor Summary
AttributeDefinition(String name, Class type)
          Constructs a AttributeDefinition instance with specific attributes.
 
Method Summary
 int compareTo(Object arg)
          Compares this instanct with the given one.
 Method getGetter()
          Getter method for the the property getter.
 String getName()
          Getter method for the the property name.
 Method getSetter()
          Getter method for the the property setter.
 Class getType()
          Getter method for the the property type.
 void setGetter(Method getter)
          Setter method for the the property getter.
 void setSetter(Method setter)
          Setter method for the the property setter.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDefinition

public AttributeDefinition(String name,
                           Class type)
Constructs a AttributeDefinition instance with specific attributes.

Parameters:
name - The attribute name.
type - The attribute type.
Method Detail

getName

public String getName()
Getter method for the the property name.

Returns:
The current value of property name.

getType

public Class getType()
Getter method for the the property type.

Returns:
The current value of property type.

getGetter

public Method getGetter()
Getter method for the the property getter.

Returns:
The current value of property getter.

setGetter

public void setGetter(Method getter)
Setter method for the the property getter.

Parameters:
getter - The value to set for the property getter.

getSetter

public Method getSetter()
Getter method for the the property setter.

Returns:
The current value of property setter.

setSetter

public void setSetter(Method setter)
Setter method for the the property setter.

Parameters:
setter - The value to set for the property setter.

compareTo

public int compareTo(Object arg)
Compares this instanct with the given one.

Specified by:
compareTo in interface Comparable
Parameters:
arg - The object to compare to.
Returns:
0 if the objects equal, -1 if this object is lower, else 1.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.