Class SimpleAttribute

java.lang.Object
   |
   +--SimpleAttribute

public class SimpleAttribute

A SimpleAttribute is composed of a String name (attribute name) and a String type (attribute type).

Field Summary
 String attributeName
          The name, represented as a string , of this attribute.
 String attributeType
          The type, represented as a string , of this attribute.
 

Constructor Summary
SimpleAttribute()
          Creates a SimpleAttribute with attributeName = "" and attributeType = "".
SimpleAttribute(String name, String type)
          Creates a SimpleAttribute with attributeName = name and attributeType = type.
 

Method Summary
 String getName()
          Returns the attributeName of this SimpleAttribute.
 String getType()
          Returns the attributeType of this SimpleAttribute.
 void setName(String name)
          Set the attributeName of this SimpleAttribute with name.
 void setType(String type)
          Set the attributeType of this SimpleAttribute with type.
 String toString()
          Returns the string representation of this SimpleAttribute.
 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributeName

String attributeName
The name, represented as a string , of this attribute. attributeName is determined when parsing ontology with the value of attribute name of the tag attribute.

attributeType

String attributeType
The type, represented as a string , for this attribute. attributeType is determined when parsing ontology with the value of attribute name of the tag classref or typeref inside defattribute element.

Constructor Detail

SimpleAttribute

public SimpleAttribute()

Creates a SimpleAttribute with attributeName = "" and attributeType = "". Each field is initialized.


SimpleAttribute

public SimpleAttribute(String name, String type)

Creates a SimpleAttribute with attributeName = name and attributeType = type.

Parameters
name - the name of the attribute.
type - the type of the attribute.

Method Detail

getName

public String getName()
Returns the attributeName of this SimpleAttribute.
Returns :
the String name.
See also :
setName(java.lang.String)

getType

public String getType()
Returns the attributeType of this SimpleAttribute.
Returns :
the String type.
See also :
setType(java.lang.String)

setName

public void setName(String name)
Set the attributeName of this SimpleAttribute with name.
Parameters :
name - the String name to set.
See also :
getName()

setType

public void setType(String type)
Set the attributeType of this SimpleAttribute with type.
Parameters :
type - the String type to set.
See also :
getType()

toString

public String toString()
Returns the string representation of this SimpleAttribute.
Overrides :
toString in class Object.
Returns :
a String representation of this object.

Submit a bug or feature
Copyright 2000 INRIA Rhone-Alpes, Zirst - 655 avenue de l'Europe, 38334 Saint Ismier Cedex,
Montbonnot, France. All Rights Reserved.