MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.xdmio.xmlAdapters
Class XDMImportAdapter

java.lang.Object
  extended by ch.ethz.mxquery.model.Iterator
      extended by ch.ethz.mxquery.xdmio.xmlAdapters.XDMImportAdapter
All Implemented Interfaces:
Source, XDMIterator, Traversable, XMLSource
Direct Known Subclasses:
NonSchemaValidatingSaxImportAdapter, NonValidatingDOMAdapter, NonValidatingStaxAdapter, ValidatedSaxImportAdapter, XPPImportAdapter

public abstract class XDMImportAdapter
extends Iterator
implements XMLSource


Field Summary
 
Fields inherited from interface ch.ethz.mxquery.model.XDMIterator
EXPR_CATEGORY_SEQUENTIAL, EXPR_CATEGORY_SIMPLE, EXPR_CATEGORY_UPDATING, EXPR_CATEGORY_VACUOUS, EXPR_PARAM_CHEAPEVAL, EXPR_PARAM_VARIABLE, EXPR_PARAM_WINDOW, EXPR_PARAM_XDMGEN
 
Constructor Summary
XDMImportAdapter(Context ctx, QueryLocation loc)
           
 
Method Summary
 int compare(Source store)
           
 Source copySource(Context ctx, java.util.Vector nestedPredCtxStack)
           
 Window getIterator(Context ctx)
          Returns Iterator that points on the first token in the store.
 java.lang.String getPublicID()
          Provides access to the DTD PUBLIC ID
 java.lang.String getRootElemDTD()
          Provides access to the DTD Root element name
 java.lang.String getSystemID()
          Provides access to the DTD SYSTEM ID
 java.lang.String getURI()
          Returns the URI of the source.
 boolean isIDREF(QName attrName, QName elementName)
          Checks whether an attribute is an IDREF attribute (based on DTD information)
 boolean isIDREFS(QName attrName, QName elementName)
          Checks whether an attribute is an IDREFS attribute (based on DTD information)
 boolean isXMLId(QName attrName, QName elementName)
          Checks whether an attribute is an ID attribute (based on attribute name or DTD information)
 void setURI(java.lang.String uriToSet)
           
 
Methods inherited from class ch.ethz.mxquery.model.Iterator
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.ethz.mxquery.model.XDMIterator
close, copy, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getStaticType, getSubIters, isConstModePreserve, isExprParameter, isOpen, isResettable, next, reset, setConstModePreserve, setContext, setLoc, setResettable, setSubIters, setSubIters, traverseIteratorTree
 
Methods inherited from interface ch.ethz.mxquery.util.Traversable
traverse
 

Constructor Detail

XDMImportAdapter

public XDMImportAdapter(Context ctx,
                        QueryLocation loc)
Method Detail

getSystemID

public java.lang.String getSystemID()
Description copied from interface: XMLSource
Provides access to the DTD SYSTEM ID

Specified by:
getSystemID in interface XMLSource
Returns:
the system Id if the source was validated against a DTD

getPublicID

public java.lang.String getPublicID()
Description copied from interface: XMLSource
Provides access to the DTD PUBLIC ID

Specified by:
getPublicID in interface XMLSource
Returns:
the public Id if the source was validated against a DTD

getRootElemDTD

public java.lang.String getRootElemDTD()
Description copied from interface: XMLSource
Provides access to the DTD Root element name

Specified by:
getRootElemDTD in interface XMLSource
Returns:
the root element name if the source was validated against a DTD

compare

public int compare(Source store)
Specified by:
compare in interface Source

setURI

public void setURI(java.lang.String uriToSet)
Specified by:
setURI in interface XMLSource

getURI

public java.lang.String getURI()
Description copied from interface: Source
Returns the URI of the source.

Specified by:
getURI in interface Source
Returns:
a String representing the URI/Identifier of this source

copySource

public Source copySource(Context ctx,
                         java.util.Vector nestedPredCtxStack)
                  throws MXQueryException
Specified by:
copySource in interface Source
Throws:
MXQueryException

isXMLId

public boolean isXMLId(QName attrName,
                       QName elementName)
Checks whether an attribute is an ID attribute (based on attribute name or DTD information)

Parameters:
attrName -
elementName -
Returns:
true if this is a candidate for an ID attribute, false otherwise

isIDREF

public boolean isIDREF(QName attrName,
                       QName elementName)
Checks whether an attribute is an IDREF attribute (based on DTD information)

Parameters:
attrName -
elementName -
Returns:
true if this is a candidate for an IDREF attribute, false otherwise

isIDREFS

public boolean isIDREFS(QName attrName,
                        QName elementName)
Checks whether an attribute is an IDREFS attribute (based on DTD information)

Parameters:
attrName -
elementName -
Returns:
true if this is a candidate for an IDREFS attribute, false otherwise

getIterator

public Window getIterator(Context ctx)
                   throws MXQueryException
Description copied from interface: Source
Returns Iterator that points on the first token in the store.

Specified by:
getIterator in interface Source
Returns:
Iterator a (Window) Iterator to access the contents of this source
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich