Class JDFPreview

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, IStreamWriter, IURLSetter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFPreview extends JDFAutoPreview implements IURLSetter
See Also:
  • Constructor Details

    • JDFPreview

      public JDFPreview(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
      Constructor for JDFPreview
      Parameters:
      myOwnerDocument -
      qualifiedName -
      Throws:
      DOMException
    • JDFPreview

      public JDFPreview(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) throws DOMException
      Constructor for JDFPreview
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      Throws:
      DOMException
    • JDFPreview

      public JDFPreview(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) throws DOMException
      Constructor for JDFPreview
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
      Throws:
      DOMException
  • Method Details

    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFAutoPreview
      Returns:
    • getURLInputStream

      public InputStream getURLInputStream()
      get the input stream that reads from URL
      Specified by:
      getURLInputStream in interface IURLSetter
      Returns:
      InputStream the input stream that the url points to, null if the url is inaccessible
    • toString

      public String toString()
      Description copied from class: KElement
      this to string, used for debug purpose mostly
      Overrides:
      toString in class KElement
      Returns:
      See Also:
    • getUserFileName

      public String getUserFileName()
      Specified by:
      getUserFileName in interface IURLSetter
      Returns:
      the filename of this; null if not implemented
    • setPreviewFileType

      public void setPreviewFileType(JDFPreview.EnumPreviewFileType enumPreviewFileType)
      this method is provided for backwards compatibility with enum previewfiletype
      Parameters:
      enumPreviewFileType -
    • getEnumPreviewFileType

      public JDFPreview.EnumPreviewFileType getEnumPreviewFileType()
      this method is provided for backwards compatibility with enum previewfiletype
      Returns:
      the value of the attribute
    • getCreateFileSpec

      public JDFFileSpec getCreateFileSpec()
      (25) getCreateFileSpec
      Returns:
      JDFFileSpec the element
    • getFileSpec

      public JDFFileSpec getFileSpec()
      get RunList/LayoutElement/FileSpec or RunList/FileSpec in case of XJDF
      Returns:
      JDFFileSpec FileSpec if it exists, else null
    • getFileURL

      public String getFileURL()
      get RunList/LayoutElement/FileSpec/@URL also evaluate RunList/@directory and concatinate Directory + URL in case URL is a relative URL
      Returns:
      URL if a URL or Directory attribute exists, else null
    • setFileSpecURL

      public boolean setFileSpecURL(String url)
      set RunList/FileSpec/@URL - only for 2.0
      Parameters:
      url - the url to set
      Returns:
      true if ok