org.jomc.modlet
Class Modlets

Package class diagram package Modlets
java.lang.Object
  extended by org.jomc.modlet.ModletObject
      extended by org.jomc.modlet.Modlets
All Implemented Interfaces:
Cloneable

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

List of modlets.

Java class for Modlets complex type.

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

 <complexType name="Modlets">
   <complexContent>
     <extension base="{http://jomc.org/modlet}ModletObject">
       <sequence>
         <element ref="{http://jomc.org/modlet}modlet" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Modlet> modlet
           
 
Fields inherited from class org.jomc.modlet.ModletObject
MODEL_PUBLIC_ID, PUBLIC_ID
 
Constructor Summary
Modlets()
          Creates a new Modlets instance.
Modlets(Modlets o)
          Creates a new Modlets instance by deeply copying a given Modlets instance.
 
Method Summary
 Modlets clone()
          Creates and returns a deep copy of this object.
 Modlet getMergedModlet(String name, String model)
          Merges modlets of a model from this list of modlets to a single modlet.
 List<Modlet> getModlet()
          Gets the value of the modlet property.
 Modlet getModlet(String name)
          Gets a modlet for a given name from the list of modlets.
 Schemas getSchemas(String model)
          Gets schemas for a model from this list of modlets.
 Schemas getSchemas(URI publicId)
          Gets schemas for a public identifier from this list of modlets.
 Services getServices(String model)
          Gets services for a model from this list of modlets.
 
Methods inherited from class org.jomc.modlet.ModletObject
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modlet

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

Modlets

public Modlets()
Creates a new Modlets instance.


Modlets

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

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

getModlet

@Generated(value="com.sun.tools.xjc.Driver",
           date="2012-04-01T02:20:36+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-2")
public List<Modlet> getModlet()
Gets the value of the modlet 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 modlet property.

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

    getModlet().add(newItem);
 

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


clone

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

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

getModlet

public Modlet getModlet(String name)
Gets a modlet for a given name from the list of modlets.

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

getMergedModlet

public Modlet getMergedModlet(String name,
                              String model)
Merges modlets of a model from this list of modlets to a single modlet.

Parameters:
name - The name of the modlet to return.
model - The identifier of the model of the modlet to return.
Returns:
A modlet holding all modlet objects of the model identified by model from the list.
Throws:
NullPointerException - if name or model is null.
See Also:
getModlet(), Modlet.getModel()

getSchemas

public Schemas getSchemas(String model)
Gets schemas for a model from this list of modlets.

Parameters:
model - The identifier of the model to return schemas of.
Returns:
A list of schemas for model or null, if no such schemas are found.
Throws:
NullPointerException - if model is null.
See Also:
getModlet(), Modlet.getModel()

getSchemas

public Schemas getSchemas(URI publicId)
Gets schemas for a public identifier from this list of modlets.

Parameters:
publicId - The public identifier of the schemas to return.
Returns:
A list of schemas matching publicId or null, if no such schemas are found.
Throws:
NullPointerException - if publicId is null.
Since:
1.2
See Also:
getModlet(), Modlet.getSchemas(), Schemas.getSchemasByPublicId(java.net.URI)

getServices

public Services getServices(String model)
Gets services for a model from this list of modlets.

Parameters:
model - The identifier of the model to return services of.
Returns:
A list of services for model or null, if no such services are found.
Throws:
NullPointerException - if model is null.
See Also:
getModlet(), Modlet.getModel()


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.