com.sapportals.wcm.protocol.webdav

Class QualifiedName

java.lang.Object
  extended by com.sapportals.wcm.util.name.Name
      extended by com.sapportals.wcm.protocol.webdav.Name
          extended by com.sapportals.wcm.protocol.webdav.QualifiedName
All Implemented Interfaces:
IName, Serializable, Comparable

public class QualifiedName
extends Name

A qualified and prefixed XML Name, consisting of namespace name, prefix and local name.

Copyright (c) SAP AG 2001-2004

See Also:
Serialized Form

Constructor Summary
QualifiedName(Node node)
           
QualifiedName(String namespaceUri, String qname)
           
QualifiedName(String namespaceUri, String localName, String prefix)
           
 
Method Summary
static QualifiedName getInstance(String name)
          Builds a QualifiedName from a string in the following formats: {namespaceUri}localPart xmlns:prefix xml:localPart NCName
static String getLocalName(String prefixedName)
          gets the local name from a prefixed name
 String getPrefix()
           
static String getPrefix(String prefixedName)
          gets the prefix from a prefixed name
 
Methods inherited from class com.sapportals.wcm.protocol.webdav.Name
compareTo, compareTo, getEmptyTag, getEndTag, getLocalName, getNamespaceUri, getStartTag
 
Methods inherited from class com.sapportals.wcm.util.name.Name
equals, equalsNode, get, get, getName, getNamespace, getNamespaceOrNull, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QualifiedName

public QualifiedName(String namespaceUri,
                     String localName,
                     String prefix)
Parameters:
namespaceUri - namespace URI
localName -
prefix -

QualifiedName

public QualifiedName(String namespaceUri,
                     String qname)
Parameters:
namespaceUri - namespace URI
qname - a QName

QualifiedName

public QualifiedName(Node node)
Parameters:
node - DOM element
Method Detail

getPrefix

public static String getPrefix(String prefixedName)
gets the prefix from a prefixed name

Parameters:
prefixedName - prefixed name
Returns:
the prefix or null

getLocalName

public static String getLocalName(String prefixedName)
gets the local name from a prefixed name

Parameters:
prefixedName - prefixed Name
Returns:
the local name part

getInstance

public static QualifiedName getInstance(String name)
                                 throws ParseException
Builds a QualifiedName from a string in the following formats:

Parameters:
name - input
Throws:
ParseException - when format not OK

getPrefix

public String getPrefix()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice