***  This API provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.webdav
Class PropertyName

java.lang.Object
  |
  +--com.sas.services.webdav.PropertyName

public class PropertyName
extends Object

This class represents a qualified property name. A name consists of three parts, viz. the local name, the prefix and the namespace. This corresponds to the information in an XML element that represents the property's name.

e.g. would result in a local name of "PreferredColour", a prefix of "ns0" and a namespace of "http://some.namespace". Although, in general, the prefix can be generated automatically, it is assumed that this process has already occurred and the prefix is valid part of the property name.


Constructor Summary
PropertyName()
           
PropertyName(Element propElement)
          Construct a PropertyName from an XML element that represents the property.
PropertyName(org.apache.webdav.lib.Property p)
          Construct a PropertyName from an existing Property object.
PropertyName(String name)
          Construct a PropertyName from a string representing the property name.
PropertyName(String localName, String prefix, String namespaceURI)
          Construct a PropertyName from the three independent parts, a local name, a prefix and a namespace.
 
Method Summary
 String getLocalName()
          Get the local name of the property.
 String getNamespaceURI()
          Get the namepsace associated with the property name.
 String getPrefix()
          Get the prefix defined for the property.
 String toString()
          Convert the property name to an XML string representing the property name element using the format <prefix:localname xmlns:prefix="namespaceuri"/>.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyName

public PropertyName()

PropertyName

public PropertyName(org.apache.webdav.lib.Property p)
Construct a PropertyName from an existing Property object. Extract the relevant information for the name of the property from the object that represents the property.

Parameters:
p - A Property object

PropertyName

public PropertyName(String localName,
                    String prefix,
                    String namespaceURI)
Construct a PropertyName from the three independent parts, a local name, a prefix and a namespace.

Parameters:
localName - A string representing the local name of the property
prefix - A string representing the prefix for the property name
namespaceURI - A string representing a valid namespace uri

PropertyName

public PropertyName(Element propElement)
Construct a PropertyName from an XML element that represents the property.

Parameters:
propElement - An XML property element

PropertyName

public PropertyName(String name)
Construct a PropertyName from a string representing the property name. The string might have an embedded namespace - in this case the string has the format "{namespace}localname" and a prefix is generated for the PropertyName.

Parameters:
name - A string representation of the property name
Method Detail

getLocalName

public String getLocalName()
Get the local name of the property.

Returns:
String The local name of the property

getPrefix

public String getPrefix()
Get the prefix defined for the property.

Returns:
String The prefix defined for the property

getNamespaceURI

public String getNamespaceURI()
Get the namepsace associated with the property name.

Returns:
String The namepsace associated with the property

toString

public String toString()
Convert the property name to an XML string representing the property name element using the format <prefix:localname xmlns:prefix="namespaceuri"/>.

Overrides:
toString in class Object
Returns:
String String XML representation of the property name element

***  This API provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:04