|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.meta.impl.NiteObservation
public class NiteObservation
An observation as referred to in the metadata
Constructor Summary | |
---|---|
NiteObservation(NiteMetaData meta,
java.lang.String name,
java.lang.String description)
This constructor is for users adding observations programatically with no observation variables or user codings. |
|
NiteObservation(NiteMetaData meta,
java.lang.String name,
java.lang.String description,
org.w3c.dom.Document doc,
org.w3c.dom.Node node)
Create an observation with no observation variables or user codings. |
|
NiteObservation(NiteMetaData meta,
java.lang.String name,
java.lang.String description,
java.util.List vars,
java.util.List user_codings)
Create an observation with observation variables and user codings. |
|
NiteObservation(NiteMetaData meta,
java.lang.String name,
java.lang.String description,
java.util.List vars,
java.util.List user_codings,
org.w3c.dom.Document doc,
org.w3c.dom.Node node)
Create an observation with observation variables and user codings. |
Method Summary | |
---|---|
void |
addUserCoding(NUserCoding coding)
Add a user coding to the corpus. |
NUserCoding |
findCoding(java.lang.String codingname,
java.lang.String agentname)
find a user coding for this observation that has coding and agent matching. |
java.lang.String |
getDescription()
returns a description of the observation. |
org.w3c.dom.Node |
getNode()
Get the DOM node which represents this observation in the tree. |
java.lang.String |
getShortName()
The identifier for this observation as used in filenames etc. |
java.util.List |
getUserCodings()
returns a list of user codings (see NiteUserCoding). |
java.lang.String |
getVariable(java.lang.String variable)
return the value of the observation variable for the given variable name |
java.util.List |
getVariables()
returns a list of strings: these are the values of the observation variables in the same order as you get the declarations from the getObservationVariables call from the metadata. |
void |
setDocument(org.w3c.dom.Document document)
set the DOM document of which this observation is a part Only used by methods that edit the DOM. |
void |
setNode(org.w3c.dom.Node node)
set the DOM node which represents this observation in the tree. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NiteObservation(NiteMetaData meta, java.lang.String name, java.lang.String description)
public NiteObservation(NiteMetaData meta, java.lang.String name, java.lang.String description, java.util.List vars, java.util.List user_codings)
public NiteObservation(NiteMetaData meta, java.lang.String name, java.lang.String description, org.w3c.dom.Document doc, org.w3c.dom.Node node)
public NiteObservation(NiteMetaData meta, java.lang.String name, java.lang.String description, java.util.List vars, java.util.List user_codings, org.w3c.dom.Document doc, org.w3c.dom.Node node)
Method Detail |
---|
public java.lang.String getShortName()
getShortName
in interface NObservation
public java.lang.String getDescription()
getDescription
in interface NObservation
public java.util.List getVariables()
getVariables
in interface NObservation
public java.lang.String getVariable(java.lang.String variable)
getVariable
in interface NObservation
public java.util.List getUserCodings()
getUserCodings
in interface NObservation
public NUserCoding findCoding(java.lang.String codingname, java.lang.String agentname)
findCoding
in interface NObservation
public void addUserCoding(NUserCoding coding)
addUserCoding
in interface NObservation
public org.w3c.dom.Node getNode()
getNode
in interface NObservation
public void setNode(org.w3c.dom.Node node)
setNode
in interface NObservation
public void setDocument(org.w3c.dom.Document document)
setDocument
in interface NObservation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |