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 Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMON_XML_HEADERstatic java.lang.StringCOMMON_XML_NSstatic java.lang.StringNEW_LINEstatic java.lang.StringTAB
-
Constructor Summary
Constructors Constructor Description AbstractBaseDescriptionDocument()Default constructorAbstractBaseDescriptionDocument(java.lang.String id, java.lang.String shortName, java.lang.String description)Constructor with id, shortName and description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetDescDocument()Gets the description xml document for this base description documentjava.lang.StringgetDescPath()Gets the path of the description xml document for this base description documentStoregetStore()java.lang.StringgetStorePath()Gets the root path of the store of this base description documentvoidparseDocument(java.io.InputStream doc)Parses input XML documentvoidsetDescPath(java.lang.String descPath)Sets the desc pathvoidsetStore(Store store)Sets the web description store-
Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, parse, setDescription, setId, setShortName, validateRootElement
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.extensions.webscripts.BaseDescription
getDescription, getId, getShortName
-
-
-
-
Field Detail
-
COMMON_XML_HEADER
public static final java.lang.String COMMON_XML_HEADER
- See Also:
- Constant Field Values
-
COMMON_XML_NS
public static final java.lang.String COMMON_XML_NS
- See Also:
- Constant Field Values
-
NEW_LINE
public static final java.lang.String NEW_LINE
- See Also:
- Constant Field Values
-
TAB
public static final java.lang.String TAB
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractBaseDescriptionDocument
public AbstractBaseDescriptionDocument(java.lang.String id, java.lang.String shortName, java.lang.String description)Constructor with id, shortName and description- Parameters:
id- StringshortName- Stringdescription- String
-
AbstractBaseDescriptionDocument
public AbstractBaseDescriptionDocument()
Default constructor
-
-
Method Detail
-
setStore
public void setStore(Store store)
Sets the web description store- Parameters:
store- store
-
setDescPath
public void setDescPath(java.lang.String descPath)
Sets the desc path- Parameters:
descPath- String
-
getDescPath
public java.lang.String getDescPath()
Description copied from interface:BaseDescriptionDocumentGets the path of the description xml document for this base description document- Specified by:
getDescPathin interfaceBaseDescriptionDocument- Returns:
- document location (path)
-
getDescDocument
public java.io.InputStream getDescDocument() throws java.io.IOExceptionDescription copied from interface:BaseDescriptionDocumentGets the description xml document for this base description document- Specified by:
getDescDocumentin interfaceBaseDescriptionDocument- Returns:
- source document
- Throws:
java.io.IOException
-
getStorePath
public java.lang.String getStorePath()
Description copied from interface:BaseDescriptionDocumentGets the root path of the store of this base description document- Specified by:
getStorePathin interfaceBaseDescriptionDocument- Returns:
- root path of store
-
getStore
public Store getStore()
- Returns:
- the store
-
parseDocument
public void parseDocument(java.io.InputStream doc) throws org.dom4j.DocumentExceptionParses input XML document- Parameters:
doc- input XML document- Throws:
org.dom4j.DocumentException
-
-