cz.cuni.mff.ksi.jinfer.base.objects.nodes
Class Attribute
java.lang.Object
cz.cuni.mff.ksi.jinfer.base.objects.nodes.AbstractNamedNode
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.
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 nodemetadata
- any metadata associated with the nodecontentType
- type of content of attributecontent
- content of attribute
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
Generated on Fri Dec 9 00:01:25 CET 2011