cz.cuni.mff.mirovsky.properties
Class PropertiesSection

java.lang.Object
  extended by cz.cuni.mff.mirovsky.properties.PropertiesSection
All Implemented Interfaces:
Item, ItemSet

public class PropertiesSection
extends java.lang.Object
implements Item, ItemSet

Class PropertiesSection keeps a set of related properties.


Constructor Summary
PropertiesSection()
           
PropertiesSection(java.lang.String p_name)
           
PropertiesSection(java.lang.String p_name, java.lang.String p_comment)
           
 
Method Summary
 PropertiesSection getClone()
           
 java.lang.String getComment()
          Gets the comment of the item
 java.lang.String getItemComment(java.lang.String item_name)
           
 java.lang.String getItemValue(java.lang.String item_name)
           
 java.util.Iterator getIteratorOverNames()
           
 java.util.Iterator getIteratorOverValues()
           
 java.lang.String getName()
          Gets the name of the item
 Property getProperty(java.lang.String name)
           
 java.lang.String getValue()
          Gets the value of the item
 boolean isEmpty()
           
 void removeItem(java.lang.String item_name)
           
 void removeProperty(java.lang.String property_name)
           
 void setComment(java.lang.String p_comment)
           
 void setName(java.lang.String p_name)
           
 void setProperty(Property property)
           
 void setPropertyValue(java.lang.String property_name, java.lang.String property_value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesSection

public PropertiesSection()

PropertiesSection

public PropertiesSection(java.lang.String p_name)

PropertiesSection

public PropertiesSection(java.lang.String p_name,
                         java.lang.String p_comment)
Method Detail

getClone

public PropertiesSection getClone()

getIteratorOverNames

public java.util.Iterator getIteratorOverNames()
Specified by:
getIteratorOverNames in interface ItemSet

getIteratorOverValues

public java.util.Iterator getIteratorOverValues()
Specified by:
getIteratorOverValues in interface ItemSet

isEmpty

public boolean isEmpty()

getComment

public java.lang.String getComment()
Description copied from interface: Item
Gets the comment of the item

Specified by:
getComment in interface Item

setComment

public void setComment(java.lang.String p_comment)

getName

public java.lang.String getName()
Description copied from interface: Item
Gets the name of the item

Specified by:
getName in interface Item

setName

public void setName(java.lang.String p_name)

getProperty

public Property getProperty(java.lang.String name)

setProperty

public void setProperty(Property property)

setPropertyValue

public void setPropertyValue(java.lang.String property_name,
                             java.lang.String property_value)

removeProperty

public void removeProperty(java.lang.String property_name)

getValue

public java.lang.String getValue()
Description copied from interface: Item
Gets the value of the item

Specified by:
getValue in interface Item

getItemValue

public java.lang.String getItemValue(java.lang.String item_name)
Specified by:
getItemValue in interface ItemSet

getItemComment

public java.lang.String getItemComment(java.lang.String item_name)
Specified by:
getItemComment in interface ItemSet

removeItem

public void removeItem(java.lang.String item_name)
Specified by:
removeItem in interface ItemSet