org.apache.slide.common
Class PropertyName

java.lang.Object
  extended byorg.apache.slide.common.PropertyName

public class PropertyName
extends java.lang.Object

This class is a container for the name and namespace of a property.

Version:
$Revision: 1.6 $

Field Summary
static PropertyName CONTENT_LANGUAGE
           
static PropertyName CONTENT_LENGTH
           
static PropertyName CONTENT_TYPE
           
static PropertyName CREATION_DATE
           
static PropertyName CREATION_USER
           
static PropertyName DISPLAY_NAME
           
static PropertyName ETAG
           
static PropertyName LAST_MODIFIED
           
static PropertyName MODIFICATION_DATE
           
static PropertyName MODIFICATION_USER
           
protected  java.lang.String name
          The name of the Property.
protected  java.lang.String namespace
          The namespace of the Property.
static PropertyName OWNER
           
static PropertyName REDIRECT_LIFETIME
           
static PropertyName REFTARGET
           
static PropertyName RESOURCE_TYPE
           
static PropertyName SOURCE
           
 
Constructor Summary
PropertyName(java.lang.String name)
          Deprecated. use getPropertyName(String, String)
PropertyName(java.lang.String name, java.lang.String namespace)
          Deprecated. use getPropertyName(String, String)
 
Method Summary
 boolean equals(java.lang.Object other)
          Returns true if other is a PropertyName and the name and namespace are equal to this intance' name and namespace.
 java.lang.String getName()
          Returns the name of the property.
 java.lang.String getNamespace()
          Returns the namespace of the property.
static PropertyName getPropertyName(java.lang.String name)
          Factory method.
static PropertyName getPropertyName(java.lang.String name, java.lang.String namespace)
          Factory method.
 int hashCode()
          Returns the hash code of this instance.
 java.lang.String toString()
          Returns a String representation of the PropertyName.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTENT_LANGUAGE

public static final PropertyName CONTENT_LANGUAGE

CONTENT_LENGTH

public static final PropertyName CONTENT_LENGTH

CONTENT_TYPE

public static final PropertyName CONTENT_TYPE

CREATION_DATE

public static final PropertyName CREATION_DATE

CREATION_USER

public static final PropertyName CREATION_USER

DISPLAY_NAME

public static final PropertyName DISPLAY_NAME

ETAG

public static final PropertyName ETAG

LAST_MODIFIED

public static final PropertyName LAST_MODIFIED

MODIFICATION_DATE

public static final PropertyName MODIFICATION_DATE

MODIFICATION_USER

public static final PropertyName MODIFICATION_USER

OWNER

public static final PropertyName OWNER

RESOURCE_TYPE

public static final PropertyName RESOURCE_TYPE

SOURCE

public static final PropertyName SOURCE

REDIRECT_LIFETIME

public static final PropertyName REDIRECT_LIFETIME

REFTARGET

public static final PropertyName REFTARGET

name

protected java.lang.String name
The name of the Property.


namespace

protected java.lang.String namespace
The namespace of the Property.

Constructor Detail

PropertyName

public PropertyName(java.lang.String name)
Deprecated. use getPropertyName(String, String)

Creates a PropertyName within the default namespace.

Parameters:
name - the name of the Property.

PropertyName

public PropertyName(java.lang.String name,
                    java.lang.String namespace)
Deprecated. use getPropertyName(String, String)

Creates a PropertyName.

Parameters:
name - the name of the Property.
namespace - the namespace of the Property.
Method Detail

getPropertyName

public static PropertyName getPropertyName(java.lang.String name,
                                           java.lang.String namespace)
Factory method.

Parameters:
name - the properties name
namespace - the properties namespace
Returns:
a property name object

getPropertyName

public static PropertyName getPropertyName(java.lang.String name)
Factory method. Creates a property name with the default DAV: namespace.

Parameters:
name - the properties name
Returns:
a property name object

getName

public java.lang.String getName()
Returns the name of the property.

Returns:
the name of the property.

getNamespace

public java.lang.String getNamespace()
Returns the namespace of the property.

Returns:
the namespace of the property.

equals

public boolean equals(java.lang.Object other)
Returns true if other is a PropertyName and the name and namespace are equal to this intance' name and namespace.

Parameters:
other - the Object to test for equality.
Returns:
true if the object is equal to this one.

hashCode

public int hashCode()
Returns the hash code of this instance. Due to definition equal objects must have the same hash code.

Returns:
the hash code of this instance.

toString

public java.lang.String toString()
Returns a String representation of the PropertyName.

Returns:
a String representation of the PropertyName.