Class AbstractBaseDescriptionDocument

java.lang.Object
org.springframework.extensions.webscripts.AbstractBaseDescription
org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
All Implemented Interfaces:
BaseDescription, BaseDescriptionDocument
Direct Known Subclasses:
DescriptionImpl, PackageDescriptionDocument, SchemaDescriptionDocument

public abstract class AbstractBaseDescriptionDocument extends AbstractBaseDescription implements BaseDescriptionDocument
Abstract class for implementation of AbstractBaseDescriptionDocument interface
Author:
drq
  • Field Details

  • Constructor Details

    • AbstractBaseDescriptionDocument

      public AbstractBaseDescriptionDocument(String id, String shortName, String description)
      Constructor with id, shortName and description
      Parameters:
      id - String
      shortName - String
      description - String
    • AbstractBaseDescriptionDocument

      public AbstractBaseDescriptionDocument()
      Default constructor
  • Method Details

    • setStore

      public void setStore(Store store)
      Sets the web description store
      Parameters:
      store - store
    • setDescPath

      public void setDescPath(String descPath)
      Sets the desc path
      Parameters:
      descPath - String
    • getDescPath

      public String getDescPath()
      Description copied from interface: BaseDescriptionDocument
      Gets the path of the description xml document for this base description document
      Specified by:
      getDescPath in interface BaseDescriptionDocument
      Returns:
      document location (path)
    • getDescDocument

      public InputStream getDescDocument() throws IOException
      Description copied from interface: BaseDescriptionDocument
      Gets the description xml document for this base description document
      Specified by:
      getDescDocument in interface BaseDescriptionDocument
      Returns:
      source document
      Throws:
      IOException
    • getStorePath

      public String getStorePath()
      Description copied from interface: BaseDescriptionDocument
      Gets the root path of the store of this base description document
      Specified by:
      getStorePath in interface BaseDescriptionDocument
      Returns:
      root path of store
    • getStore

      public Store getStore()
      Returns:
      the store
    • parseDocument

      public void parseDocument(InputStream doc) throws org.dom4j.DocumentException
      Parses input XML document
      Parameters:
      doc - input XML document
      Throws:
      org.dom4j.DocumentException