net.sourceforge.nite.nom.nomwrite.impl
Class NOMFile

java.lang.Object
  extended by net.sourceforge.nite.nom.nomwrite.impl.NOMFile

public class NOMFile
extends java.lang.Object

NOMFile is an attempt to take the file and directory naming approach out of NOMCorpus and into a coherent package.

Author:
Jonathan Kilgour

Constructor Summary
NOMFile(NMetaData m, NFile c, NObservation o, NAgent a)
           
NOMFile(NMetaData m, java.lang.String fn)
          Make a new NOM file from a file or colour name
 
Method Summary
 NAgent getAgent()
           
 java.util.List getChildCodingFilenames(NCoding child)
          return the list of file names that could be children of this element.
 java.lang.String getCodingFilename(NCoding other)
          return the list of file names that could be children of this element.
 java.lang.String getColour()
          return the 'colour' of the file - which is normally just the filename without the .xml extension
 java.lang.String getFilename()
           
 java.lang.String getFullFilename()
           
 java.lang.String getIndexColour()
          this is like getColour but we ignore any agent.
 NFile getNFile()
           
 NObservation getObservation()
           
 java.lang.String getParentCodingFilenames(NCoding parent)
          return the list of file names that could be children of this element.
 int getType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOMFile

public NOMFile(NMetaData m,
               NFile c,
               NObservation o,
               NAgent a)

NOMFile

public NOMFile(NMetaData m,
               java.lang.String fn)
Make a new NOM file from a file or colour name

Method Detail

getNFile

public NFile getNFile()

getObservation

public NObservation getObservation()

getAgent

public NAgent getAgent()

getType

public int getType()

getIndexColour

public java.lang.String getIndexColour()
this is like getColour but we ignore any agent. That's just because we use this kind of colour to index for files (i.e. we don't allow the different agents of a coding to be in separate resources)


getColour

public java.lang.String getColour()
return the 'colour' of the file - which is normally just the filename without the .xml extension


getFilename

public java.lang.String getFilename()

getFullFilename

public java.lang.String getFullFilename()

getChildCodingFilenames

public java.util.List getChildCodingFilenames(NCoding child)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.


getParentCodingFilenames

public java.lang.String getParentCodingFilenames(NCoding parent)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.


getCodingFilename

public java.lang.String getCodingFilename(NCoding other)
return the list of file names that could be children of this element. Note that the only time this list is not a singleton is when we are in an interaction coding and the child layer is an agent coding.