org.sapia.archie.impl
Class AttributeNamePart

java.lang.Object
  extended by org.sapia.archie.impl.AttributeNamePart
All Implemented Interfaces:
java.io.Serializable, NamePart

public class AttributeNamePart
extends java.lang.Object
implements NamePart

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
Serialized Form

Constructor Summary
AttributeNamePart()
           
 
Method Summary
 java.lang.String asString()
           
 boolean equals(java.lang.Object o)
           
 java.util.Properties getAttributes()
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean matches(AttributeNamePart other)
          Returns true if this instance's name is equal to the name of the instance passed in, AND if the passed in instance's attributes are also contained by this instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeNamePart

public AttributeNamePart()
Method Detail

getName

public java.lang.String getName()
Returns:
this instance's name (without the attributes).

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

matches

public boolean matches(AttributeNamePart other)
Returns true if this instance's name is equal to the name of the instance passed in, AND if the passed in instance's attributes are also contained by this instance.

Parameters:
other - the AttributeNamePart used to perform the test.
Returns:
true if this instance "matches" the passed in instance.

getAttributes

public java.util.Properties getAttributes()
Returns:
this instance's attributes.

asString

public java.lang.String asString()
Specified by:
asString in interface NamePart
Returns:
this instance as a string that can be parsed by the appropriate NameParser.
See Also:
NamePart.asString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Sapia OSS. All Rights Reserved.