it.avutils.jmapper.xml
Class Attribute

java.lang.Object
  extended by it.avutils.jmapper.xml.Attribute

public class Attribute
extends Object

This Class is a java bean that represents the JMap annotation.

Author:
Alessandro Vurro

Constructor Summary
Attribute()
          Empty constructor
Attribute(String name)
          Giving only the field name, JMapper assumes that the name of the target field is equal.
Attribute(String name, String value)
          This constructor allows you to define the configured field name and target field name.
Attribute(String name, String[] attributes)
          This constructor allows you to define the configured field name and the attributes.
Attribute(String name, String[] attributes, Class<?>[] classes)
          This constructor allows you to define the configured field name, the attributes and the classes.
Attribute(String name, String value, String[] attributes, Class<?>[] classes)
          This constructor allows you to define the configured field name, the target field name, the attributes and the classes.
 
Method Summary
 boolean equals(Object obj)
           
 String[] getAttributes()
           
 Class<?>[] getClasses()
           
 String getName()
           
 String getValue()
           
 int hashCode()
           
 void setAttributes(String[] attributes)
           
 void setClasses(Class<?>[] classes)
           
 void setName(String name)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(String name)
Giving only the field name, JMapper assumes that the name of the target field is equal.

Parameters:
name -

Attribute

public Attribute(String name,
                 String value)
This constructor allows you to define the configured field name and target field name.

Parameters:
name - configured field name
value - target field name

Attribute

public Attribute(String name,
                 String[] attributes,
                 Class<?>[] classes)
This constructor allows you to define the configured field name, the attributes and the classes.

Parameters:
name - configured field name
attributes - target attributes
classes - target classes

Attribute

public Attribute(String name,
                 String value,
                 String[] attributes,
                 Class<?>[] classes)
This constructor allows you to define the configured field name, the target field name, the attributes and the classes.

Parameters:
name - configured field name
value - target field name
attributes - target attributes
classes - target classes

Attribute

public Attribute(String name,
                 String[] attributes)
This constructor allows you to define the configured field name and the attributes.

Parameters:
name - configured field name
attributes - target attributes

Attribute

public Attribute()
Empty constructor

Method Detail

getName

public String getName()

setName

public void setName(String name)

getValue

public String getValue()

setValue

public void setValue(String value)

getAttributes

public String[] getAttributes()

setAttributes

public void setAttributes(String[] attributes)

getClasses

public Class<?>[] getClasses()

setClasses

public void setClasses(Class<?>[] classes)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.