org.jomc.model
Class Properties

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

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public class Properties
extends ModelObject
implements Cloneable

List of properties.

Java class for Properties complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Properties">
   <complexContent>
     <extension base="{http://jomc.org/model}ModelObject">
       <sequence>
         <element ref="{http://jomc.org/model}property" maxOccurs="unbounded" minOccurs="0"/>
         <element name="reference" type="{http://jomc.org/model}PropertyReference" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Property> property
           
protected  List<PropertyReference> reference
           
 
Fields inherited from class org.jomc.model.ModelObject
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion
 
Constructor Summary
Properties()
          Creates a new Properties instance.
Properties(Properties o)
          Creates a new Properties instance by deeply copying a given Properties instance.
 
Method Summary
 Properties clone()
          Creates and returns a deep copy of this object.
 List<Property> getPropertiesByType(String type)
          Gets a list of properties of a given type.
 List<Property> getProperty()
          Gets the value of the property property.
 Property getProperty(String name)
          Gets a property for a given name from the list of properties.
 List<PropertyReference> getReference()
          Gets the value of the reference property.
 PropertyReference getReference(String name)
          Gets a property reference for a given name from the list of references.
 
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

property

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected List<Property> property

reference

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected List<PropertyReference> reference
Constructor Detail

Properties

public Properties()
Creates a new Properties instance.


Properties

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

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

getProperty

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public List<Property> getProperty()
Gets the value of the property property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the property property.

For example, to add a new item, do as follows:

    getProperty().add(newItem);
 

Objects of the following type(s) are allowed in the list Property


getReference

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public List<PropertyReference> getReference()
Gets the value of the reference property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the reference property.

For example, to add a new item, do as follows:

    getReference().add(newItem);
 

Objects of the following type(s) are allowed in the list PropertyReference


clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:39:59+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public Properties clone()
Creates and returns a deep copy of this object.

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

getProperty

public Property getProperty(String name)
Gets a property for a given name from the list of properties.

Parameters:
name - The name of the property to return.
Returns:
The first matching property or null, if no such property is found.
Throws:
NullPointerException - if name is null.
See Also:
getProperty(), Property.getName()

getReference

public PropertyReference getReference(String name)
Gets a property reference for a given name from the list of references.

Parameters:
name - The name of the property reference to return.
Returns:
The first matching property reference or null, if no such reference is found.
Throws:
NullPointerException - if name is null.
See Also:
getReference(), PropertyReference.getName()

getPropertiesByType

public List<Property> getPropertiesByType(String type)
Gets a list of properties of a given type.

Parameters:
type - The type of the properties to return or null, to return properties of the default type.
Returns:
An unmodifiable list holding all properties of type.
Since:
1.2
See Also:
getProperty(), Property.getType()


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.