WebObjects 5.4.2

com.webobjects.appserver.parser.woml
Interface WOMLNamespaceProvider

All Known Implementing Classes:
WOMLDefaultNamespaceProvider

public interface WOMLNamespaceProvider


Method Summary
 WOMLNamespace getDefaultNamespace()
          Returns the default WOMLNamespace for the provider that will be used in the absence of another namespace in the provider that claims a particular declaration.
 WOMLNamespace getNamespace(String namespace)
           
 String getNamespaceId(WOMLNamespace namespace)
          Returns the namespace identifier of the given namespace.
 Collection getNamespaces()
          Returns a collection of all namespaces that the provider manages, in the order in which they should be used to contribute to declarations.
 

Method Detail

getDefaultNamespace

WOMLNamespace getDefaultNamespace()
Returns the default WOMLNamespace for the provider that will be used in the absence of another namespace in the provider that claims a particular declaration. The normal case for this is when the declared element has dynamic attributes that indicate an element should be generated but contains no identifying namespace or attribute that marks is specically (like wo:component). The provider must provide a default namespace. Do not confuse this with the namespace associated with the empty namespace (null).

Returns:

getNamespace

WOMLNamespace getNamespace(String namespace)

getNamespaces

Collection getNamespaces()
Returns a collection of all namespaces that the provider manages, in the order in which they should be used to contribute to declarations.

Returns:
Collection of namespaces

getNamespaceId

String getNamespaceId(WOMLNamespace namespace)
Returns the namespace identifier of the given namespace. If the namespace is not contained in the provider this will throw IllegalArgumentException.

Parameters:
namespace -
Returns:

Last updated June 2008

Copyright © 2000-2008 Apple Inc.