@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public class TemplateParameterType extends ToolsType implements Cloneable
Java class for TemplateParameterType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TemplateParameterType"> <complexContent> <extension base="{http://jomc.org/tools/model}ToolsType"> <sequence> <any processContents='lax' namespace='##other' minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}token" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}token" /> <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected Object |
any |
protected String |
name |
protected String |
type |
protected String |
value |
modelVersion
Constructor and Description |
---|
TemplateParameterType()
Creates a new
TemplateParameterType instance. |
TemplateParameterType(TemplateParameterType o)
Creates a new
TemplateParameterType instance by deeply copying a given TemplateParameterType instance. |
Modifier and Type | Method and Description |
---|---|
TemplateParameterType |
clone()
Creates and returns a deep copy of this object.
|
Object |
getAny()
Gets the value of the any property.
|
JavaTypeName |
getJavaTypeName()
Gets the Java type name of the template parameter.
|
Object |
getJavaValue(ClassLoader classLoader)
Gets the Java value of the template parameter.
|
String |
getName()
Gets the value of the name property.
|
String |
getType()
Gets the value of the type property.
|
String |
getValue()
Gets the value of the value property.
|
void |
setAny(Object value)
Sets the value of the any property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setType(String value)
Sets the value of the type property.
|
void |
setValue(String value)
Sets the value of the value property.
|
getAnyElement, getAnyElements, getAnyObject, getAnyObjects, getModelVersion, setModelVersion
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected Object any
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected String name
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected String type
public TemplateParameterType()
TemplateParameterType
instance.public TemplateParameterType(TemplateParameterType o)
TemplateParameterType
instance by deeply copying a given TemplateParameterType
instance.o
- The instance to copy.NullPointerException
- if o
is null
.@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public Object getAny()
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setAny(Object value)
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getName()
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setName(String value)
value
- allowed object is
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getType()
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setType(String value)
value
- allowed object is
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getValue()
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setValue(String value)
value
- allowed object is
String
@Generated(value="com.sun.tools.xjc.Driver", date="2015-05-31T11:53:40+02:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public TemplateParameterType clone()
public Object getJavaValue(ClassLoader classLoader) throws ModelObjectException
The Java value of the template parameter is computed based on the following rules:
any
is set, the Java value is computed based on the object returned by method
getAny()
by possibly unwrapping any JAXBElement
instances. If that object declares a
method, the value returned by this method is the object returned by a call to that method. If that object does not declare such a method, the value returned by this method is that (possibly unwrapped) object.public Object getJavaValue( ClassLoader )
value
is set, the Java value is computed based on the values of properties type
and value
. If property type
is not set or equals java.lang.String
, the value returned
by this method is the string value returned by method getValue()
. If property type
equals a name
of a Java primitive type, an instance of the wrapper class corresponding to that primitive type name is returned
instantiated by passing the value of property value
to the public constructor of that wrapper class
taking a single java.lang.String
argument. For all other values of property type
an instance of
a class with a name equal to the value of property type
is returned, either instantiated by passing the
value of property value
to the public constructor of that class taking a single java.lang.String
argument, or, failing that, by passing the value of property value
to the static valueOf
method
of that class taking a single java.lang.String
argument.any
and value
are both null
, this method returns null
.classLoader
- The class loader to use for getting the Java value; null
to use the platform's
bootstrap class loader.null
.ModelObjectException
- if getting the Java value of the template parameter fails
unexpectedly.getJavaTypeName()
public JavaTypeName getJavaTypeName() throws ModelObjectException
null
, if the template
parameter does not reference a type.ModelObjectException
- if compiling the name of the type referenced by the template
parameter to a JavaTypeName
fails.Copyright © 2005–2015 The JOMC Project. All rights reserved.