
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()
Deprecated.
As of JOMC 1.8, replaced by method
getObject(org.jomc.modlet.ModelContext). This method
will be removed in JOMC 2.0. |
Object |
getObject(ModelContext modelContext)
Gets the object of the instance.
|
String |
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(String 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 String getType()
type property.type property or null.setType(java.lang.String)public final void setType(String t)
type property.t - The new value of the type property or null.getType()@Deprecated public Object getObject() throws InstantiationException
getObject(org.jomc.modlet.ModelContext). This method
will be removed in JOMC 2.0.null.InstantiationException - if getting the object of the instance fails.getType(),
getValue()public Object getObject(ModelContext modelContext) throws InstantiationException
modelContext - The context to use for getting the object of the instance.null.NullPointerException - if modelContext is null.InstantiationException - if getting the object of the instance fails.getType(),
getValue()public KeyValueType clone()
Copyright © 2005–2016 The JOMC Project. All rights reserved.