gov.llnl.babel.parsers.xml
Class StringXML
java.lang.Object
gov.llnl.babel.parsers.xml.StringXML
public class StringXML
extends java.lang.Object
Class StringXML
is a simple utility class that converts
between symbol types (integers or enumerated identifiers) and symbol
strings. Invalid integer identifiers or string types will result in
exceptions or null return values.
static int | fromAssertionXML(String assertion) - Convert the assertion XML into its integer value.
|
static int | fromBinaryOpXML(String literal) - Convert the binary expression operator XML into its integer value.
|
static int | fromComXML(String modifier) - Convert the communication modifier XML into its integer value.
|
static int | fromDefXML(String modifier) - Conver the definition modifier XML into its integer value.
|
static int | fromModeXML(String mode) - Convert the argument XML mode string into an integer.
|
static int | fromOrderXML(String order) - Convert the array order XML into its integer value.
|
static int | fromSymbolXML(String symbol) - Convert the
Symbol XML type string into its integer type.
|
static int | fromTypeXML(String type) - Convert the
Type XML type string into its integer type.
|
static int | fromUnaryOpXML(String literal) - Convert the unary expression operator XML into its integer value.
|
static String | toAssertionXML(int assertion) - Convert the assertion integer into an XML string.
|
static String | toBinaryOpXML(int literal) - Convert the binary expression operator integer into an XML string.
|
static String | toComXML(int modifier) - Convert the communication modifier integer into an XML string.
|
static String | toDefXML(int modifier) - Convert the definition modifier integer into an XML string.
|
static String | toModeXML(int mode) - Convert the argument mode integer into an XML string.
|
static String | toOrderXML(int order) - Convert the array order integer into an XML string.
|
static String | toSymbolXML(int symbol) - Convert the
Symbol type integer into an XML string.
|
static String | toTypeXML(int type) - Convert the
Type type integer into an XML string.
|
static String | toUnaryOpXML(int literal) - Convert the unary expression operator integer into an XML string.
|
fromAssertionXML
public static int fromAssertionXML(String assertion)
throws ParseSymbolException
Convert the assertion XML into its integer value.
An exception is thrown if the string type is invalid.
fromBinaryOpXML
public static int fromBinaryOpXML(String literal)
throws ParseSymbolException
Convert the binary expression operator XML into its integer value.
An exception is thrown if the string type is invalid.
fromComXML
public static int fromComXML(String modifier)
throws ParseSymbolException
Convert the communication modifier XML into its integer value.
An exception is thrown if the string type is invalid.
fromDefXML
public static int fromDefXML(String modifier)
throws ParseSymbolException
Conver the definition modifier XML into its integer value.
An exception is thrown if the string type is invalid.
fromModeXML
public static int fromModeXML(String mode)
throws ParseSymbolException
Convert the argument XML mode string into an integer.
An exception is thrown if the string type is invalid.
fromOrderXML
public static int fromOrderXML(String order)
throws ParseSymbolException
Convert the array order XML into its integer value.
An exception is thrown if the string type is invalid.
fromSymbolXML
public static int fromSymbolXML(String symbol)
throws ParseSymbolException
Convert the Symbol
XML type string into its integer type.
An exception is thrown if the string type is invalid.
fromTypeXML
public static int fromTypeXML(String type)
throws ParseSymbolException
Convert the Type
XML type string into its integer type.
An exception is thrown if the string type is invalid.
fromUnaryOpXML
public static int fromUnaryOpXML(String literal)
throws ParseSymbolException
Convert the unary expression operator XML into its integer value.
An exception is thrown if the string type is invalid.
toAssertionXML
public static String toAssertionXML(int assertion)
Convert the assertion integer into an XML string.
A null string is returned if the integer is invalid.
toBinaryOpXML
public static String toBinaryOpXML(int literal)
Convert the binary expression operator integer into an XML string.
A null string is returned if the integer is invalid.
toComXML
public static String toComXML(int modifier)
Convert the communication modifier integer into an XML string.
A null string is returned if the integer type is invalid.
toDefXML
public static String toDefXML(int modifier)
Convert the definition modifier integer into an XML string.
A null string is returned if the integer type is invalid.
toModeXML
public static String toModeXML(int mode)
Convert the argument mode integer into an XML string.
A null string is returned if the integer type is invalid.
toOrderXML
public static String toOrderXML(int order)
Convert the array order integer into an XML string.
A null string is returned if the integer type is invalid.
toSymbolXML
public static String toSymbolXML(int symbol)
Convert the Symbol
type integer into an XML string.
A null string is returned if the integer type is invalid.
toTypeXML
public static String toTypeXML(int type)
Convert the Type
type integer into an XML string.
A null string is returned if the integer type is invalid.
toUnaryOpXML
public static String toUnaryOpXML(int literal)
Convert the unary expression operator integer into an XML string.
A null string is returned if the integer is invalid.