|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fau.cs.www8.jadeowlcodec.tool.Helper
public class Helper
| Nested Class Summary | |
|---|---|
static class |
Helper.KeyValue<K,V>
Helper class for addRelation method |
static class |
Helper.SimpleIterator<T>
Base class for a simple Iterator that does not support removal |
| Field Summary | |
|---|---|
static java.lang.String |
OWL_NS
|
static java.lang.String |
OWL_THING
|
| Constructor Summary | |
|---|---|
Helper()
|
|
| Method Summary | ||
|---|---|---|
static java.lang.Iterable<Helper.KeyValue<java.lang.String,java.lang.String>> |
attributeIterableBlackList(org.w3c.dom.Element e,
java.lang.String[] blackList)
get an Iterator over all the attributes whose name is not in the given blacklist |
|
static jade.lang.acl.ACLMessage |
createOWLCodecACLMessage(int performative)
|
|
static java.lang.String |
dumpNode(org.w3c.dom.Node doc)
|
|
static byte[] |
dumpNodeByteArray(org.w3c.dom.Node doc)
|
|
static java.lang.Iterable<org.w3c.dom.Element> |
elementIterable(org.w3c.dom.Element e)
get an Iterator over all the (direct) child elements of a DOM Element |
|
static java.lang.Iterable<org.w3c.dom.Element> |
elementIterable(org.w3c.dom.Element e,
java.lang.String tagName)
get an Iterator over all the (direct) child elements with a given tagname of a DOM Element |
|
static java.lang.Iterable<org.w3c.dom.Element> |
elementIterableBlackList(org.w3c.dom.Element e,
java.lang.String[] blackList)
get an Iterator over all the (direct) child elements whose tagname is not in the given blacklist |
|
static java.lang.Iterable<org.w3c.dom.Element> |
elementIterableWhiteList(org.w3c.dom.Element e,
java.lang.String[] whiteList)
get an Iterator over all the (direct) child elements whose tagname is in the given whitelist |
|
static java.util.LinkedList<org.w3c.dom.Element> |
getElementsByTagName(org.w3c.dom.Element e,
java.lang.String name,
boolean recurse)
|
|
static java.util.LinkedList<org.w3c.dom.Element> |
getElementsByTagNameFirstLevel(org.w3c.dom.Element e,
java.lang.String name)
|
|
static java.util.LinkedList<org.w3c.dom.Element> |
getElementsByTagNameRecursive(org.w3c.dom.Element e,
java.lang.String name)
|
|
static org.w3c.dom.Element |
getEnclosingElement(org.w3c.dom.Node n,
java.util.Collection<java.lang.String> tagNames)
|
|
static org.w3c.dom.Element |
getEnclosingElement(org.w3c.dom.Node n,
java.lang.String tagName)
|
|
static org.w3c.dom.Element |
getFirstContainedElement(org.w3c.dom.Node root,
java.lang.String tagName)
|
|
static java.lang.String |
getFullNameFromAttributes(org.w3c.dom.Element e)
|
|
static java.lang.String |
getIndentation(int indentation)
|
|
static java.lang.String |
getOWLCodecBasePackackeName()
|
|
static Uri.Other |
getOWLCodecBaseURI()
|
|
static org.w3c.dom.Element |
getParentElement(org.w3c.dom.Node n)
|
|
static
|
getUniqueIn(T desiredName,
java.util.Set<T> existingSet)
find a name based on desiredName that is unique within existingSet type T can be anything that has a working toString |
|
static java.lang.String |
manuallyDumpElement(org.w3c.dom.Element e)
dump an element to string using a crude, dumbed down internal serialization method useful for getting subtrees |
|
static void |
manuallyDumpElement(org.w3c.dom.Element e,
java.io.StringWriter sw,
int indent)
|
|
static java.lang.String |
mnemonicFromUri(Uri uri)
|
|
static org.w3c.dom.Node |
nextElementSibling(org.w3c.dom.Node n)
find the next sibling of n that is a Node.ELEMENT_NODE |
|
static java.lang.String |
tabText(java.lang.String s)
Add n*'\t' before every line, for better debug output |
|
static java.lang.String |
tabText(java.lang.String s,
int n)
Add n*'\t' before every line, for better debug output |
|
static int |
tryParseInputInt(java.io.BufferedReader buff)
|
|
static java.lang.String |
xmlEscape(java.lang.Object o)
escape string for containing it inside an xml attribute or elements |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OWL_NS
public static final java.lang.String OWL_THING
| Constructor Detail |
|---|
public Helper()
| Method Detail |
|---|
public static java.lang.String getIndentation(int indentation)
public static <T> java.lang.String getUniqueIn(T desiredName,
java.util.Set<T> existingSet)
desiredName - a name that might already be takenexistingSet - set of names that are already taken
public static java.lang.String manuallyDumpElement(org.w3c.dom.Element e)
e -
public static void manuallyDumpElement(org.w3c.dom.Element e,
java.io.StringWriter sw,
int indent)
public static java.lang.String dumpNode(org.w3c.dom.Node doc)
public static byte[] dumpNodeByteArray(org.w3c.dom.Node doc)
public static java.lang.String mnemonicFromUri(Uri uri)
public static org.w3c.dom.Node nextElementSibling(org.w3c.dom.Node n)
n - node
public static org.w3c.dom.Element getParentElement(org.w3c.dom.Node n)
public static org.w3c.dom.Element getEnclosingElement(org.w3c.dom.Node n,
java.lang.String tagName)
public static org.w3c.dom.Element getEnclosingElement(org.w3c.dom.Node n,
java.util.Collection<java.lang.String> tagNames)
public static org.w3c.dom.Element getFirstContainedElement(org.w3c.dom.Node root,
java.lang.String tagName)
public static java.lang.String xmlEscape(java.lang.Object o)
public static java.util.LinkedList<org.w3c.dom.Element> getElementsByTagName(org.w3c.dom.Element e,
java.lang.String name,
boolean recurse)
public static java.util.LinkedList<org.w3c.dom.Element> getElementsByTagNameRecursive(org.w3c.dom.Element e,
java.lang.String name)
public static java.util.LinkedList<org.w3c.dom.Element> getElementsByTagNameFirstLevel(org.w3c.dom.Element e,
java.lang.String name)
public static jade.lang.acl.ACLMessage createOWLCodecACLMessage(int performative)
public static java.lang.String getFullNameFromAttributes(org.w3c.dom.Element e)
public static Uri.Other getOWLCodecBaseURI()
public static java.lang.String getOWLCodecBasePackackeName()
public static java.lang.Iterable<org.w3c.dom.Element> elementIterable(org.w3c.dom.Element e)
e - the Element whose children will be iterated
public static java.lang.Iterable<org.w3c.dom.Element> elementIterable(org.w3c.dom.Element e,
java.lang.String tagName)
e - the Element whose children will be iteratedtagName - the name of the child Elements that will be iterated
public static java.lang.Iterable<org.w3c.dom.Element> elementIterableWhiteList(org.w3c.dom.Element e,
java.lang.String[] whiteList)
e - the Element whose children will be iteratedwhiteList - array containing the child Element tagnames that will be iterated over
public static java.lang.Iterable<org.w3c.dom.Element> elementIterableBlackList(org.w3c.dom.Element e,
java.lang.String[] blackList)
e - the Element whose children will be iteratedblackList - array containing the child Element tagnames that will not be iterated over
public static java.lang.String tabText(java.lang.String s)
s - String to tab
public static java.lang.String tabText(java.lang.String s,
int n)
s - String to tab
public static java.lang.Iterable<Helper.KeyValue<java.lang.String,java.lang.String>> attributeIterableBlackList(org.w3c.dom.Element e,
java.lang.String[] blackList)
e - the Element whose attibutes will be iteratedblackList - array containing the attribute names that will not be iterated over
public static int tryParseInputInt(java.io.BufferedReader buff)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg