net.sf.jsefa.common.mapping
Class FieldDescriptor

java.lang.Object
  extended by net.sf.jsefa.common.mapping.FieldDescriptor

public final class FieldDescriptor
extends Object

Encapsulates the combination of a field name and a potential type of the field value.

Instances of this class are immutable and thread-safe.

Author:
Norman Lahme-Huetig

Constructor Summary
FieldDescriptor(String name, Class<?> objectType)
          Constructs a new FieldDescriptor.
 
Method Summary
 boolean equals(Object obj)
          
 String getName()
          Returns the name of the field.
 Class<?> getObjectType()
          Returns the object type of the field.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldDescriptor

public FieldDescriptor(String name,
                       Class<?> objectType)
Constructs a new FieldDescriptor.

Parameters:
name - the name of the field
objectType - the type of the field
Method Detail

getName

public String getName()
Returns the name of the field.

Returns:
the name of the field

getObjectType

public Class<?> getObjectType()
Returns the object type of the field.

Returns:
the object type of the field

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.