net.sf.jsefa.rbf.mapping
Class RbfFieldDescriptor

java.lang.Object
  extended by net.sf.jsefa.rbf.mapping.RbfFieldDescriptor
All Implemented Interfaces:
NodeDescriptor<RbfNodeType>, RbfNodeDescriptor

public final class RbfFieldDescriptor
extends Object
implements RbfNodeDescriptor

Descriptor for an rbf field.

Instances of this class are immutable and thread-safe.

Author:
Norman Lahme-Huetig

Constructor Summary
RbfFieldDescriptor(int index)
          Constructs a new RbfFieldDescriptor.
 
Method Summary
 boolean equals(Object obj)
          
 int getIndex()
           
 RbfNodeType getType()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RbfFieldDescriptor

public RbfFieldDescriptor(int index)
Constructs a new RbfFieldDescriptor.

Parameters:
index - the relative index of the field
Method Detail

getType

public RbfNodeType getType()

Specified by:
getType in interface NodeDescriptor<RbfNodeType>
Returns:
the node type

getIndex

public int getIndex()
Returns:
the relative index of the field

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All rights reserved.