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

java.lang.Object
  extended by net.sf.csutils.core.registry.impl.ROMetaModelAccessorImpl
All Implemented Interfaces:
ROMetaModelAccessor

public class ROMetaModelAccessorImpl
extends java.lang.Object
implements ROMetaModelAccessor

Default implementation of ROMetaModel, using the DynamicROMetaModel.


Constructor Summary
ROMetaModelAccessorImpl(ModelDrivenRegistryFacade pFacade, MetaModelAccessor pAccessor)
           
 
Method Summary
 ROType create(ROType pType)
          Creates the given registry object type in the registry.
 ROMetaModel getMetaModel()
          Returns the meta model.
 ModelDrivenRegistryFacade getRegistryFacade()
          Returns the accessors registry facade.
 void remove(QName pQName)
          Removes the given object type from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROMetaModelAccessorImpl

public ROMetaModelAccessorImpl(ModelDrivenRegistryFacade pFacade,
                               MetaModelAccessor pAccessor)
Method Detail

getMetaModel

public ROMetaModel getMetaModel()
Description copied from interface: ROMetaModelAccessor
Returns the meta model.

Specified by:
getMetaModel in interface ROMetaModelAccessor
Returns:
The meta model to use.

getRegistryFacade

public ModelDrivenRegistryFacade getRegistryFacade()
Description copied from interface: ROMetaModelAccessor
Returns the accessors registry facade.

Specified by:
getRegistryFacade in interface ROMetaModelAccessor
Returns:
The registry facade to use.

remove

public void remove(QName pQName)
            throws javax.xml.registry.JAXRException
Description copied from interface: ROMetaModelAccessor
Removes the given object type from the registry. This includes removal of instances, if there are any.

Specified by:
remove in interface ROMetaModelAccessor
Parameters:
pQName - Qualified name of the registry object type to remove.
Throws:
javax.xml.registry.JAXRException - The operation failed.

create

public ROType create(ROType pType)
              throws javax.xml.registry.JAXRException
Description copied from interface: ROMetaModelAccessor
Creates the given registry object type in the registry.

Specified by:
create in interface ROMetaModelAccessor
Parameters:
pType - Description of the type to create.
Returns:
An instance of ROType, which matches the type that has just been created.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.