org.jomc.model
Class InheritanceModel

Package class diagram package InheritanceModel
java.lang.Object
  extended by org.jomc.model.InheritanceModel

public class InheritanceModel
extends Object

Inheritance model.

Since:
1.2
Version:
$JOMC: InheritanceModel.java 4138 2011-12-27 18:10:02Z schulte2005 $
Author:
Christian Schulte

Nested Class Summary
static class InheritanceModel.Node<T>
          Inheritance model node.
 
Constructor Summary
InheritanceModel(Modules modules)
          Creates a new InheritanceModel instance.
 
Method Summary
 Set<String> getDependencyNames(String implementation)
          Gets a set holding the names of all dependencies of an implementation.
 Set<InheritanceModel.Node<Dependency>> getDependencyNodes(String implementation, String name)
          Gets a set holding effective dependency nodes of an implementation.
 Set<String> getImplementationReferenceIdentifiers(String implementation)
          Gets a set holding the identifiers of all implementation references of an implementation.
 Set<InheritanceModel.Node<ImplementationReference>> getImplementationReferenceNodes(String implementation, String identifier)
          Gets a set holding effective implementation reference nodes of an implementation.
 Set<QName> getJaxbElementNames(String implementation)
          Gets a set holding the qualified names of all XML elements of an implementation.
 Set<InheritanceModel.Node<javax.xml.bind.JAXBElement<?>>> getJaxbElementNodes(String implementation, QName name)
          Gets a set holding effective JAXB element nodes of an implementation.
 Set<String> getMessageNames(String implementation)
          Gets a set holding the names of all messages of an implementation.
 Set<InheritanceModel.Node<Message>> getMessageNodes(String implementation, String name)
          Gets a set holding effective message nodes of an implementation.
 Set<String> getPropertyNames(String implementation)
          Gets a set holding the names of all properties of an implementation.
 Set<InheritanceModel.Node<Property>> getPropertyNodes(String implementation, String name)
          Gets a set holding effective property nodes of an implementation.
 Set<InheritanceModel.Node<Implementation>> getSourceNodes(String implementation)
          Gets a set holding source nodes of an implementation.
 Set<String> getSpecificationReferenceIdentifiers(String implementation)
          Gets a set holding the identifiers of all specification references of an implementation.
 Set<InheritanceModel.Node<SpecificationReference>> getSpecificationReferenceNodes(String implementation, String identifier)
          Gets a set holding effective specification reference nodes of an implementation.
 Set<QName> getXmlElementNames(String implementation)
          Gets a set holding the qualified names of all XML elements of an implementation.
 Set<InheritanceModel.Node<Element>> getXmlElementNodes(String implementation, QName name)
          Gets a set holding effective XML element nodes of an implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InheritanceModel

public InheritanceModel(Modules modules)
Creates a new InheritanceModel instance.

Parameters:
modules - The modules backing the model.
Throws:
NullPointerException - if modules is null.
See Also:
Modules.clone()
Method Detail

getDependencyNames

public Set<String> getDependencyNames(String implementation)
Gets a set holding the names of all dependencies of an implementation.

Parameters:
implementation - The identifier of the implementation to get the names of all dependencies of.
Returns:
An unmodifiable set holding the names of all dependencies of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getDependencyNodes

public Set<InheritanceModel.Node<Dependency>> getDependencyNodes(String implementation,
                                                                 String name)
Gets a set holding effective dependency nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective dependency nodes of.
name - The dependency name to get effective nodes for.
Returns:
An unmodifiable set holding effective dependency nodes matching name of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or name is null.
See Also:
getDependencyNames(java.lang.String)

getImplementationReferenceIdentifiers

public Set<String> getImplementationReferenceIdentifiers(String implementation)
Gets a set holding the identifiers of all implementation references of an implementation.

Parameters:
implementation - The identifier of the implementation to get the identifiers of all implementation references of.
Returns:
An unmodifiable set holding the identifiers of all implementation references of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getImplementationReferenceNodes

public Set<InheritanceModel.Node<ImplementationReference>> getImplementationReferenceNodes(String implementation,
                                                                                           String identifier)
