public class KeyValueType extends Object implements Cloneable
key
, value
and type
property.Constructor and Description |
---|
KeyValueType()
Creates a new
KeyValueType instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
public KeyValueType()
KeyValueType
instance.public final String getKey()
key
property.key
property.setKey(java.lang.String)
public final void setKey(String k)
key
property.k
- The new value of the key
property.getKey()
public final String getValue()
value
property.value
property or null
.setValue(java.lang.String)
public final void setValue(String v)
value
property.v
- The new value of the value
property or null
.getValue()
public final Class<?> getType()
type
property.type
property or null
.setType(java.lang.Class)
public final void setType(Class<?> t)
type
property.t
- The new value of the type
property or null
.getType()
public Object getObject(org.apache.tools.ant.Location location) throws org.apache.tools.ant.BuildException
location
- The location the object is requested at.null
.NullPointerException
- if location
is null
.org.apache.tools.ant.BuildException
- if getting the object fails.getType()
,
getValue()
public KeyValueType clone()
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.