org.jomc.ant.types
Class KeyValueType

Package class diagram package KeyValueType
java.lang.Object
  extended by org.jomc.ant.types.KeyValueType
All Implemented Interfaces:
Cloneable

public class KeyValueType
extends Object
implements Cloneable

Datatype holding a key, value and type property.

Version:
$JOMC: KeyValueType.java 3956 2011-11-18 22:29:49Z schulte2005 $
Author:
Christian Schulte

Constructor Summary
KeyValueType()
          Creates a new KeyValueType instance.
 
Method Summary
 KeyValueType clone()
          Creates and returns a copy of this object.
 String getKey()
          Gets the value of the key property.
 Object getObject(org.apache.tools.ant.Location location)
          Gets the object of the instance.
 Class<?> getType()
          Gets the value of the type property.
 String getValue()
          Gets the value of the value property.
 void setKey(String k)
          Sets the value of the key property.
 void setType(Class<?> t)
          Sets the value of the type property.
 void setValue(String v)
          Sets the value of the value property.
 String toString()
          Creates and returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValueType

public KeyValueType()
Creates a new KeyValueType instance.

Method Detail

getKey

public final String getKey()
Gets the value of the key property.

Returns:
The value of the key property.
See Also:
setKey(java.lang.String)

setKey

public final void setKey(String k)
Sets the value of the key property.

Parameters:
k - The new value of the key property.
See Also:
getKey()

getValue

public final String getValue()
Gets the value of the value property.

Returns:
The value of the value property or null.
See Also:
setValue(java.lang.String)

setValue

public final void setValue(String v)
Sets the value of the value property.

Parameters:
v - The new value of the value property or null.
See Also:
getValue()

getType

public final Class<?> getType()
Gets the value of the type property.

Returns:
The value of the type property or null.
See Also:
setType(java.lang.Class)

setType

public final void setType(Class<?> t)
Sets the value of the type property.

Parameters:
t - The new value of the type property or null.
See Also:
getType()

getObject

public Object getObject(org.apache.tools.ant.Location location)
                 throws org.apache.tools.ant.BuildException
Gets the object of the instance.

Parameters:
location - The location the object is requested at.
Returns:
The object of the instance or null.
Throws:
NullPointerException - if location is null.
org.apache.tools.ant.BuildException - if getting the object fails.
See Also:
getType(), getValue()

clone

public KeyValueType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A copy of this object.

toString

public String toString()
Creates and returns a string representation of the object.

Overrides:
toString in class Object
Returns:
A string representation of the object.


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.