net.sf.jsefa.rbf.mapping
Class RecordDescriptor

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

public final class RecordDescriptor
extends Object
implements RbfNodeDescriptor

Descriptor for an rbf record.

Instances of this class are immutable and thread-safe.

Author:
Norman Lahme-Huetig

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

Constructor Detail

RecordDescriptor

public RecordDescriptor(String prefix)
Constructs a new RecordDescriptor.

Parameters:
prefix - the record prefix
Method Detail

getType

public RbfNodeType getType()

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

getPrefix

public String getPrefix()
Returns:
the prefix; may be null if the node is virtual, i. e. if the node groups other nodes without having an own representation, e. g. a sub record list node.

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.