cz.cmc.tcgui.datadef
Class TCEntry

java.lang.Object
  extended bycz.cmc.tcgui.datadef.TCEntry
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AttributeEntry, TCObject

public abstract class TCEntry
extends Object
implements Cloneable

Abstract parent for AttributeEntry and TCObject. Implements their common properties.


Field Summary
protected  String description
          Description of the entry.
protected  String id
          ID for purposes of generators, checkers and exporters.
protected  String label
          Human readable label
protected  String name
          Name in the iproute2 world.
 
Constructor Summary
TCEntry()
          Creates a new TCEntry
TCEntry(String id, String name, String label)
          Creates a new TCEntry with given id, name and label
 
Method Summary
 Object clone()
          Clones this TCEntry
 String getDescription()
          Returns the description of the entry.
 String getID()
          Returns TCEntry's id (may be empty string)
 String getLabel()
          Returns TCEntry's label.
 String getName()
          Returns attribute name.
 void setDescription(String description)
          Sets the description of the entry.
 void setID(String id)
          Sets the id for this TCEntry
 void setLabel(String label)
          Sets the label for this TCEntry
 void setName(String name)
          Sets the name for this TCEntry
 String toString()
          Creates and returns string representation of this TCEntry.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected String id
ID for purposes of generators, checkers and exporters. It is NOT intended to be unique.


label

protected String label
Human readable label


name

protected String name
Name in the iproute2 world. This should be the prefix parameter as used with the tc command (e.g. "rate"). If the tc parameter has no prefix parameter (e.g. "unbounded"), this should be empty.


description

protected String description
Description of the entry. Intended for humans.

Constructor Detail

TCEntry

public TCEntry()
Creates a new TCEntry


TCEntry

public TCEntry(String id,
               String name,
               String label)
Creates a new TCEntry with given id, name and label

Parameters:
id - id of the TCEntry
name - name of the TCEntry
label - human-readable label of the TCEntry
Method Detail

getID

public String getID()
Returns TCEntry's id (may be empty string)

Returns:
id of this TCEntry

setID

public void setID(String id)
Sets the id for this TCEntry

Parameters:
id - id to be set
See Also:
id

getLabel

public String getLabel()
Returns TCEntry's label.

Returns:
label of this TCEntry
See Also:
label

setLabel

public void setLabel(String label)
Sets the label for this TCEntry

Parameters:
label - label to be set
See Also:
label

getName

public String getName()
Returns attribute name.

Returns:
name of this TCEntry
See Also:
name

setName

public void setName(String name)
Sets the name for this TCEntry

Parameters:
name - name to be set
See Also:
name

getDescription

public String getDescription()
Returns the description of the entry.

Returns:
description of the entry
See Also:
description

setDescription

public void setDescription(String description)
Sets the description of the entry.

Parameters:
description - description to be set
See Also:
description

clone

public Object clone()
Clones this TCEntry

Returns:
cloned TCEntry

toString

public String toString()
Creates and returns string representation of this TCEntry.

Returns:
String representing this object