net.sourceforge.nite.meta.impl
Class NiteCoding

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NiteCoding
All Implemented Interfaces:
NCoding

public class NiteCoding
extends java.lang.Object
implements NCoding

A coding as referred to in the metadata

Author:
jonathan

Field Summary
 
Fields inherited from interface net.sourceforge.nite.meta.NCoding
AGENT_CODING, INTERACTION_CODING
 
Constructor Summary
NiteCoding(NMetaData meta, java.lang.String name, int type, NLayer top, NLayer bottom, java.lang.String path)
           
 
Method Summary
 NLayer getBottomLayer()
          returns the bottom layer in the coding
 java.util.List getLayers()
          Returns a List of "NLayer"s belonging to this coding, in arbitrary order
 java.lang.String getName()
          returns the name of the coding - used in file names
 java.lang.String getPath()
          returns the directory path where this coding is stored - relative to the working directory in which java is running (or absolute if metadata path is absolute)
 java.lang.String getRelativePath()
          returns the directory path where this coding is stored, as it is in the metadata file - relative to the metadata file.
 NLayer getTopLayer()
          returns the top layer in the coding
 int getType()
          The type of the coding - returns either AGENT_CODING or INTERACTION_CODING
 void setBottomLayer(NiteLayer layer)
          set the bottom layer in the coding - should only be used by the corpus-building routines and not by users.
 void setPath(java.lang.String path)
          sets the directory path of the coding - if relative, then it'll be relative to the metadata
 void setTopLayer(NiteLayer layer)
          set the top layer in the coding - should only be used by the corpus-building routines and not by users.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteCoding

public NiteCoding(NMetaData meta,
                  java.lang.String name,
                  int type,
                  NLayer top,
                  NLayer bottom,
                  java.lang.String path)
Method Detail

getName

public java.lang.String getName()
returns the name of the coding - used in file names

Specified by:
getName in interface NCoding

getType

public int getType()
The type of the coding - returns either AGENT_CODING or INTERACTION_CODING

Specified by:
getType in interface NCoding

getTopLayer

public NLayer getTopLayer()
returns the top layer in the coding

Specified by:
getTopLayer in interface NCoding

setTopLayer

public void setTopLayer(NiteLayer layer)
set the top layer in the coding - should only be used by the corpus-building routines and not by users.


getBottomLayer

public NLayer getBottomLayer()
returns the bottom layer in the coding

Specified by:
getBottomLayer in interface NCoding

setBottomLayer

public void setBottomLayer(NiteLayer layer)
set the bottom layer in the coding - should only be used by the corpus-building routines and not by users.


getLayers

public java.util.List getLayers()
Returns a List of "NLayer"s belonging to this coding, in arbitrary order

Specified by:
getLayers in interface NCoding

getRelativePath

public java.lang.String getRelativePath()
returns the directory path where this coding is stored, as it is in the metadata file - relative to the metadata file.


getPath

public java.lang.String getPath()
returns the directory path where this coding is stored - relative to the working directory in which java is running (or absolute if metadata path is absolute)

Specified by:
getPath in interface NCoding

setPath

public void setPath(java.lang.String path)
sets the directory path of the coding - if relative, then it'll be relative to the metadata

Specified by:
setPath in interface NCoding