|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.iss.objects.AttributeMappingId
public class AttributeMappingId
This is a representation of an attribute mapping identifier, as described in the article "Finding ID Attributes in XML Documents". It contains the element and attribute names. This representation follows the immutable object design pattern.
Constructor Summary | |
---|---|
AttributeMappingId(String element,
String attribute)
Full constructor. |
Method Summary | |
---|---|
int |
compareTo(AttributeMappingId o)
|
boolean |
equals(Object obj)
Two attribute mapping IDs are equal iff their element and attribute names are equal (case sensitive). |
String |
getAttribute()
|
String |
getElement()
|
int |
hashCode()
|
boolean |
isType(String type)
Checks whether this object represents an attribute mapping of the specified type (whether the element has the speficied name). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeMappingId(String element, String attribute)
element
- Element name.attribute
- Attribute name.Method Detail |
---|
public String getElement()
public boolean isType(String type)
type
- Type to check.
true
if this mapping is of the specified type,
false
otherwise.public String getAttribute()
public boolean equals(Object obj)
equals
in class Object
obj
- Other object to check equality.
true
if the other object is AttributeMappingId
and its element and attribute names are equal to ones in this mapping,
false otherwise.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int compareTo(AttributeMappingId o)
compareTo
in interface Comparable<AttributeMappingId>
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |