jInfer

cz.cuni.mff.ksi.jinfer.iss.objects
Class AttributeMapping

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.iss.objects.AttributeMapping

public class AttributeMapping
extends Object

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

AttributeMapping

public AttributeMapping(String element,
                        String attribute)
Minimal constructor. Image of this mapping will be created as empty.

Parameters:
element - Element name.
attribute - Attribute name.

AttributeMapping

public AttributeMapping(AttributeMappingId id)
Minimal constructor. Image of this mapping will be created as empty.

Parameters:
id - Identifier of this mapping.

AttributeMapping

public AttributeMapping(String element,
                        String attribute,
                        List<String> image)
Full constructor.

Parameters:
element - Element name.
attribute - Attribute name.
image - Attribute mapping image.

AttributeMapping

public AttributeMapping(AttributeMappingId id,
                        List<String> image)
Full constructor.

Parameters:
id - Identifier of this mapping.
image - Attribute mapping image.
Method Detail

getId

public AttributeMappingId getId()

getElement

public String getElement()

getAttribute

public String getAttribute()

getImage

public List<String> getImage()

size

public int size()
Returns the size of the image of this mapping.

Returns:
Size of the image of this mapping, which is the number of all values this mapping has.

toString

public String toString()
Overrides:
toString in class Object

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011