fipaos.ont.fipa.fipaman
Class PropertyTemplate


public class PropertyTemplate

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


Constructor Summary
PropertyTemplate(String property_template)
          This constructor creates a PropertyTemplate object with the specified string
PropertyTemplate(String name, String term)
          This constructor creates a template with the specified name and term.
PropertyTemplate()
          This is an empty constructor.

Method Summary
 StringgetName()
          Get the name of the object
 StringgetTerm()
          Get the object
 static voidmain(String[] args)
          This is for testing purposes.
 voidsetName(String name)
          set the name of the object
 voidsetTerm(String term)
          Set the object
 StringtoString()
          This method returns the String representation of the template.

Constructor Detail

PropertyTemplate

public PropertyTemplate(String property_template)
throws fipaos.parser.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(String name, 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

getName

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

getTerm

public String getTerm()
Get the object
Returns: the object

main

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

setName

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

setTerm

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

toString

public String toString()
This method returns the String representation of the template.
Returns: string representation of the template

Association Links

to Class java.lang.String

The name of the object

to Class java.lang.String

the object