public class GoogleBaseParser extends java.lang.Object implements ModuleParser
Modifier and Type | Field and Description |
---|---|
static char[] |
FLOAT_CHARS |
static char[] |
INTEGER_CHARS |
private static org.slf4j.Logger |
LOG |
static java.text.SimpleDateFormat |
LONG_DT_FMT |
(package private) static org.jdom2.Namespace |
NS |
(package private) static java.util.List<PropertyDescriptor> |
pds |
(package private) static java.util.Properties |
PROPS2TAGS |
static java.text.SimpleDateFormat |
SHORT_DT_FMT |
Constructor and Description |
---|
GoogleBaseParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespaceUri()
Returns the namespace URI this parser handles.
|
private void |
handleTag(org.jdom2.Element tag,
PropertyDescriptor pd,
GoogleBase module) |
Module |
parse(org.jdom2.Element element,
java.util.Locale locale)
Parses the XML node (JDOM element) extracting module information.
|
static java.lang.String |
stripNonValidCharacters(char[] validCharacters,
java.lang.String input) |
private static final org.slf4j.Logger LOG
public static final char[] INTEGER_CHARS
public static final char[] FLOAT_CHARS
public static final java.text.SimpleDateFormat SHORT_DT_FMT
public static final java.text.SimpleDateFormat LONG_DT_FMT
static final org.jdom2.Namespace NS
static final java.util.Properties PROPS2TAGS
static java.util.List<PropertyDescriptor> pds
public Module parse(org.jdom2.Element element, java.util.Locale locale)
ModuleParser
parse
in interface ModuleParser
element
- the XML node (JDOM element) to extract module information from.public static java.lang.String stripNonValidCharacters(char[] validCharacters, java.lang.String input)
public java.lang.String getNamespaceUri()
ModuleParser
getNamespaceUri
in interface ModuleParser
private void handleTag(org.jdom2.Element tag, PropertyDescriptor pd, GoogleBase module) throws java.lang.Exception
java.lang.Exception