ORG.oclc.openurl.contextObjectFormat
Class AbstractContextObjectFormat

java.lang.Object
  |
  +--ORG.oclc.openurl.contextObjectFormat.AbstractContextObjectFormat
Direct Known Subclasses:
FmtKevMtxCtx, FmtXmlXsdCtx

public abstract class AbstractContextObjectFormat
extends java.lang.Object

ContextObject Formats represent sets of triples: Serialization, Constraint Language, and Constraint Definition. Each set represents an alternative method for specifying ContextObjects. The purpose of this class is to provide a normalized view of (dereferenced) ContextObjects (XML, XSD, CTX) so the ContextObject processor classes can ignore other (KEV) Formats (if they want).

Author:
Jeffrey A. Young

Constructor Summary
AbstractContextObjectFormat(ContextObject[] contextObjects)
          Construct an AbstractContextObjectFormat given an array of ContextObjects bound to a specific (dereferenced) ContextObject Format
 
Method Summary
 ContextObject[] getContextObjects()
           
 org.w3c.dom.Document getContextObjectsDoc()
           
 java.lang.String getContextObjectsXmlRec()
          Get an XML String representation of all ContextObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContextObjectFormat

public AbstractContextObjectFormat(ContextObject[] contextObjects)
Construct an AbstractContextObjectFormat given an array of ContextObjects bound to a specific (dereferenced) ContextObject Format

Parameters:
contextObjects -
Method Detail

getContextObjects

public ContextObject[] getContextObjects()
Returns:
an array of dereferenced ContextObjects

getContextObjectsXmlRec

public java.lang.String getContextObjectsXmlRec()
                                         throws OpenURLException
Get an XML String representation of all ContextObjects

Returns:
dereferenced XML ContextObjects
Throws:
OpenURLException

getContextObjectsDoc

public org.w3c.dom.Document getContextObjectsDoc()
                                          throws org.xml.sax.SAXException,
                                                 java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 OpenURLException
Returns:
dereferenced XML ContextObjects as a DOM Document
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
OpenURLException