SAP NetWeaver '04

com.sapportals.wcm.util.name
Class Name

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.util.name.Name
All Implemented Interfaces:
IName, java.io.Serializable
Direct Known Subclasses:
PropertyName

public class Name
extends java.lang.Object
implements IName, java.io.Serializable

Generic class for the representation of namespace-qualified names.

Copyright (c) SAP AG 2001-2004

See Also:
Serialized Form

Constructor Summary
Name(java.lang.String prefixedName)
           
Name(java.lang.String namespace, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean equalsNode(org.w3c.dom.Node node)
          Compare namespace name and local name with namespace and name of a DOM node.
 java.lang.String getName()
          return get the local name
 java.lang.String getNamespace()
          Returns the namespace URI (a missing namespace is mapped to an empty string).
 java.lang.String getNamespaceOrNull()
          Returns the namespace URI (a missing namespace is mapped to null ).
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Name

public Name(java.lang.String namespace,
            java.lang.String name)
Parameters:
namespace - namespaceUri. Note that both "" (the empty string) and null are internally treated identically (as a non-namespace-qualified name).
name - NCName

Name

public Name(java.lang.String prefixedName)
     throws java.lang.Exception
Parameters:
prefixedName - namespace & name in {namespace}name format
Method Detail

getNamespace

public final java.lang.String getNamespace()
Description copied from interface: IName
Returns the namespace URI (a missing namespace is mapped to an empty string).
Specified by:
getNamespace in interface IName
Returns:
the namespace URI (or the empty string when no namespace was given)

getNamespaceOrNull

public final java.lang.String getNamespaceOrNull()
Description copied from interface: IName
Returns the namespace URI (a missing namespace is mapped to null ). Use this function if the value is going to be passed to a XML DOM level 2 method.
Specified by:
getNamespaceOrNull in interface IName
Returns:
the namespace URI (or null when no namespace was given)

getName

public final java.lang.String getName()
return get the local name
Specified by:
getName in interface IName
Following copied from interface: com.sapportals.wcm.util.name.IName
Returns:
name

equals

public final boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

equalsNode

public boolean equalsNode(org.w3c.dom.Node node)
Compare namespace name and local name with namespace and name of a DOM node.
Parameters:
node - DOM node to compare with
Returns:
whether both match

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.