jInfer

cz.cuni.mff.ksi.jinfer.base.objects.nodes
Class Attribute

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.base.objects.nodes.AbstractNamedNode
      extended by cz.cuni.mff.ksi.jinfer.base.objects.nodes.Attribute
All Implemented Interfaces:
ContentNode, NamedNode

public class Attribute
extends AbstractNamedNode
implements ContentNode

Class representing a XML attribute.


Field Summary
 
Fields inherited from class cz.cuni.mff.ksi.jinfer.base.objects.nodes.AbstractNamedNode
mutable
 
Constructor Summary
Attribute(List<String> context, String name, Map<String,Object> metadata, String contentType, List<String> content)
          Public constructor, create attribute given all members (immutable).
 
Method Summary
 List<String> getContent()
          General way o describing content of node.
 String getContentType()
          General way o describing content of node.
 String toString()
           
 
Methods inherited from class cz.cuni.mff.ksi.jinfer.base.objects.nodes.AbstractNamedNode
getContext, getMetadata, getName, isMutable, setImmutable, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.mff.ksi.jinfer.base.interfaces.nodes.NamedNode
getContext, getMetadata, getName
 

Constructor Detail

Attribute

public Attribute(List<String> context,
                 String name,
                 Map<String,Object> metadata,
                 String contentType,
                 List<String> content)
Public constructor, create attribute given all members (immutable).

Parameters:
context - context of the node in XML document (if any)
name - name of the node
metadata - any metadata associated with the node
contentType - type of content of attribute
content - content of attribute
Method Detail

getContentType

public String getContentType()
Description copied from interface: ContentNode
General way o describing content of node. Reserved for further extensibility by content analyzing module developers.

Specified by:
getContentType in interface ContentNode
Returns:
future developer defined name of content type.

getContent

public List<String> getContent()
Description copied from interface: ContentNode
General way o describing content of node. Reserved for further extensibility by content analyzing module developers. At initial crawling, each content node may have only one element in this list. Inferrence methods can take advantage of list by groups similar contents to one node.

Specified by:
getContent in interface ContentNode
Returns:
list of strings - content assigned to this node.

toString

public String toString()
Overrides:
toString in class AbstractNamedNode

jInfer

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