net.sf.csutils.core.registry.impl
Class AbstractRegistryFacade

java.lang.Object
  extended by net.sf.csutils.core.registry.impl.AbstractRegistryFacade
All Implemented Interfaces:
RegistryFacade
Direct Known Subclasses:
SimpleRegistryFacade

public abstract class AbstractRegistryFacade
extends java.lang.Object
implements RegistryFacade

Abstract base class for deriving implementations of RegistryFacade.


Constructor Summary
AbstractRegistryFacade(RegistryInfo pRegistryInfo)
          Creates a new instance with the given RegistryInfo.
 
Method Summary
 javax.xml.registry.infomodel.Concept findObjectType(QName pName)
          Returns the object type with the given name.
 javax.xml.registry.infomodel.ClassificationScheme getAssociationTypeClassificationScheme()
          Returns the classification scheme of association types.
 javax.xml.registry.infomodel.ClassificationScheme getObjectTypeClassificationScheme()
          Returns the classification scheme of object types.
 java.util.Collection<javax.xml.registry.infomodel.Association> getReferencingAssociations(javax.xml.registry.infomodel.RegistryObject pRo)
          Returns all associations with the given object as the associations source.
 RegistryInfo getRegistryInfo()
          Returns the RegistryInfo.
 boolean isAssociationTypeClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme pClassificationScheme)
          Returns, whether the given classification scheme is the association type classification scheme.
 boolean isAssociationTypeConcept(javax.xml.registry.infomodel.Concept pConcept)
          Returns, whether the given concept is an association type concept.
 boolean isObjectTypeClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme pClassificationScheme)
          Returns, whether the given classification scheme is the object type classification scheme.
 boolean isObjectTypeConcept(javax.xml.registry.infomodel.Concept pConcept)
          Returns, whether the given concept is an object type concept.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.csutils.core.registry.RegistryFacade
findAssociationType, findClassificationScheme, findDescendant, findObjectByPath, findObjectType, getBusinessLifeCycleManager, getBusinessQueryManager, getConnection
 

Constructor Detail

AbstractRegistryFacade

public AbstractRegistryFacade(RegistryInfo pRegistryInfo)
Creates a new instance with the given RegistryInfo.

Parameters:
pRegistryInfo - The registry information object.
Method Detail

getRegistryInfo

public RegistryInfo getRegistryInfo()
Returns the RegistryInfo.

Specified by:
getRegistryInfo in interface RegistryFacade
Returns:
The registry information object.

findObjectType

public javax.xml.registry.infomodel.Concept findObjectType(QName pName)
                                                    throws javax.xml.registry.JAXRException
Returns the object type with the given name.

Specified by:
findObjectType in interface RegistryFacade
Parameters:
pName - The object types name.
Returns:
The object type with the given name.
Throws:
javax.xml.registry.JAXRException - The operation failed.

isAssociationTypeConcept

public boolean isAssociationTypeConcept(javax.xml.registry.infomodel.Concept pConcept)
                                 throws javax.xml.registry.JAXRException
Returns, whether the given concept is an association type concept.

Specified by:
isAssociationTypeConcept in interface RegistryFacade
Parameters:
pConcept - The concept to evaluate
Returns:
True, if the concept is an association type concept.
Throws:
javax.xml.registry.JAXRException - The operation failed.

isObjectTypeConcept

public boolean isObjectTypeConcept(javax.xml.registry.infomodel.Concept pConcept)
                            throws javax.xml.registry.JAXRException
Returns, whether the given concept is an object type concept.

Specified by:
isObjectTypeConcept in interface RegistryFacade
Parameters:
pConcept - The concept to evaluate
Returns:
True, if the concept is an object type concept.
Throws:
javax.xml.registry.JAXRException - The operation failed.

isAssociationTypeClassificationScheme

public boolean isAssociationTypeClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme pClassificationScheme)
                                              throws javax.xml.registry.JAXRException
Returns, whether the given classification scheme is the association type classification scheme.

Specified by:
isAssociationTypeClassificationScheme in interface RegistryFacade
Parameters:
pClassificationScheme - The classification scheme to evaluate.
Returns:
True, if the classification scheme is the taxonomy of association types.
Throws:
javax.xml.registry.JAXRException - The operation failed.

isObjectTypeClassificationScheme

public boolean isObjectTypeClassificationScheme(javax.xml.registry.infomodel.ClassificationScheme pClassificationScheme)
                                         throws javax.xml.registry.JAXRException
Returns, whether the given classification scheme is the object type classification scheme.

Specified by:
isObjectTypeClassificationScheme in interface RegistryFacade
Parameters:
pClassificationScheme - The classification scheme to evaluate.
Returns:
True, if the classification scheme is the taxonomy of object types.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getAssociationTypeClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme getAssociationTypeClassificationScheme()
                                                                                         throws javax.xml.registry.JAXRException
Returns the classification scheme of association types.

Specified by:
getAssociationTypeClassificationScheme in interface RegistryFacade
Returns:
The classification scheme of association types.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getObjectTypeClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme getObjectTypeClassificationScheme()
                                                                                    throws javax.xml.registry.JAXRException
Returns the classification scheme of object types.

Specified by:
getObjectTypeClassificationScheme in interface RegistryFacade
Returns:
The classification scheme of object types.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getReferencingAssociations

public java.util.Collection<javax.xml.registry.infomodel.Association> getReferencingAssociations(javax.xml.registry.infomodel.RegistryObject pRo)
                                                                                          throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns all associations with the given object as the associations source.

Specified by:
getReferencingAssociations in interface RegistryFacade
Throws:
javax.xml.registry.JAXRException


Copyright © 2009-2010. All Rights Reserved.