public class PackageDescriptionDocument extends AbstractBaseDescriptionDocument
| Modifier and Type | Field and Description |
|---|---|
static String |
DESC_NAME_PATTERN |
static String |
DESC_NAME_POSTFIX |
static String |
RESOURCES_ELEMENT_NAME |
static String |
ROOT_ELEMENT_NAME |
COMMON_XML_HEADER, COMMON_XML_NS, NEW_LINE, TAB| Constructor and Description |
|---|
PackageDescriptionDocument()
Default constructor
|
PackageDescriptionDocument(String id,
String shortName,
String description)
Constructor with id, shortName, description and definition
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceDescription(ResourceDescription resouceDescription) |
Path |
getPackage() |
ArrayList<ResourceDescription> |
getResourceDescriptionList() |
ResourceDescription[] |
getResourceDescriptions() |
static PackageDescriptionDocument |
newInstance()
Return a new instance of PackageDecriptionDocument
|
void |
parse(org.dom4j.Element elem)
Populates fields from given XML element without validation
|
void |
setPackage(Path scriptPackage)
Sets the Package (path version of getScriptPath)
|
void |
setResourceDescriptionList(ArrayList<ResourceDescription> resourceDescriptionList) |
void |
setResourceDescriptions(ResourceDescription[] resourceDescriptions) |
String |
toString() |
getDescDocument, getDescPath, getStore, getStorePath, parseDocument, setDescPath, setStorecompareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getId, getShortNamepublic static final String ROOT_ELEMENT_NAME
public static final String RESOURCES_ELEMENT_NAME
public static final String DESC_NAME_POSTFIX
public static final String DESC_NAME_PATTERN
public PackageDescriptionDocument(String id, String shortName, String description)
id - StringshortName - Stringdescription - Stringpublic PackageDescriptionDocument()
public void setPackage(Path scriptPackage)
scriptPackage - Pathpublic Path getPackage()
public ArrayList<ResourceDescription> getResourceDescriptionList()
public void setResourceDescriptionList(ArrayList<ResourceDescription> resourceDescriptionList)
resourceDescriptionList - the resourceDescriptionList to setpublic ResourceDescription[] getResourceDescriptions()
public void setResourceDescriptions(ResourceDescription[] resourceDescriptions)
resourceDescriptions - the resourceDescriptions to setpublic void addResourceDescription(ResourceDescription resouceDescription)
resouceDescription - ResourceDescriptionpublic void parse(org.dom4j.Element elem)
AbstractBaseDescriptionparse in class AbstractBaseDescriptionelem - root element for parsingpublic static PackageDescriptionDocument newInstance()
Copyright © 2005–2018 Alfresco Software. All rights reserved.