Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.slide.common
Class PropertyName  view PropertyName download PropertyName.java

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.3 $

Field Summary
protected  java.lang.String name
          The name of the Property.
protected  java.lang.String namespace
          The namespace of the Property.
 
Constructor Summary
PropertyName(java.lang.String name)
          Creates a PropertyName within the default namespace 55 .
PropertyName(java.lang.String name, java.lang.String namespace)
          Creates a PropertyName.
 
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.
 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

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)
Creates a PropertyName within the default namespace 55 .


PropertyName

public PropertyName(java.lang.String name,
                    java.lang.String namespace)
Creates a PropertyName.

Method Detail

getName

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


getNamespace

public java.lang.String getNamespace()
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.


hashCode

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


toString

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