org.apache.lenya.cms.metadata
Interface MetaDataRegistry


public interface MetaDataRegistry

Meta data registry.


Field Summary
static java.lang.String ROLE
          The Avalon role.
 
Method Summary
 ElementSet getElementSet(java.lang.String namespaceUri)
           
 java.lang.String[] getNamespaceUris()
           
 boolean isRegistered(java.lang.String namespaceUri)
          Checks if an element set is registered.
 void register(java.lang.String namespaceUri, ElementSet elementSet)
          Register an element set.
 

Field Detail

ROLE

static final java.lang.String ROLE
The Avalon role.

Method Detail

getElementSet

ElementSet getElementSet(java.lang.String namespaceUri)
                         throws MetaDataException
Parameters:
namespaceUri - The namespace URI of the element set.
Returns:
the element set.
Throws:
MetaDataException - if an error occurs.

isRegistered

boolean isRegistered(java.lang.String namespaceUri)
                     throws MetaDataException
Checks if an element set is registered.

Parameters:
namespaceUri - The namespace URI.
Returns:
A boolean value.
Throws:
MetaDataException - if an error occurs.

register

void register(java.lang.String namespaceUri,
              ElementSet elementSet)
              throws MetaDataException
Register an element set.

Parameters:
namespaceUri - The namespace URI.
elementSet - The element set.
Throws:
MetaDataException - if a set is already registered for this name.

getNamespaceUris

java.lang.String[] getNamespaceUris()
                                    throws MetaDataException
Returns:
The registered namespace URIs.
Throws:
MetaDataException - if an error occurs.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.