|
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.AttributeMapping
public class AttributeMapping
This is a representation of an attribute mapping, as described in the article "Finding ID Attributes in XML Documents". It contains the mapping itself (element and attribute name), as well as its image (all values the attribute under the element ever has). Note that the image is stored as a list (not a set), thus duplicate values are all stored.
Constructor Summary | |
---|---|
AttributeMapping(AttributeMappingId id)
Minimal constructor. |
|
AttributeMapping(AttributeMappingId id,
List<String> image)
Full constructor. |
|
AttributeMapping(String element,
String attribute)
Minimal constructor. |
|
AttributeMapping(String element,
String attribute,
List<String> image)
Full constructor. |
Method Summary | |
---|---|
String |
getAttribute()
|
String |
getElement()
|
AttributeMappingId |
getId()
|
List<String> |
getImage()
|
int |
size()
Returns the size of the image of this mapping. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeMapping(String element, String attribute)
element
- Element name.attribute
- Attribute name.public AttributeMapping(AttributeMappingId id)
id
- Identifier of this mapping.public AttributeMapping(String element, String attribute, List<String> image)
element
- Element name.attribute
- Attribute name.image
- Attribute mapping image.public AttributeMapping(AttributeMappingId id, List<String> image)
id
- Identifier of this mapping.image
- Attribute mapping image.Method Detail |
---|
public AttributeMappingId getId()
public String getElement()
public String getAttribute()
public List<String> getImage()
public int size()
public String toString()
toString
in class Object
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |