org.jboss.metadata.plugins.repository.basic
Class BasicMetaDataRepository

java.lang.Object
  extended by org.jboss.metadata.plugins.repository.AbstractMetaDataRepository
      extended by org.jboss.metadata.plugins.repository.basic.BasicMetaDataRepository
All Implemented Interfaces:
MetaDataRepository, MutableMetaDataRepository

public class BasicMetaDataRepository
extends AbstractMetaDataRepository
implements MutableMetaDataRepository

BasicMetaDataRepository.

Version:
$Revision: 67291 $
Author:
Adrian Brock

Constructor Summary
BasicMetaDataRepository()
          Create a new BasicMetaDataRepository.
 
Method Summary
 MetaDataRetrieval addMetaDataRetrieval(MetaDataRetrieval retrieval)
          Add a meta data retrieval for the given scope
 MetaDataRetrievalFactory addMetaDataRetrievalFactory(ScopeLevel level, MetaDataRetrievalFactory factory)
          Add a meta data retrieval factory to the given scope level
 Set<ScopeKey> getChildren(ScopeKey key)
          Get the children of this scope
 MetaDataRetrieval getMetaDataRetrieval(ScopeKey key)
          Get the meta data retrieval for a scope key
 MetaDataRetrievalFactory getMetaDataRetrievalFactory(ScopeLevel level)
          Get a meta data retrieval factory for the given scope level
 Set<ScopeKey> matchScopes(MetaDataRepositoryVisitor visitor)
          Visit each node
 MetaDataRetrieval removeMetaDataRetrieval(ScopeKey key)
          Remove a meta data retrieval for the given scope
 MetaDataRetrievalFactory removeMetaDataRetrievalFactory(ScopeLevel level)
          Remove a meta data retrieval factory for the given scope level
 
Methods inherited from class org.jboss.metadata.plugins.repository.AbstractMetaDataRepository
getMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.spi.repository.MetaDataRepository
getMetaData
 

Constructor Detail

BasicMetaDataRepository

public BasicMetaDataRepository()
Create a new BasicMetaDataRepository.

Method Detail

getMetaDataRetrieval

public MetaDataRetrieval getMetaDataRetrieval(ScopeKey key)
Description copied from interface: MetaDataRepository
Get the meta data retrieval for a scope key

Specified by:
getMetaDataRetrieval in interface MetaDataRepository
Parameters:
key - the key
Returns:
the meta data

getChildren

public Set<ScopeKey> getChildren(ScopeKey key)
Description copied from interface: MetaDataRepository
Get the children of this scope

Specified by:
getChildren in interface MetaDataRepository
Parameters:
key - the key
Returns:
the children

matchScopes

public Set<ScopeKey> matchScopes(MetaDataRepositoryVisitor visitor)
Description copied from interface: MetaDataRepository
Visit each node

Specified by:
matchScopes in interface MetaDataRepository
Parameters:
visitor - the visitor
Returns:
the matching scopes

addMetaDataRetrieval

public MetaDataRetrieval addMetaDataRetrieval(MetaDataRetrieval retrieval)
Description copied from interface: MutableMetaDataRepository
Add a meta data retrieval for the given scope

Specified by:
addMetaDataRetrieval in interface MutableMetaDataRepository
Parameters:
retrieval - the retrieval
Returns:
any previous retrieval

removeMetaDataRetrieval

public MetaDataRetrieval removeMetaDataRetrieval(ScopeKey key)
Description copied from interface: MutableMetaDataRepository
Remove a meta data retrieval for the given scope

Specified by:
removeMetaDataRetrieval in interface MutableMetaDataRepository
Parameters:
key - the key
Returns:
any previous retrieval

addMetaDataRetrievalFactory

public MetaDataRetrievalFactory addMetaDataRetrievalFactory(ScopeLevel level,
                                                            MetaDataRetrievalFactory factory)
Description copied from interface: MutableMetaDataRepository
Add a meta data retrieval factory to the given scope level

Specified by:
addMetaDataRetrievalFactory in interface MutableMetaDataRepository
Parameters:
level - the scope level
factory - the factory
Returns:
any previous factory

getMetaDataRetrievalFactory

public MetaDataRetrievalFactory getMetaDataRetrievalFactory(ScopeLevel level)
Description copied from interface: MutableMetaDataRepository
Get a meta data retrieval factory for the given scope level

Specified by:
getMetaDataRetrievalFactory in interface MutableMetaDataRepository
Parameters:
level - the scope level
Returns:
the factory

removeMetaDataRetrievalFactory

public MetaDataRetrievalFactory removeMetaDataRetrievalFactory(ScopeLevel level)
Description copied from interface: MutableMetaDataRepository
Remove a meta data retrieval factory for the given scope level

Specified by:
removeMetaDataRetrievalFactory in interface MutableMetaDataRepository
Parameters:
level - the scope level
Returns:
any previous factory


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.