|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.model.ModelObject
org.jomc.model.Property
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public class Property
Model of a property. The 'Property' type defines attributes 'name', 'type', 'value', 'final' and 'override'. Attribute 'name' holds the name uniquely identifying the property in a set of properties. Attribute 'type' holds an identifier of the type of the property. Attribute 'value' holds the properties value.
Java class for Property complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Property"> <complexContent> <extension base="{http://jomc.org/model}ModelObject"> <sequence> <any processContents='lax' namespace='##other' minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://jomc.org/model}Identifier" /> <attribute name="type" type="{http://jomc.org/model}Identifier" /> <attribute name="value" type="{http://jomc.org/model}String" /> <attribute name="final" type="{http://jomc.org/model}Flag" default="false" /> <attribute name="override" type="{http://jomc.org/model}Flag" default="false" /> </extension> </complexContent> </complexType>
Field Summary | |
---|---|
protected Boolean |
_final
|
protected Object |
any
|
protected String |
name
|
protected Boolean |
override
|
protected String |
type
|
protected String |
value
|
Fields inherited from class org.jomc.model.ModelObject |
---|
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion |
Constructor Summary | |
---|---|
Property()
Creates a new Property instance. |
|
Property(Property o)
Creates a new Property instance by deeply copying a given Property instance. |
Method Summary | |
---|---|
Property |
clone()
Creates and returns a deep copy of this object. |
Object |
getAny()
Object value of this property or null . |
Object |
getJavaValue(ClassLoader classLoader)
Gets the Java value of the property. |
String |
getName()
Name of this property. |
String |
getType()
Type of this property or null . |
String |
getValue()
String value of this property or null . |
boolean |
isFinal()
true , if this property is the final node in an inheritance hierarchy. |
boolean |
isOverride()
true , if this property is intended to override a super property. |
void |
setAny(Object value)
Sets the value of the any property. |
void |
setFinal(Boolean value)
Sets the value of the final property. |
void |
setName(String value)
Sets the value of the name property. |
void |
setOverride(Boolean value)
Sets the value of the override property. |
void |
setType(String value)
Sets the value of the type property. |
void |
setValue(String value)
Sets the value of the value property. |
Methods inherited from class org.jomc.model.ModelObject |
---|
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected Object any
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected String name
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected String type
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected String value
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected Boolean _final
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") protected Boolean override
Constructor Detail |
---|
public Property()
Property
instance.
public Property(Property o)
Property
instance by deeply copying a given Property
instance.
o
- The instance to copy.
NullPointerException
- if o
is null
.Method Detail |
---|
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public Object getAny()
null
.
Object
Element
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setAny(Object value)
value
- allowed object is
Object
Element
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getName()
String
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01: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="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getType()
null
.
String
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01: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="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public String getValue()
null
.
String
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01: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="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public boolean isFinal()
true
, if this property is the final node in an inheritance hierarchy.
isFinal
in interface Inheritable
Boolean
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setFinal(Boolean value)
value
- allowed object is
Boolean
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public boolean isOverride()
true
, if this property is intended to override a super property.
isOverride
in interface Inheritable
Boolean
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public void setOverride(Boolean value)
value
- allowed object is
Boolean
@Generated(value="com.sun.tools.xjc.Driver", date="2012-03-14T10:22:27+01:00", comments="JAXB RI vhudson-jaxb-ri-2.1-2") public Property clone()
clone
in class ModelObject
public Object getJavaValue(ClassLoader classLoader) throws PropertyException
The Java value of the property 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 using reflection. 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 taking a single
java.lang.String
argument of that wrapper class. For all other values of property type
an
instance of a class with a name equal to the value of property type
is returned instantiated by passing
the value of property value
to the public constructor taking a single java.lang.String
argument
of that class.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
.
PropertyException
- if getting the Java value of the property fails unexpectedly.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |