fipaos.ont.fipa.fipaman
Class PropertyTemplate

java.lang.Object
  |
  +--fipaos.ont.fipa.fipaman.PropertyTemplate

public class PropertyTemplate
extends java.lang.Object

The property template is to be used for specifying attribute/value pairs


Constructor Summary
PropertyTemplate()
          This is an empty constructor.
PropertyTemplate(java.lang.String property_template)
          This constructor creates a PropertyTemplate object with the specified string
PropertyTemplate(java.lang.String name, java.lang.String term)
          This constructor creates a template with the specified name and term.
 
Method Summary
 java.lang.String getName()
          Get the name of the object
 java.lang.String getTerm()
          Get the object
static void main(java.lang.String[] args)
          This is for testing purposes.
 void setName(java.lang.String name)
          set the name of the object
 void setTerm(java.lang.String term)
          Set the object
 java.lang.String toString()
          This method returns the String representation of the template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyTemplate

public PropertyTemplate(java.lang.String property_template)
                 throws ParserException
This constructor creates a PropertyTemplate object with the specified string
Parameters:
property_template - string representation of the property_template
Throws:
ParserException - if the string is invalid

PropertyTemplate

public PropertyTemplate(java.lang.String name,
                        java.lang.String term)
This constructor creates a template with the specified name and term.
Parameters:
name - name of the property
term - the value of the property

PropertyTemplate

public PropertyTemplate()
This is an empty constructor.
Method Detail

setName

public void setName(java.lang.String name)
set the name of the object
Parameters:
name - the name of the object

setTerm

public void setTerm(java.lang.String term)
Set the object
Parameters:
term - the object

getName

public java.lang.String getName()
Get the name of the object
Returns:
The name of the object

getTerm

public java.lang.String getTerm()
Get the object
Returns:
the object

toString

public java.lang.String toString()
This method returns the String representation of the template.
Overrides:
toString in class java.lang.Object
Returns:
string representation of the template

main

public static void main(java.lang.String[] args)
This is for testing purposes.
Parameters:
args - arguments