Package org.alfresco.repo.webdav
Class WebDAVProperty
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVProperty
-
public class WebDAVProperty extends java.lang.Object
Class to represent a WebDAV property- Author:
- gavinc
-
-
Constructor Summary
Constructors Constructor Description WebDAVProperty(java.lang.String strName)
Constructs a WebDAVProperty with the default namespace detailsWebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName)
Constructs a WebDAVPropertyWebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName, java.lang.String strValue)
Constructs a WebDAVProperty
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.namespace.QName
createQName()
Creates QName of the propertyjava.lang.String
getName()
Returns the name of the propertyjava.lang.String
getNamespaceName()
Returns the namespace name for this propertyjava.lang.String
getNamespaceUri()
Returns the namespace URI for this propertyjava.lang.String
getValue()
Returns the value of this propertyboolean
hasNamespaceName()
Determine if the property has a namespaceboolean
isProtected()
Returns true if property is protected according to the WebDav specificationvoid
setValue(java.lang.String strValue)
Sets the property's valuejava.lang.String
toString()
Return the property as a string
-
-
-
Constructor Detail
-
WebDAVProperty
public WebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName, java.lang.String strValue)
Constructs a WebDAVProperty- Parameters:
strName
- StringstrNamespaceUri
- StringstrNamespaceName
- StringstrValue
- String
-
WebDAVProperty
public WebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName)
Constructs a WebDAVProperty- Parameters:
strName
- StringstrNamespaceUri
- StringstrNamespaceName
- String
-
WebDAVProperty
public WebDAVProperty(java.lang.String strName)
Constructs a WebDAVProperty with the default namespace details- Parameters:
strName
- String
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the property- Returns:
- The name of the property
-
getNamespaceUri
public java.lang.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 java.lang.String getNamespaceName()
Returns the namespace name for this property- Returns:
- The namespace name for this property
-
getValue
public java.lang.String getValue()
Returns the value of this property- Returns:
- The value of this property
-
setValue
public void setValue(java.lang.String strValue)
Sets the property's value- Parameters:
strValue
- The new value
-
createQName
public org.alfresco.service.namespace.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
-
toString
public java.lang.String toString()
Return the property as a string- Overrides:
toString
in classjava.lang.Object
- Returns:
- String
-
-