org.jomc.model
Class Property

Package class diagram package Property
java.lang.Object
  extended by org.jomc.model.ModelObject
      extended by org.jomc.model.Property
All Implemented Interfaces:
Cloneable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Property
extends ModelObject
implements Cloneable

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, 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 this 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
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

any

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected Object any

name

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String name

type

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String type

value

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected String value

_final

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected Boolean _final

override

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected Boolean override
Constructor Detail

Property

public Property()
Creates a new Property instance.


Property

public Property(Property o)
Creates a new Property instance by deeply copying a given Property instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getAny

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Object getAny()
Object value of this property or null.

Returns:
possible object is Element Object

setAny

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setAny(Object value)
Sets the value of the any property.

Parameters:
value - allowed object is Element Object

getName

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getName()
Name of this property.

Returns:
possible object is String

setName

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getType()
Type of this property or null.

Returns:
possible object is String

setType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setType(String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

getValue

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public String getValue()
String value of this property or null.

Returns:
possible object is String

setValue

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setValue(String value)
Sets the value of the value property.

Parameters:
value - allowed object is String

isFinal

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public boolean isFinal()
true if this property is the final node in an inheritance hierarchy.

Returns:
possible object is Boolean

setFinal

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setFinal(Boolean value)
Sets the value of the final property.

Parameters:
value - allowed object is Boolean

isOverride

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public boolean isOverride()
true if this property is intended to override a super property.

Returns:
possible object is Boolean

setOverride

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setOverride(Boolean value)
Sets the value of the override property.

Parameters:
value - allowed object is Boolean

clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2009-12-07T03:06:36+00:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Property clone()
Creates and returns a deep copy of this object.

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

getJavaValue

public Object getJavaValue(ClassLoader classLoader)
                    throws ClassNotFoundException,
                           InstantiationException
Gets the Java value of this property.

Parameters:
classLoader - The class loader to use for loading the Java class corresponding to the type of this property.
Returns:
The Java value of this property.
Throws:
NullPointerException - if classLoader is null.
ClassNotFoundException - if the Java class corresponding to the type of this property is not found.
InstantiationException - if instantiation of the value fails.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.