gate.creole.gazetteer
Class MappingNode

java.lang.Object
  |
  +--gate.creole.gazetteer.MappingNode

public class MappingNode
extends Object

Represents a single node from the mapping definition


Field Summary
private  String classID
          the class associated with the list
private  String list
          the gazetteer list filename
private  String ontologyID
          the ontology to which the class belongs
 
Constructor Summary
MappingNode(String node)
          Creates a new mapping node given a string representation.
MappingNode(String aList, String anOntologyID, String aClassID)
          Creates a new mapping node given its members
 
Method Summary
 String getClassID()
          Gets the class id
 String getList()
          Gets the list of the node
 String getOntologyID()
          Gets the ontology id
 void setClassID(String theClassID)
          Sets the class ID
 void setList(String aList)
          Sets gaz list for the node
 void setOntologyID(String id)
          Sets the ontology id
 String toString()
          Gets the string representation of the node
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

list

private String list
the gazetteer list filename

classID

private String classID
the class associated with the list

ontologyID

private String ontologyID
the ontology to which the class belongs
Constructor Detail

MappingNode

public MappingNode(String node)
            throws InvalidFormatException
Creates a new mapping node given a string representation.
Parameters:
node - a node from the mapping definition
Throws:
InvalidFormatException - if the node is misformatted

MappingNode

public MappingNode(String aList,
                   String anOntologyID,
                   String aClassID)
Creates a new mapping node given its members
Parameters:
aList - the gaz list file name
anOntologyID - the ontology
aClassID - the class
Method Detail

setList

public void setList(String aList)
Sets gaz list for the node
Parameters:
aList - a gazetteer list file name

getList

public String getList()
Gets the list of the node
Returns:
the gazetteer list file name

setClassID

public void setClassID(String theClassID)
Sets the class ID
Parameters:
theClassID - the class id

getClassID

public String getClassID()
Gets the class id

setOntologyID

public void setOntologyID(String id)
Sets the ontology id
Parameters:
id - the ontology id

getOntologyID

public String getOntologyID()
Gets the ontology id
Returns:
the ontology id

toString

public String toString()
Gets the string representation of the node
Overrides:
toString in class Object
Returns:
the string representation of the node