com.chaosserver.bilbo.data
Class Name

java.lang.Object
  |
  +--com.chaosserver.bilbo.data.Name

public class Name
extends Object

Hold a single name element that describes a file with a given style.

Since:
Bilbo 1.0

Field Summary
protected  String style
          The style of this name.
protected  String value
          The value of this name.
 
Constructor Summary
Name()
          Default constructor.
Name(String style, String value)
          Constructor to create a valid Name.
 
Method Summary
 String getStyle()
          Getter for the style property.
 String getValue()
          Getter for the value property.
 void setStyle(String style)
          Setter for the style property.
 void setValue(String value)
          Setter for the value property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

style

protected String style
The style of this name.


value

protected String value
The value of this name.

Constructor Detail

Name

public Name()
Default constructor.


Name

public Name(String style,
            String value)
Constructor to create a valid Name.

Parameters:
style - the style of this name
value - the value of this name
Method Detail

setStyle

public void setStyle(String style)
Setter for the style property.

Parameters:
style - the value of style

getStyle

public String getStyle()
Getter for the style property.

Returns:
the value of style

setValue

public void setValue(String value)
Setter for the value property.

Parameters:
value - the value of value

getValue

public String getValue()
Getter for the value property.

Returns:
the value of value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 20020226