org.alfresco.repo.webdav
Class WebDAVProperty

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVProperty

public class WebDAVProperty
extends java.lang.Object

Class to represent a WebDAV property


Constructor Summary
WebDAVProperty(java.lang.String strName)
          Constructs a WebDAVProperty with the default namespace details
WebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName)
          Constructs a WebDAVProperty
WebDAVProperty(java.lang.String strName, java.lang.String strNamespaceUri, java.lang.String strNamespaceName, java.lang.String strValue)
          Constructs a WebDAVProperty
 
Method Summary
 org.alfresco.service.namespace.QName createQName()
          Creates QName of the property
 java.lang.String getName()
          Returns the name of the property
 java.lang.String getNamespaceName()
          Returns the namespace name for this property
 java.lang.String getNamespaceUri()
          Returns the namespace URI for this property
 java.lang.String getValue()
          Returns the value of this property
 boolean hasNamespaceName()
          Determine if the property has a namespace
 boolean isProtected()
          Returns true if property is protected according to the WebDav specification
 void setValue(java.lang.String strValue)
          Sets the property's value
 java.lang.String toString()
          Return the property as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 -
strNamespaceUri -
strNamespaceName -
strValue -

WebDAVProperty

public WebDAVProperty(java.lang.String strName,
                      java.lang.String strNamespaceUri,
                      java.lang.String strNamespaceName)
Constructs a WebDAVProperty

Parameters:
strName -
strNamespaceUri -
strNamespaceName -
strValue -

WebDAVProperty

public WebDAVProperty(java.lang.String strName)
Constructs a WebDAVProperty with the default namespace details

Parameters:
strName -
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 class java.lang.Object
Returns:
String


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.