net.sf.jsefa
Class ObjectPathElement

java.lang.Object
  extended by net.sf.jsefa.ObjectPathElement
All Implemented Interfaces:
Serializable

public final class ObjectPathElement
extends Object
implements Serializable

An element of a path to an object.

Author:
Norman Lahme-Huetig
See Also:
Serialized Form

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

Constructor Detail

ObjectPathElement

public ObjectPathElement(Class<?> objectType,
                         String fieldName)
Constructs a new ObjectPathElement.

Parameters:
objectType - the object type
fieldName - the name of a field of the object type
Method Detail

getObjectType

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

Returns:
an object type

getFieldName

public String getFieldName()
Returns the name of the field of the object type.

Returns:
a field name

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.