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 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAbstractBaseDescriptionDocument(String id, String shortName, String description) Constructor with id, shortName and description -
Method Summary
Modifier and TypeMethodDescriptionGets the description xml document for this base description documentGets the path of the description xml document for this base description documentgetStore()Gets the root path of the store of this base description documentvoidparseDocument(InputStream doc) Parses input XML documentvoidsetDescPath(String descPath) Sets the desc pathvoidSets the web description storeMethods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, parse, setDescription, setId, setShortName, validateRootElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.extensions.webscripts.BaseDescription
getDescription, getId, getShortName
-
Field Details
-
COMMON_XML_HEADER
- See Also:
-
COMMON_XML_NS
- See Also:
-
NEW_LINE
- See Also:
-
TAB
- See Also:
-
-
Constructor Details
-
AbstractBaseDescriptionDocument
Constructor with id, shortName and description- Parameters:
id- StringshortName- Stringdescription- String
-
AbstractBaseDescriptionDocument
public AbstractBaseDescriptionDocument()Default constructor
-
-
Method Details
-
setStore
Sets the web description store- Parameters:
store- store
-
setDescPath
Sets the desc path- Parameters:
descPath- 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
Description copied from interface:BaseDescriptionDocumentGets the description xml document for this base description document- Specified by:
getDescDocumentin interfaceBaseDescriptionDocument- Returns:
- source document
- Throws:
IOException
-
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
- Returns:
- the store
-
parseDocument
Parses input XML document- Parameters:
doc- input XML document- Throws:
org.dom4j.DocumentException
-