Kafenio.editor 0.8.5

de.xeinfach.kafenio.component
Class NameValuePair

java.lang.Object
  extended byde.xeinfach.kafenio.component.NameValuePair

public class NameValuePair
extends java.lang.Object

Description: Class that holds name / value-pairs for List-items.

Author:
Karsten Pawlik

Constructor Summary
NameValuePair()
          creates a new, empty NameValuePair Object.
NameValuePair(java.lang.String newName)
          creates a new name / value pair for a list.
NameValuePair(java.lang.String newName, java.lang.String newValue)
          creates a new name / value pair for a list.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getValue()
           
 void setName(java.lang.String string)
          sets the name
 void setValue(java.lang.String string)
          sets the value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameValuePair

public NameValuePair()
creates a new, empty NameValuePair Object.


NameValuePair

public NameValuePair(java.lang.String newName)
creates a new name / value pair for a list.
this constructor sets both name and value to the given string.

Parameters:
newName - name of the pair

NameValuePair

public NameValuePair(java.lang.String newName,
                     java.lang.String newValue)
creates a new name / value pair for a list.
this constructor sets both name and value to the given name and value.

Parameters:
newName - name of the pair
newValue - value of the pair
Method Detail

getName

public java.lang.String getName()
Returns:
returns the current name

getValue

public java.lang.String getValue()
Returns:
returns the current value

setName

public void setName(java.lang.String string)
sets the name

Parameters:
string - name

setValue

public void setValue(java.lang.String string)
sets the value

Parameters:
string - value

toString

public java.lang.String toString()
Returns:
returns a string representation of this object.

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)