gate.creole.gazetteer
Class MappingNode

java.lang.Object
  extended by gate.creole.gazetteer.MappingNode
All Implemented Interfaces:
Serializable

public class MappingNode
extends Object
implements Serializable

Represents a single node from the mapping definition

See Also:
Serialized Form

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, wait, wait, wait
 

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

Returns:
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