org.jboss.shrinkwrap.descriptor.api
Interface DescriptorNamespace<T>

All Known Subinterfaces:
ApplicationDescriptor, ApplicationDescriptor, BeansDescriptor, ConnectorDescriptor, ConnectorDescriptor, ConnectorDescriptor, ConnectorDescriptor, DatasourcesDescriptor, EjbJarDescriptor, EjbJarDescriptor, IronjacamarDescriptor, JbossDescriptor, JbossWebDescriptor, JettyDescriptor, OrmDescriptor, OrmDescriptor, PersistenceDescriptor, PersistenceDescriptor, PortletDescriptor, ResourceadapterDescriptor, WebAppDescriptor, WebFacelettaglibraryDescriptor, WebFacesConfigDescriptor, WebFacesConfigDescriptor, WebFacesPartialResponseDescriptor, WebFacesUIComponentDescriptor, WebFragmentDescriptor, WebJsptaglibraryDescriptor, WebJsptaglibraryDescriptor
All Known Implementing Classes:
ConnectorDescriptorImpl, DatasourcesDescriptorImpl, IronjacamarDescriptorImpl, ResourceadapterDescriptorImpl

public interface DescriptorNamespace<T>


Method Summary
 T addDefaultNamespaces()
          Adds the default namespaces as defined in the specification.
 T addNamespace(String name, String value)
          Adds a new namespace.
 List<String> getNamespaces()
          Returns all existing namespaces.
 T removeAllNamespaces()
          Removes all existing namespaces.
 

Method Detail

addDefaultNamespaces

T addDefaultNamespaces()
Adds the default namespaces as defined in the specification.

Returns:
the current instance of T.

addNamespace

T addNamespace(String name,
               String value)
Adds a new namespace.

Parameters:
name - the name of the namespace
value - the value of the namespace
Returns:
the current instance of T.

getNamespaces

List<String> getNamespaces()
Returns all existing namespaces.

Returns:
a list of all existing namespaces.

removeAllNamespaces

T removeAllNamespaces()
Removes all existing namespaces.

Returns:
the current instance of T.


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