com.faunos.util.xml
Class LinkSequenceHandler.TypedLink

java.lang.Object
  extended by com.faunos.util.xml.LinkSequenceHandler.TypedLink
Enclosing class:
LinkSequenceHandler

public static class LinkSequenceHandler.TypedLink
extends Object


Constructor Summary
protected LinkSequenceHandler.TypedLink(String type, String uri)
          Creates a new instance with the given non-null arguments.
 
Method Summary
 boolean equals(Object o)
          Determines if this instance is equal to another object.
 String getType()
          Returns the local name of the element.
 String getUri()
          Returns the link URI.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkSequenceHandler.TypedLink

protected LinkSequenceHandler.TypedLink(String type,
                                        String uri)
Creates a new instance with the given non-null arguments. Subclasses must guard against null arguments, if exposing a public constructor.

Parameters:
type - the local name of the element
uri - the link URI
Method Detail

getUri

public final String getUri()
Returns the link URI.


getType

public final String getType()
Returns the local name of the element. This specifies the anchor type. Of note, is the "base" element for HTML documents.


equals

public final boolean equals(Object o)
Determines if this instance is equal to another object. 2 instances are considered equal if they have both the same uri and type.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


SourceForge.net Logo