public class DAXParser3 extends StackBasedXMLParser implements DAXParser
Modifier and Type | Class and Description |
---|---|
private class |
DAXParser3.Arguments
Private class to handle mix data content for arguments tags.
|
Modifier and Type | Field and Description |
---|---|
static long |
DAX_VERSION_3_2_0 |
static long |
DAX_VERSION_3_3_0 |
private java.lang.String |
DEFAULT_METADATA_TYPE
Constant denoting default metadata type
|
protected Callback |
mCallback
Handle to the callback
|
protected java.lang.String |
mJobPrefix
A job prefix specifed at command line.
|
protected java.util.List<PCRelation> |
mParents
List of parents for a child node in the graph
|
static java.lang.String |
SCHEMA_LOCATION
The "not-so-official" location URL of the Site Catalog Schema.
|
static java.lang.String |
SCHEMA_NAMESPACE
uri namespace
|
static java.lang.String |
UNDEFINED_SITE
Constant denoting an undefined site
|
mDepth, mParsingDone, mStack
DEFAULT_PARSER_NAME, mAdjFName, mLocator, mLogger, mLogMsg, mParser, mProps, mTextContent, mTextString
Constructor and Description |
---|
DAXParser3(PegasusBag bag)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
constructJobID(Job j)
Returns the id for a job
|
java.util.List<TransformationCatalogEntry> |
convertExecutableToTCE(Executable executable)
Converts the executable into transformation catalog entries
|
java.lang.Object |
createObject(java.lang.String element,
java.util.List names,
java.util.List values)
Composes the
SiteData object corresponding to the element
name in the XML document. |
Callback |
getDAXCallback()
Retuns the DAXCallback for the parser
|
java.lang.String |
getSchemaLocation()
Returns the local path to the XML schema against which to validate.
|
java.lang.String |
getSchemaNamespace()
Returns the XML schema namespace that a document being parsed conforms
to.
|
static void |
main(java.lang.String[] args) |
protected void |
sanityCheckOnVersion(java.lang.String version)
Sanity check on the version that this parser works on.
|
void |
setDAXCallback(Callback c)
Set the DAXCallback for the parser to call out to.
|
boolean |
setElementRelation(java.lang.String childElement,
java.lang.Object parent,
java.lang.Object child)
This method sets the relations between the currently finished XML
element(child) and its containing element in terms of Java objects.
|
void |
startParser(java.lang.String file)
The main method that starts the parsing.
|
attributeNotSupported, complain, endDocument, endElement, log, startElement, unSupportedNestingOfElements
characters, ignoreWhitespace, ignoreWhitespace, setDocumentLocator, setParserFeature, setSchemaLocations, testForFile
public static final java.lang.String SCHEMA_LOCATION
public static final java.lang.String SCHEMA_NAMESPACE
public static final java.lang.String UNDEFINED_SITE
public static final long DAX_VERSION_3_2_0
public static final long DAX_VERSION_3_3_0
private java.lang.String DEFAULT_METADATA_TYPE
protected java.util.List<PCRelation> mParents
protected Callback mCallback
protected java.lang.String mJobPrefix
public DAXParser3(PegasusBag bag)
properties
- the PegasusProperties
to be used.public void setDAXCallback(Callback c)
setDAXCallback
in interface DAXParser
c
- the callbackpublic Callback getDAXCallback()
getDAXCallback
in interface DAXParser
public void startParser(java.lang.String file)
startParser
in class Parser
file
- the XML file to be parsed.public java.lang.String getSchemaNamespace()
getSchemaNamespace
in class Parser
public java.lang.String getSchemaLocation()
getSchemaLocation
in class Parser
public java.lang.Object createObject(java.lang.String element, java.util.List names, java.util.List values)
SiteData
object corresponding to the element
name in the XML document.createObject
in class StackBasedXMLParser
element
- the element name encountered while parsing.names
- is a list of attribute names, as strings.values
- is a list of attribute values, to match the key list.java.lang.IllegalArgumentException
- if the element name is too short.public boolean setElementRelation(java.lang.String childElement, java.lang.Object parent, java.lang.Object child)
setElementRelation
in class StackBasedXMLParser
childElement
- name is the the child element nameparent
- is a reference to the parent's Java objectchild
- is the completed child object to connect to the parentpublic java.util.List<TransformationCatalogEntry> convertExecutableToTCE(Executable executable)
executable
- executable objectprotected java.lang.String constructJobID(Job j)
j
- the jobprotected void sanityCheckOnVersion(java.lang.String version)
version
- the version as specified in the DAXpublic static void main(java.lang.String[] args)
args
-