|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.ucalgary.seahawk.services.MobyComplexBuilder
public class MobyComplexBuilder
Class used by MobyClient to build the MOBY rule database from a configuration file.
Field Summary | |
---|---|
static String |
ANON_ARTICLE
|
static String |
INHERITED_MEMBERS_SENTINEL
|
static String |
PRIMITIVE_VALUE_SENTINEL
|
Constructor Summary | |
---|---|
MobyComplexBuilder(String dataType,
Map<String,String[]> members,
Map<String,String> nameSpaces,
MobyClient cl)
|
|
MobyComplexBuilder(String dataType,
Map<String,String[]> members,
Map<String,String> nameSpaces,
MobyClient cl,
String articleName)
|
Method Summary | |
---|---|
MobyDataObject |
apply(Matcher matcher)
|
MobyDataObject |
apply(Matcher matcher,
byte[] data)
|
MobyDataObject |
applyXPath(Object result,
NamespaceContext nsContext)
|
String[] |
evaluateIterativeRule(Matcher matcher,
String result,
String whitespaceMode,
String encodingMode,
byte[] data)
|
MobyDataType |
getDataType()
Reports the data type of the objects returned by matched rules. |
MobyNamespace[] |
getNamespaces()
Reports the possible namespaces of the objects returned by matched rules. |
String |
getURN()
Reports the URN identifying the rule, or null if it doesn't exist. |
int |
requiredXPathContext()
Call to find out if the result will be a String or NodeList, etc if there's an XPath. |
void |
setURN(String urn)
Call in order to provide a unique ID for the rule, for reuse purposes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ANON_ARTICLE
public static final String INHERITED_MEMBERS_SENTINEL
public static final String PRIMITIVE_VALUE_SENTINEL
Constructor Detail |
---|
public MobyComplexBuilder(String dataType, Map<String,String[]> members, Map<String,String> nameSpaces, MobyClient cl) throws Exception
Exception
public MobyComplexBuilder(String dataType, Map<String,String[]> members, Map<String,String> nameSpaces, MobyClient cl, String articleName) throws Exception
Exception
Method Detail |
---|
public MobyDataObject apply(Matcher matcher) throws MobyException
MobyException
public MobyDataObject apply(Matcher matcher, byte[] data) throws MobyException
MobyException
public String[] evaluateIterativeRule(Matcher matcher, String result, String whitespaceMode, String encodingMode, byte[] data) throws MobyException, Exception
MobyException
Exception
public MobyDataObject applyXPath(Object result, NamespaceContext nsContext) throws MobyException, XPathExpressionException
MobyException
XPathExpressionException
public MobyDataType getDataType()
public MobyNamespace[] getNamespaces()
public String getURN()
public void setURN(String urn)
public int requiredXPathContext()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |