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

com.sas.services.webdav
Class PropertyName

com.sas.services.webdav.PropertyName

public class PropertyName

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.


Field Summary
static PropertyName DAV_ACL_PN
           
static PropertyName DAV_RESOURCETYPE_PN
           
 
Constructor Summary
PropertyName()
           
PropertyName(org.w3c.dom.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(java.lang.String name)
          Construct a PropertyName from a string representing the property name.
PropertyName(java.lang.String localName, java.lang.String prefix, java.lang.String namespaceURI)
          Construct a PropertyName from the three independent parts, a local name, a prefix and a namespace.
 
Method Summary
 java.lang.String getLocalName()
          Get the local name of the property.
 java.lang.String getNamespaceURI()
          Get the namepsace associated with the property name.
 java.lang.String getPrefix()
          Get the prefix defined for the property.
 java.lang.String toString()
          Convert the property name to an XML string representing the property name element using the format <prefix:localname xmlns:prefix="namespaceuri"/>.
 

Field Detail

DAV_RESOURCETYPE_PN

public static final PropertyName DAV_RESOURCETYPE_PN

DAV_ACL_PN

public static final PropertyName DAV_ACL_PN
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(java.lang.String localName,
                    java.lang.String prefix,
                    java.lang.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(org.w3c.dom.Element propElement)
Construct a PropertyName from an XML element that represents the property.

Parameters:
propElement - An XML property element

PropertyName

public PropertyName(java.lang.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 java.lang.String getLocalName()
Get the local name of the property.

Returns:
String The local name of the property

getPrefix

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

Returns:
String The prefix defined for the property

getNamespaceURI

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

Returns:
String The namepsace associated with the property

toString

public java.lang.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 java.lang.Object
Returns:
String String XML representation of the property name element

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




Copyright © 2009 SAS Institute Inc. All Rights Reserved.