org.jomc.tools.model
Class ToolsType

Package class diagram package ToolsType
java.lang.Object
  extended by org.jomc.tools.model.ToolsType
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
SourceFilesType, SourceFileType, SourceSectionsType, SourceSectionType

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-05-23T02:54:23+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public class ToolsType
extends Object
implements Cloneable

Base tools type.

Java class for ToolsType complex type.

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

 <complexType name="ToolsType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="modelVersion" type="{http://www.w3.org/2001/XMLSchema}string" default="1.2" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String modelVersion
           
 
Constructor Summary
ToolsType()
          Creates a new ToolsType instance.
ToolsType(ToolsType o)
          Creates a new ToolsType instance by deeply copying a given ToolsType instance.
 
Method Summary
 ToolsType clone()
          Creates and returns a deep copy of this object.
protected
<T> javax.xml.bind.JAXBElement<T>
getAnyElement(List<Object> any, String namespaceURI, String localPart, Class<T> type)
          Gets a single JAXBElement matching a namespace URI and local part from a given list of objects.
protected
<T> List<javax.xml.bind.JAXBElement<T>>
getAnyElements(List<Object> any, String namespaceURI, String localPart, Class<T> type)
          Gets a list containing all JAXBElements matching a namespace URI and local part from a given list of objects.
protected
<T> T
getAnyObject(List<Object> any, Class<T> clazz)
          Gets a single object matching a class from a given list of objects.
protected
<T> List<T>
getAnyObjects(List<Object> any, Class<T> clazz)
          Gets a list containing all objects matching a class from a given list of objects.
 String getModelVersion()
          Gets the value of the modelVersion property.
 void setModelVersion(String value)
          Sets the value of the modelVersion property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-05-23T02:54:23+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
protected String modelVersion
Constructor Detail

ToolsType

public ToolsType()
Creates a new ToolsType instance.


ToolsType

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

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

getModelVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-05-23T02:54:23+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public String getModelVersion()
Gets the value of the modelVersion property.

Returns:
possible object is String

setModelVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-05-23T02:54:23+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public void setModelVersion(String value)
Sets the value of the modelVersion property.

Parameters:
value - allowed object is String

clone

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

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

getAnyElement

protected <T> javax.xml.bind.JAXBElement<T> getAnyElement(List<Object> any,
                                                          String namespaceURI,
                                                          String localPart,
                                                          Class<T> type)
Gets a single JAXBElement matching a namespace URI and local part from a given list of objects.

Type Parameters:
T - The type the element is bound to.
Parameters:
any - The list to search.
namespaceURI - The namespace URI of the JAXBElement to return.
localPart - The local part of the JAXBElement to return.
type - The class of the type the element is bound to.
Returns:
The JAXBElement matching namespaceURI and localPart from the any list or null if no such element is found.
Throws:
NullPointerException - if any, namespaceURI, localPart or type is null.
IllegalStateException - if any contains more than one matching element.

getAnyElements

protected <T> List<javax.xml.bind.JAXBElement<T>> getAnyElements(List<Object> any,
                                                                 String namespaceURI,
                                                                 String localPart,
                                                                 Class<T> type)
Gets a list containing all JAXBElements matching a namespace URI and local part from a given list of objects.

Type Parameters:
T - The type the elements are bound to.
Parameters:
any - The list to search.
namespaceURI - The namespace URI of the JAXBElements to return.
localPart - The local part of the JAXBElements to return.
type - The class of the type the elements are bound to.
Returns:
An unmodifiable list of all JAXBElements matching namespaceURI and localPart from the any list - an empty list if no such elements are found.
Throws:
NullPointerException - if any, namespaceURI, localPart or type is null.

getAnyObject

protected <T> T getAnyObject(List<Object> any,
                             Class<T> clazz)
Gets a single object matching a class from a given list of objects.

Type Parameters:
T - The type of the object to return.
Parameters:
any - The list to search.
clazz - The class to return an instance of.
Returns:
The instance of clazz from the any list or null, if no such instance is found.
Throws:
NullPointerException - if any or clazz is null.
IllegalStateException - if any contains more than one matching object.

getAnyObjects

protected <T> List<T> getAnyObjects(List<Object> any,
                                    Class<T> clazz)
Gets a list containing all objects matching a class from a given list of objects.

Type Parameters:
T - The type of the objects to return.
Parameters:
any - The list to search.
clazz - The class to return all instances of.
Returns:
An unmodifiable list of all instances of clazz from the any list - an empty list if no such objects are found.
Throws:
NullPointerException - if any or clazz is null.


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.