Class PackageDescriptionDocument
java.lang.Object
org.springframework.extensions.webscripts.AbstractBaseDescription
org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
org.springframework.extensions.webscripts.PackageDescriptionDocument
- All Implemented Interfaces:
BaseDescription,BaseDescriptionDocument
Package description document
- Author:
- drq
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
COMMON_XML_HEADER, COMMON_XML_NS, NEW_LINE, TAB -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPackageDescriptionDocument(String id, String shortName, String description) Constructor with id, shortName, description and definition -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceDescription(ResourceDescription resouceDescription) static PackageDescriptionDocumentReturn a new instance of PackageDecriptionDocumentvoidparse(org.dom4j.Element elem) Populates fields from given XML element without validationvoidsetPackage(Path scriptPackage) Sets the Package (path version of getScriptPath)voidsetResourceDescriptionList(ArrayList<ResourceDescription> resourceDescriptionList) voidsetResourceDescriptions(ResourceDescription[] resourceDescriptions) toString()Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescriptionDocument
getDescDocument, getDescPath, getStore, getStorePath, parseDocument, setDescPath, setStoreMethods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.extensions.webscripts.BaseDescription
getDescription, getId, getShortName
-
Field Details
-
ROOT_ELEMENT_NAME
- See Also:
-
RESOURCES_ELEMENT_NAME
- See Also:
-
DESC_NAME_POSTFIX
- See Also:
-
DESC_NAME_PATTERN
- See Also:
-
-
Constructor Details
-
PackageDescriptionDocument
Constructor with id, shortName, description and definition- Parameters:
id- StringshortName- Stringdescription- String
-
PackageDescriptionDocument
public PackageDescriptionDocument()Default constructor
-
-
Method Details
-
setPackage
Sets the Package (path version of getScriptPath)- Parameters:
scriptPackage- Path
-
getPackage
-
getResourceDescriptionList
- Returns:
- the resourceDescriptionList
-
setResourceDescriptionList
- Parameters:
resourceDescriptionList- the resourceDescriptionList to set
-
getResourceDescriptions
- Returns:
- the resourceDescriptions
-
setResourceDescriptions
- Parameters:
resourceDescriptions- the resourceDescriptions to set
-
addResourceDescription
- Parameters:
resouceDescription- ResourceDescription
-
parse
public void parse(org.dom4j.Element elem) Description copied from class:AbstractBaseDescriptionPopulates fields from given XML element without validation- Overrides:
parsein classAbstractBaseDescription- Parameters:
elem- root element for parsing
-
toString
-
newInstance
Return a new instance of PackageDecriptionDocument- Returns:
- a new instance of PackageDecriptionDocument
-