net.sourceforge.nite.meta.impl
Class NitePointer

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NitePointer
All Implemented Interfaces:
NPointer

public class NitePointer
extends java.lang.Object
implements NPointer

An pointer as referred to in the metadata

Author:
jonathan

Constructor Summary
NitePointer(java.lang.String role, java.lang.String target, java.lang.String number)
           
 
Method Summary
 java.lang.String getNumber()
          returns the 'number' of this pointer - normally either '1' or '+' meaning 'exactly 1' and 'one or more' respectively
 java.lang.String getRole()
          returns the role of this pointer
 java.lang.String getTarget()
          returns the target of the pointer as a String.
 NLayer getTargetLayer()
          returns the target layer of the pointer as a NLayer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NitePointer

public NitePointer(java.lang.String role,
                   java.lang.String target,
                   java.lang.String number)
Method Detail

getRole

public java.lang.String getRole()
returns the role of this pointer

Specified by:
getRole in interface NPointer

getTarget

public java.lang.String getTarget()
returns the target of the pointer as a String. This will either be the name of a layer in a coding or corpus resource, or the name of an ontology or object set.

Specified by:
getTarget in interface NPointer

getNumber

public java.lang.String getNumber()
returns the 'number' of this pointer - normally either '1' or '+' meaning 'exactly 1' and 'one or more' respectively

Specified by:
getNumber in interface NPointer

getTargetLayer

public NLayer getTargetLayer()
returns the target layer of the pointer as a NLayer.

Specified by:
getTargetLayer in interface NPointer