Gets a set holding effective implementation reference nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective implementation reference nodes of.
identifier - The implementation reference identifier to get effective nodes for.
Returns:
An unmodifiable set holding effective implementation reference nodes matching identifier of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or identifier is null.
See Also:
getImplementationReferenceIdentifiers(java.lang.String)

getJaxbElementNames

public Set<QName> getJaxbElementNames(String implementation)
Gets a set holding the qualified names of all XML elements of an implementation.

Parameters:
implementation - The identifier of the implementation to get the qualified names of all XML elements of.
Returns:
An unmodifiable set holding the qualified names of all XML elements of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getJaxbElementNodes

public Set<InheritanceModel.Node<javax.xml.bind.JAXBElement<?>>> getJaxbElementNodes(String implementation,
                                                                                     QName name)
Gets a set holding effective JAXB element nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective JAXB element nodes of.
name - The qualified JAXB element name to get effective nodes for.
Returns:
An unmodifiable set holding effective JAXB element nodes matching name of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or name is null.
See Also:
getJaxbElementNames(java.lang.String)

getMessageNames

public Set<String> getMessageNames(String implementation)
Gets a set holding the names of all messages of an implementation.

Parameters:
implementation - The identifier of the implementation to get the names of all messages of.
Returns:
An unmodifiable set holding the names of all messages of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getMessageNodes

public Set<InheritanceModel.Node<Message>> getMessageNodes(String implementation,
                                                           String name)
Gets a set holding effective message nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective message nodes of.
name - The message name to get effective nodes for.
Returns:
An unmodifiable set holding effective message nodes matching name of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or name is null.
See Also:
getMessageNames(java.lang.String)

getPropertyNames

public Set<String> getPropertyNames(String implementation)
Gets a set holding the names of all properties of an implementation.

Parameters:
implementation - The identifier of the implementation to get the names of all properties of.
Returns:
An unmodifiable set holding the names of all properties of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getPropertyNodes

public Set<InheritanceModel.Node<Property>> getPropertyNodes(String implementation,
                                                             String name)
Gets a set holding effective property nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective property nodes of.
name - The property name to get effective nodes for.
Returns:
An unmodifiable set holding effective property nodes matching name of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or name is null.
See Also:
getPropertyNames(java.lang.String)

getSourceNodes

public Set<InheritanceModel.Node<Implementation>> getSourceNodes(String implementation)
Gets a set holding source nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get source nodes of.
Returns:
An unmodifiable set holding source nodes of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.
See Also:
InheritanceModel.Node.getDescendant()

getSpecificationReferenceIdentifiers

public Set<String> getSpecificationReferenceIdentifiers(String implementation)
Gets a set holding the identifiers of all specification references of an implementation.

Parameters:
implementation - The identifier of the implementation to get the identifiers of all specification references of.
Returns:
An unmodifiable set holding the identifiers of all specification references of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getSpecificationReferenceNodes

public Set<InheritanceModel.Node<SpecificationReference>> getSpecificationReferenceNodes(String implementation,
                                                                                         String identifier)
Gets a set holding effective specification reference nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective specification reference nodes of.
identifier - The specification reference identifier to get effective nodes for.
Returns:
An unmodifiable set holding effective specification reference nodes matching identifier of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or identifier is null.
See Also:
getSpecificationReferenceIdentifiers(java.lang.String)

getXmlElementNames

public Set<QName> getXmlElementNames(String implementation)
Gets a set holding the qualified names of all XML elements of an implementation.

Parameters:
implementation - The identifier of the implementation to get the qualified names of all XML elements of.
Returns:
An unmodifiable set holding the qualified names of all XML elements of the implementation identified by implementation.
Throws:
NullPointerException - if implementation is null.

getXmlElementNodes

public Set<InheritanceModel.Node<Element>> getXmlElementNodes(String implementation,
                                                              QName name)
Gets a set holding effective XML element nodes of an implementation.

Parameters:
implementation - The identifier of the implementation to get effective XML element nodes of.
name - The qualified XML element name to get effective nodes for.
Returns:
An unmodifiable set holding effective XML element nodes matching name of the implementation identified by implementation.
Throws:
NullPointerException - if implementation or name is null.
See Also:
getXmlElementNames(java.lang.String)


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.