public class Package extends XMLComplexElement
attributes, complexStructureatts, isCollapsed, isReadOnly, isRequired, isVisible, labelName, name, NEWLINE, OFFSET, value| 构造器和说明 |
|---|
Package(XMLInterface xmlInterface)
Creates a new instance of the class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExternalPackage(Package externalPkg)
Adds single external package to collection of external packages.
|
void |
addExternalPackages(Package externalPkg)
Adds to collection of external packages the all packages that given
external package references.
|
protected void |
addPropertyToAllActivities(UserProperty up) |
void |
afterImporting()
Called after importing of XML file to insert entities from external
packages, to set the proper Participant objects for Responsibles of
Package and for every WorkflowProcess within a Package, according on
Responsible ID's read from XML.
|
protected boolean |
canRemoveExternalPackage(ExternalPackage ep)
Checks if some entities from specified external package (and all packages
that it references - except one that are referenced in some other way
(e.g. cross-reference, or duplicated reference)) are in use by this
package elements.
|
boolean |
equals(Object o) |
protected void |
fillStructure()
Defines the super-class method.
|
void |
fromXML(Node node)
Overrides super-class method to realize this class specific reading from
XML file.
|
Set |
getAllExternalPackages()
Returns a hashtable.
|
String |
getCurrentVersion()
Indicates which is the current version of BPD.
|
XMLPanel |
getPanel()
Prepares the tabbed panel to show editable fields of Package.
|
XMLPanel |
getPanel(int no)
Prepares the one of the group panels that contains some of this element
editable fields.
|
DefaultTreeModel |
getTreeModel() |
UserProperties |
getUserDefinedActivityProperties()
Returns all user defined activity properties within this package
instance.
|
String |
getVersion()
Indicates which version of BPD was package made by.
|
WorkflowProcess |
getWorkflowProcess(String ID)
Returns a workflow process with specified ID.
|
XMLInterface |
getXMLInterface() |
protected void |
insertFromExternal(ExternalPackage ep)
Collects information about all newly inserted external packages, which
root package is specified one, and which wasn't inserted until now.
|
boolean |
isMadeByBPD()
Indicates if package read from XML document) is made by BPD
|
boolean |
isValidEnter(XMLPanel p)
Indicates if dialog data enter for element is valid.
|
void |
refreshLabelName() |
protected void |
refreshMandatories(UserProperty up) |
protected void |
removeExternal(ExternalPackage ep) |
protected void |
removePropertyFromAllActivities(UserProperty up) |
void |
setIDPrefixForCollections()
Sets proper ID prefix for all Id generators (XMLCollection class
instances).
|
void |
setReadOnly(boolean ro)
Sets the element and all elements it is made of to be read only or not.
|
String |
toString()
Overrides super-class method to retreive the value of this class "Id"
attribute.
|
void |
toXML(Node parent)
Overrides super-class method to realize this class specific writting to
XML file.
|
clone, get, get, getChildElements, getElementsCount, getIndex, getNode, isEmpty, isValid, processAttributes, processElements, set, set, toComplexType, toComplexTypeValues, toComplexValuesfromXML, getPrintDescription, getPrintDescription, isCollapsed, isReadOnly, isRequired, isVisible, setCollapsed, setLabelName, setRequired, setValue, setVisible, toLabel, toName, toValuepublic Package(XMLInterface xmlInterface)
protected void fillStructure()
fillStructure 在类中 XMLComplexElementpublic void setReadOnly(boolean ro)
XMLComplexElementsetReadOnly 在类中 XMLComplexElementro - true if element will be 'read only', false
otherwise.public boolean isMadeByBPD()
public String getVersion()
public String getCurrentVersion()
protected void insertFromExternal(ExternalPackage ep)
public DefaultTreeModel getTreeModel()
protected boolean canRemoveExternalPackage(ExternalPackage ep)
protected void removeExternal(ExternalPackage ep)
public UserProperties getUserDefinedActivityProperties()
protected void addPropertyToAllActivities(UserProperty up)
protected void removePropertyFromAllActivities(UserProperty up)
protected void refreshMandatories(UserProperty up)
public WorkflowProcess getWorkflowProcess(String ID)
NOTE: This method should be called immediately after import of an XML file (during a creation of graph), otherwise it may not give the desired result.
ID - The 'Id' attribute of wanted instance of WorkflowProcess
element defined within a XML file.public String toString()
toString 在类中 XMLComplexElementpublic XMLPanel getPanel(int no)
no - The ordinal number of group panel to be shown.public XMLPanel getPanel()
NOTE: This method is never used, panels are retrieved one by one calling the method with the same name but with ordinal number of wanted panel as an argument.
getPanel 在类中 XMLComplexElementpublic void toXML(Node parent) throws DOMException
toXML 在类中 XMLComplexElementparent - The Node of XML file,DOMExceptionpublic void fromXML(Node node)
fromXML 在类中 XMLComplexElementnode - The Node of XML file, that represents tag for this element.public void setIDPrefixForCollections()
public Set getAllExternalPackages()
public void addExternalPackages(Package externalPkg)
public void addExternalPackage(Package externalPkg)
public void afterImporting()
public void refreshLabelName()
refreshLabelName 在类中 XMLComplexElementpublic boolean isValidEnter(XMLPanel p)
XMLElementisValidEnter 在类中 XMLElementpublic XMLInterface getXMLInterface()
Copyright © 2023 onecode. All rights reserved.