|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.tools.cm.Utils
public class Utils
Static utilities.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
checkAttributeNames(org.w3c.dom.Element el,
java.lang.String[] vals)
Checks attribute names for a parameter file element. |
static void |
checkNoAttributes(org.w3c.dom.Element el)
Checks that a parameter file element has no attributes. |
static void |
checkNoChildren(org.w3c.dom.Element el)
Checks that a parameter file element has no children. |
static void |
paramErr(java.lang.String msg)
Issues a fatal parameter file parsing error message and exits. |
static boolean |
parseBooleanAttribute(org.w3c.dom.Element el,
java.lang.String name,
boolean def)
Parses a boolean attribute for a parameter file element. |
static int |
parseIntegerAttribute(org.w3c.dom.Element el,
java.lang.String name,
int def)
Parses an integer attribute for a parameter file element. |
static void |
writeTaggingData(XMLWriter out)
Writes WordHoard tagging data flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static void paramErr(java.lang.String msg)
msg
- Message. public static void checkAttributeNames(org.w3c.dom.Element el, java.lang.String[] vals)
el
- Element.vals
- Array of legal values. public static void checkNoAttributes(org.w3c.dom.Element el)
el
- Element public static void checkNoChildren(org.w3c.dom.Element el)
el
- Element public static boolean parseBooleanAttribute(org.w3c.dom.Element el, java.lang.String name, boolean def)
el
- Element.name
- Attribute name.def
- Default value.
public static int parseIntegerAttribute(org.w3c.dom.Element el, java.lang.String name, int def)
el
- Element.name
- Attribute name.def
- Default value.
public static void writeTaggingData(XMLWriter out)
out
- WordHoard XML output file writer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |