cz.zcu.fav.kiv.editor.beans.properties
Class Property

java.lang.Object
  extended by java.util.Observable
      extended by cz.zcu.fav.kiv.editor.beans.common.GeneralElement
          extended by cz.zcu.fav.kiv.editor.beans.common.ParentParameter
              extended by cz.zcu.fav.kiv.editor.beans.properties.Property
All Implemented Interfaces:
java.lang.Comparable

public class Property
extends ParentParameter

The Property class represents an element property.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.ParentParameter
chosen, description, lineNumber, purpose
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
name, node
 
Constructor Summary
Property(java.lang.String name, AttributeGroup[] attributeGroups, int lineNumber)
          Initializes a newly created Attribute with the specified name and the list of attribute groups.
 
Method Summary
 void clearValues()
          Clear values (sets default values) of all groups of types.
 AttributeGroup[] getAttributeGroupList()
           
 Attribute searchAttribute(java.lang.String name)
          Search for an attribute with specified name.
 void setValuesFromTemporary()
          Sets values of all groups of types after their temporary values.
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.common.ParentParameter
compareTo, getDescription, getLineNumber, getPurpose, isChosen, setChosen, setChosen, setDescription, setPurpose
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
equals, getName, getNode, setName, setNode
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(java.lang.String name,
                AttributeGroup[] attributeGroups,
                int lineNumber)
Initializes a newly created Attribute with the specified name and the list of attribute groups. The name argument is the name of the property. The attributeGroups argument is the list of AttributeGroups.

Parameters:
name - a name of the property.
attributeGroups - a list of attribute groups.
Method Detail

getAttributeGroupList

public AttributeGroup[] getAttributeGroupList()

searchAttribute

public Attribute searchAttribute(java.lang.String name)
Search for an attribute with specified name.

Parameters:
name - a name of serched attribute.
Returns:
the found attribute with specified name.

setValuesFromTemporary

public void setValuesFromTemporary()
Sets values of all groups of types after their temporary values.


clearValues

public void clearValues()
Clear values (sets default values) of all groups of types.

Overrides:
clearValues in class ParentParameter