org.apache.any23.extractor.xpath
Class TemplateObject

java.lang.Object
  extended by org.apache.any23.extractor.xpath.Term
      extended by org.apache.any23.extractor.xpath.TemplateObject

public class TemplateObject
extends Term

Represents a Quad object template.

Author:
Michele Mostarda (mostarda@fbk.eu)

Nested Class Summary
static class TemplateObject.Type
          Supported object types.
 
Constructor Summary
TemplateObject(TemplateObject.Type type, String value, boolean isVar)
          Constructor.
 
Method Summary
protected  org.openrdf.model.Value getValueInternal(String value)
           
 String toString()
           
 
Methods inherited from class org.apache.any23.extractor.xpath.Term
getInternalValue, getValue, isVar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateObject

public TemplateObject(TemplateObject.Type type,
                      String value,
                      boolean isVar)
Constructor.

Parameters:
type - object template type.
value - internal value.
isVar - if true it the given value will be resolved with the variable value.
Method Detail

getValueInternal

protected org.openrdf.model.Value getValueInternal(String value)
Specified by:
getValueInternal in class Term

toString

public String toString()
Overrides:
toString in class Term


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.