org.oddjob.arooa.xml
Class NamespaceHelper
java.lang.Object
org.oddjob.arooa.xml.NamespaceHelper
public class NamespaceHelper
- extends Object
Utility functions to help with the namespace.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceHelper
public NamespaceHelper()
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