|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
public static final PropertyName DAV_RESOURCETYPE_PN
public static final PropertyName DAV_ACL_PN
Constructor Detail |
---|
public PropertyName()
public PropertyName(org.apache.webdav.lib.Property p)
p
- A Property objectpublic PropertyName(java.lang.String localName, java.lang.String prefix, java.lang.String namespaceURI)
localName
- A string representing the local name of the propertyprefix
- A string representing the prefix for the property namenamespaceURI
- A string representing a valid namespace uripublic PropertyName(org.w3c.dom.Element propElement)
propElement
- An XML property elementpublic PropertyName(java.lang.String name)
name
- A string representation of the property nameMethod Detail |
---|
public java.lang.String getLocalName()
public java.lang.String getPrefix()
public java.lang.String getNamespaceURI()
public java.lang.String toString()
<prefix:localname xmlns:prefix="namespaceuri"/>.
- Overrides:
toString
in class java.lang.Object
- Returns:
- String String XML representation of the property name element
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |