Package org.alfresco.repo.webdav
Class WebDAVProperty
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVProperty
-
public class WebDAVProperty extends Object
Class to represent a WebDAV property- Author:
- gavinc
-
-
Constructor Summary
Constructors Constructor Description WebDAVProperty(String strName)Constructs a WebDAVProperty with the default namespace detailsWebDAVProperty(String strName, String strNamespaceUri, String strNamespaceName)Constructs a WebDAVPropertyWebDAVProperty(String strName, String strNamespaceUri, String strNamespaceName, String strValue)Constructs a WebDAVProperty
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamecreateQName()Creates QName of the propertyStringgetName()Returns the name of the propertyStringgetNamespaceName()Returns the namespace name for this propertyStringgetNamespaceUri()Returns the namespace URI for this propertyStringgetValue()Returns the value of this propertybooleanhasNamespaceName()Determine if the property has a namespacebooleanisProtected()Returns true if property is protected according to the WebDav specificationvoidsetValue(String strValue)Sets the property's valueStringtoString()Return the property as a string
-
-
-
Constructor Detail
-
WebDAVProperty
public WebDAVProperty(String strName, String strNamespaceUri, String strNamespaceName, String strValue)
Constructs a WebDAVProperty- Parameters:
strName- StringstrNamespaceUri- StringstrNamespaceName- StringstrValue- String
-
WebDAVProperty
public WebDAVProperty(String strName, String strNamespaceUri, String strNamespaceName)
Constructs a WebDAVProperty- Parameters:
strName- StringstrNamespaceUri- StringstrNamespaceName- String
-
WebDAVProperty
public WebDAVProperty(String strName)
Constructs a WebDAVProperty with the default namespace details- Parameters:
strName- String
-
-
Method Detail
-
getName
public String getName()
Returns the name of the property- Returns:
- The name of the property
-
getNamespaceUri
public String getNamespaceUri()
Returns the namespace URI for this property- Returns:
- The namespace URI for this property
-
hasNamespaceName
public final boolean hasNamespaceName()
Determine if the property has a namespace- Returns:
- boolean
-
getNamespaceName
public String getNamespaceName()
Returns the namespace name for this property- Returns:
- The namespace name for this property
-
getValue
public String getValue()
Returns the value of this property- Returns:
- The value of this property
-
setValue
public void setValue(String strValue)
Sets the property's value- Parameters:
strValue- The new value
-
createQName
public QName createQName()
Creates QName of the property- Returns:
- QName
-
isProtected
public boolean isProtected()
Returns true if property is protected according to the WebDav specification- Returns:
- boolean
-
-