net.sourceforge.nite.meta.impl
Class NiteUserCoding

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NiteUserCoding
All Implemented Interfaces:
NUserCoding

public class NiteUserCoding
extends java.lang.Object
implements NUserCoding

Information about a coding performed by a user.

Author:
jonathan

Field Summary
 
Fields inherited from interface net.sourceforge.nite.meta.NUserCoding
CODING_CHECKED, CODING_DRAFT, CODING_FINISHED, CODING_UNSTARTED
 
Constructor Summary
NiteUserCoding(java.lang.String coding_name, java.lang.String agent, java.lang.String coder, java.lang.String checker, int status, java.lang.String date)
           
NiteUserCoding(java.lang.String coding_name, java.lang.String agent, java.lang.String coder, java.lang.String checker, int status, java.lang.String date, org.w3c.dom.Node node)
          This version is called when building the UserCodings from an already-loaded metadata file (as opposed to adding a new user coding).
 
Method Summary
 java.lang.String getAgentName()
          get the name of the agent - this refers to a NAgent
 java.lang.String getChecker()
          The name of the checker
 java.lang.String getCoder()
          The name of the coder
 java.lang.String getCodingName()
          get the name of the coding - this refers to a NLayer
 java.lang.String getDate()
          The date
 org.w3c.dom.Node getNode()
          Get the DOM node which represents this coding in the tree.
 int getStatus()
          one of the four ints defined here: CODING_UNSTARTED, CODING_DRAFT, CODING_FINISHED or CODING_CHECKED.
 void setChecker(java.lang.String checker)
          set the name of the checker
 void setCoder(java.lang.String coder)
          set the name of the coder
 void setDate(java.lang.String date)
          set the date
 void setNode(org.w3c.dom.Node node)
          set the DOM node which represents this coding in the tree.
 void setStatus(int status)
          set the status
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteUserCoding

public NiteUserCoding(java.lang.String coding_name,
                      java.lang.String agent,
                      java.lang.String coder,
                      java.lang.String checker,
                      int status,
                      java.lang.String date)

NiteUserCoding

public NiteUserCoding(java.lang.String coding_name,
                      java.lang.String agent,
                      java.lang.String coder,
                      java.lang.String checker,
                      int status,
                      java.lang.String date,
                      org.w3c.dom.Node node)
This version is called when building the UserCodings from an already-loaded metadata file (as opposed to adding a new user coding). The constructor takes the arguments required to uniquely identify this user coding. Also passed is the Node (in the in-memory XML version of the metadata file) which may be directly altered so that changes are serialized

Method Detail

getAgentName

public java.lang.String getAgentName()
get the name of the agent - this refers to a NAgent

Specified by:
getAgentName in interface NUserCoding

getCodingName

public java.lang.String getCodingName()
get the name of the coding - this refers to a NLayer

Specified by:
getCodingName in interface NUserCoding

getCoder

public java.lang.String getCoder()
The name of the coder

Specified by:
getCoder in interface NUserCoding

getChecker

public java.lang.String getChecker()
The name of the checker

Specified by:
getChecker in interface NUserCoding

getDate

public java.lang.String getDate()
The date

Specified by:
getDate in interface NUserCoding

getStatus

public int getStatus()
one of the four ints defined here: CODING_UNSTARTED, CODING_DRAFT, CODING_FINISHED or CODING_CHECKED.

Specified by:
getStatus in interface NUserCoding

setCoder

public void setCoder(java.lang.String coder)
set the name of the coder

Specified by:
setCoder in interface NUserCoding

setChecker

public void setChecker(java.lang.String checker)
set the name of the checker

Specified by:
setChecker in interface NUserCoding

setDate

public void setDate(java.lang.String date)
set the date

Specified by:
setDate in interface NUserCoding

setStatus

public void setStatus(int status)
set the status

Specified by:
setStatus in interface NUserCoding

getNode

public org.w3c.dom.Node getNode()
Get the DOM node which represents this coding in the tree. Only used by methods that edit the DOM.

Specified by:
getNode in interface NUserCoding

setNode

public void setNode(org.w3c.dom.Node node)
set the DOM node which represents this coding in the tree. Only used by methods that edit the DOM.

Specified by:
setNode in interface NUserCoding