org.oddjob.arooa.xml
Class NamespaceHelper

java.lang.Object
  extended by org.oddjob.arooa.xml.NamespaceHelper

public class NamespaceHelper
extends Object

Utility functions to help with the namespace.


Constructor Summary
NamespaceHelper()
           
 
Method Summary
static String extractNameFromComponentName(String componentName)
          extract the element name from a component name
static String extractUriFromComponentName(String componentName)
          extract a uri from a component name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceHelper

public NamespaceHelper()
Method Detail

extractUriFromComponentName

public static String extractUriFromComponentName(String componentName)
extract a uri from a component name

Parameters:
componentName - The stringified form for {uri, name}
Returns:
The uri or "" if not present

extractNameFromComponentName

public static String extractNameFromComponentName(String componentName)
extract the element name from a component name

Parameters:
componentName - The stringified form for {uri, name}
Returns:
The element name of the component