| java.lang.Object org.enhydra.shark.xpdl.StandardPackageValidator
StandardPackageValidator | public class StandardPackageValidator implements XMLValidator(Code) | | Represents coresponding element from XPDL schema.
author: Sasa Bojanic |
Method Summary | |
protected boolean | checkANDSplit(Activity act) | protected boolean | checkActivityConnection(Activity act, List existingErrors, boolean fullCheck) Checks if given activity is well connected. | protected boolean | checkActivityId(Activity newEl) | protected void | checkBlockId(XMLAttribute bId, List existingErrors) | protected void | checkDeclaredTypeId(XMLAttribute dtId, List existingErrors) | protected void | checkExternalPackages(Package pkg, List existingErrors, boolean fullCheck) | protected boolean | checkGraphConformanceForWpOrAs(XMLCollectionElement wpOrAs, List existingErrors, boolean fullCheck) Checks if graph conforms to the given conformance class. | protected boolean | checkGraphConnectionsForWpOrAs(XMLCollectionElement wpOrAs, List existingErrors, boolean fullCheck) | protected void | checkMultipleOtherwiseOrDefaultExceptionTransitions(Activity act, Set outTrans, List existingErrors, boolean fullCheck) | protected static void | checkParameterMatching(FormalParameters fps, ActualParameters aps, List existingErrors, boolean checkExpression, boolean fullCheck) | protected boolean | checkSubFlowId(XMLAttribute sbflwId, List existingErrors, boolean fullCheck) | protected boolean | checkToolId(XMLAttribute tlId, List existingErrors, boolean fullCheck) | protected void | checkTransitionFrom(XMLAttribute from, List existingErrors) | protected boolean | checkTransitionId(Transition newEl) | protected void | checkTransitionRefId(XMLAttribute trfId, List existingErrors, boolean fullCheck) | protected void | checkTransitionTo(XMLAttribute to, List existingErrors) | protected boolean | checkXORSplit(Activity act) | public void | clearCache(Package pkg) | public void | clearCache() | protected boolean | containsTransitionWithId(Set trans, String id) | protected boolean[][] | createIncidenceMatrix(Activities activities) | protected StandardPackageValidator | createValidatorInstance() | public Map | getExtPkgValidationErrors() | protected int | getNoOfANDSplitsOrJoins(Set acts, int sOrJ) Returns the number of activities in the given set that have split or join, depending
on second parameter. | protected int | getNoOfReferences(Class parentCls, XMLComplexElement parent, Class elCls, XMLElement el) | protected boolean | hasAnyPostcondition(Activity act) | public boolean | hasErrors(List l) | public void | init(XMLInterface pXmlInterface, Package pPkg, boolean pGetExistingSchemaValidationErrors, String pEncoding, String pLocale) | public void | init(Properties props) | public void | init(Properties pProps, XMLInterface pXmlInterface) | public static boolean | isEmpty(String str) | protected boolean | isIdUnique(XMLCollectionElement newEl) | protected boolean | isIdValid(String id) | protected boolean | isRemoteSubflowIdOK(String subflowId) | public static void | main(String[] args) | public String | prepareMessageString(String msg) | public static void | printIM(boolean[][] im, java.util.List acts) | public static void | printIM2(boolean[][] im, java.util.List acts) | public List | reCheckExternalPackage(Package p) | protected void | validateAgainstXPDLSchema(Package pkg, List existingErrors, boolean fullCheck) | public void | validateElement(XMLElement el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLAttribute el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLComplexChoice el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLEmptyChoiceElement el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLCollection el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLCollectionElement el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLComplexElement el, List existingErrors, boolean fullCheck) | public void | validateElement(XMLSimpleElement el, List existingErrors, boolean fullCheck) | public void | validateElement(Activities el, List existingErrors, boolean fullCheck) | public void | validateElement(Activity el, List existingErrors, boolean fullCheck) | public void | validateElement(ActivitySet el, List existingErrors, boolean fullCheck) | public void | validateElement(ActivitySets el, List existingErrors, boolean fullCheck) | public void | validateElement(ActivityTypes el, List existingErrors, boolean fullCheck) | public void | validateElement(ActualParameter el, List existingErrors, boolean fullCheck) | public void | validateElement(ActualParameters el, List existingErrors, boolean fullCheck) | public void | validateElement(Application el, List existingErrors, boolean fullCheck) | public void | validateElement(Applications el, List existingErrors, boolean fullCheck) | public void | validateElement(ApplicationTypes el, List existingErrors, boolean fullCheck) | public void | validateElement(ArrayType el, List existingErrors, boolean fullCheck) | public void | validateElement(Author el, List existingErrors, boolean fullCheck) | public void | validateElement(Automatic el, List existingErrors, boolean fullCheck) | public void | validateElement(BasicType el, List existingErrors, boolean fullCheck) | public void | validateElement(BlockActivity el, List existingErrors, boolean fullCheck) | public void | validateElement(Codepage el, List existingErrors, boolean fullCheck) | public void | validateElement(Condition el, List existingErrors, boolean fullCheck) | public void | validateElement(ConformanceClass el, List existingErrors, boolean fullCheck) | public void | validateElement(Cost el, List existingErrors, boolean fullCheck) | public void | validateElement(CostUnit el, List existingErrors, boolean fullCheck) | public void | validateElement(Countrykey el, List existingErrors, boolean fullCheck) | public void | validateElement(Created el, List existingErrors, boolean fullCheck) | public void | validateElement(DataField el, List existingErrors, boolean fullCheck) | public void | validateElement(DataFields el, List existingErrors, boolean fullCheck) | public void | validateElement(DataType el, List existingErrors, boolean fullCheck) | public void | validateElement(DataTypes el, List existingErrors, boolean fullCheck) | public void | validateElement(Deadline el, List existingErrors, boolean fullCheck) | public void | validateElement(DeadlineCondition el, List existingErrors, boolean fullCheck) | public void | validateElement(Deadlines el, List existingErrors, boolean fullCheck) | public void | validateElement(DeclaredType el, List existingErrors, boolean fullCheck) | public void | validateElement(Description el, List existingErrors, boolean fullCheck) | public void | validateElement(Documentation el, List existingErrors, boolean fullCheck) | public void | validateElement(Duration el, List existingErrors, boolean fullCheck) | public void | validateElement(EnumerationType el, List existingErrors, boolean fullCheck) | public void | validateElement(EnumerationValue el, List existingErrors, boolean fullCheck) | public void | validateElement(ExceptionName el, List existingErrors, boolean fullCheck) | public void | validateElement(ExtendedAttribute el, List existingErrors, boolean fullCheck) | public void | validateElement(ExtendedAttributes el, List existingErrors, boolean fullCheck) | public void | validateElement(ExternalPackage el, List existingErrors, boolean fullCheck) | public void | validateElement(ExternalPackages el, List existingErrors, boolean fullCheck) | public void | validateElement(ExternalReference el, List existingErrors, boolean fullCheck) | public void | validateElement(FinishMode el, List existingErrors, boolean fullCheck) | public void | validateElement(FormalParameter el, List existingErrors, boolean fullCheck) | public void | validateElement(FormalParameters el, List existingErrors, boolean fullCheck) | public void | validateElement(Icon el, List existingErrors, boolean fullCheck) | public void | validateElement(Implementation el, List existingErrors, boolean fullCheck) | public void | validateElement(ImplementationTypes el, List existingErrors, boolean fullCheck) | public void | validateElement(InitialValue el, List existingErrors, boolean fullCheck) | public void | validateElement(Join el, List existingErrors, boolean fullCheck) | public void | validateElement(Length el, List existingErrors, boolean fullCheck) | public void | validateElement(Limit el, List existingErrors, boolean fullCheck) | public void | validateElement(ListType el, List existingErrors, boolean fullCheck) | public void | validateElement(Manual el, List existingErrors, boolean fullCheck) | public void | validateElement(Member el, List existingErrors, boolean fullCheck) | public void | validateElement(Namespace el, List existingErrors, boolean fullCheck) | public void | validateElement(Namespaces el, List existingErrors, boolean fullCheck) | public void | validateElement(No el, List existingErrors, boolean fullCheck) | public void | validateElement(org.enhydra.shark.xpdl.elements.Package el, List existingErrors, boolean fullCheck) | public void | validateElement(PackageHeader el, List existingErrors, boolean fullCheck) | public void | validateElement(Participant el, List existingErrors, boolean fullCheck) | public void | validateElement(Participants el, List existingErrors, boolean fullCheck) | public void | validateElement(ParticipantType el, List existingErrors, boolean fullCheck) | public void | validateElement(Performer el, List existingErrors, boolean fullCheck) | public void | validateElement(Priority el, List existingErrors, boolean fullCheck) | public void | validateElement(PriorityUnit el, List existingErrors, boolean fullCheck) | public void | validateElement(ProcessHeader el, List existingErrors, boolean fullCheck) | public void | validateElement(RecordType el, List existingErrors, boolean fullCheck) | public void | validateElement(RedefinableHeader el, List existingErrors, boolean fullCheck) | public void | validateElement(Responsible el, List existingErrors, boolean fullCheck) | public void | validateElement(Responsibles el, List existingErrors, boolean fullCheck) | public void | validateElement(Route el, List existingErrors, boolean fullCheck) | public void | validateElement(SchemaType el, List existingErrors, boolean fullCheck) | public void | validateElement(Script el, List existingErrors, boolean fullCheck) | public void | validateElement(SimulationInformation el, List existingErrors, boolean fullCheck) | public void | validateElement(Split el, List existingErrors, boolean fullCheck) | public void | validateElement(StartFinishModes el, List existingErrors, boolean fullCheck) | public void | validateElement(StartMode el, List existingErrors, boolean fullCheck) | public void | validateElement(SubFlow el, List existingErrors, boolean fullCheck) | public void | validateElement(TimeEstimation el, List existingErrors, boolean fullCheck) | public void | validateElement(Tool el, List existingErrors, boolean fullCheck) | public void | validateElement(Tools el, List existingErrors, boolean fullCheck) | public void | validateElement(Transition el, List existingErrors, boolean fullCheck) | public void | validateElement(TransitionRef el, List existingErrors, boolean fullCheck) | public void | validateElement(TransitionRefs el, List existingErrors, boolean fullCheck) | public void | validateElement(TransitionRestriction el, List existingErrors, boolean fullCheck) | public void | validateElement(TransitionRestrictions el, List existingErrors, boolean fullCheck) | public void | validateElement(Transitions el, List existingErrors, boolean fullCheck) | public void | validateElement(TypeDeclaration el, List existingErrors, boolean fullCheck) | public void | validateElement(TypeDeclarations el, List existingErrors, boolean fullCheck) | public void | validateElement(UnionType el, List existingErrors, boolean fullCheck) | public void | validateElement(ValidFrom el, List existingErrors, boolean fullCheck) | public void | validateElement(ValidTo el, List existingErrors, boolean fullCheck) | public void | validateElement(Vendor el, List existingErrors, boolean fullCheck) | public void | validateElement(Version el, List existingErrors, boolean fullCheck) | public void | validateElement(WaitingTime el, List existingErrors, boolean fullCheck) | public void | validateElement(WorkflowProcess el, List existingErrors, boolean fullCheck) | public void | validateElement(WorkflowProcesses el, List existingErrors, boolean fullCheck) | public void | validateElement(WorkingTime el, List existingErrors, boolean fullCheck) | public void | validateElement(XPDLVersion el, List existingErrors, boolean fullCheck) | protected void | validateStandard(XMLElement el, List existingErrors, boolean fullCheck) |
ALLOW_UNDEFINED_END | final public static String ALLOW_UNDEFINED_END(Code) | | |
ALLOW_UNDEFINED_START | final public static String ALLOW_UNDEFINED_START(Code) | | |
CHECK_EXTERNAL_PACKAGES | final public static String CHECK_EXTERNAL_PACKAGES(Code) | | |
CURRENT_XPDL_VERSION | final protected static String CURRENT_XPDL_VERSION(Code) | | |
GET_EXISTING_SCHEMA_VALIDATION_ERRORS | final public static String GET_EXISTING_SCHEMA_VALIDATION_ERRORS(Code) | | |
VALIDATE_ACTUAL_PARAMETER_EXPRESSIONS | final public static String VALIDATE_ACTUAL_PARAMETER_EXPRESSIONS(Code) | | |
VALIDATE_CONDITION_BY_TYPE | final public static String VALIDATE_CONDITION_BY_TYPE(Code) | | |
VALIDATE_CONDITION_EXPRESSIONS | final public static String VALIDATE_CONDITION_EXPRESSIONS(Code) | | |
VALIDATE_DEADLINE_EXPRESSIONS | final public static String VALIDATE_DEADLINE_EXPRESSIONS(Code) | | |
VALIDATE_PERFORMER_EXPRESSIONS | final public static String VALIDATE_PERFORMER_EXPRESSIONS(Code) | | |
VALIDATE_SUBFLOW_REFERENCES | final public static String VALIDATE_SUBFLOW_REFERENCES(Code) | | |
VALIDATE_UNUSED_VARIABLES | final public static String VALIDATE_UNUSED_VARIABLES(Code) | | |
epsValidationErrors | protected Map epsValidationErrors(Code) | | |
schemaValidationErrors | protected Map schemaValidationErrors(Code) | | |
StandardPackageValidator | public StandardPackageValidator()(Code) | | |
StandardPackageValidator | public StandardPackageValidator(Properties settings)(Code) | | |
checkActivityConnection | protected boolean checkActivityConnection(Activity act, List existingErrors, boolean fullCheck)(Code) | | Checks if given activity is well connected.
String describing the error, or empty string if there is no connection errorfor giving activity. |
checkActivityId | protected boolean checkActivityId(Activity newEl)(Code) | | |
checkExternalPackages | protected void checkExternalPackages(Package pkg, List existingErrors, boolean fullCheck)(Code) | | |
checkGraphConformanceForWpOrAs | protected boolean checkGraphConformanceForWpOrAs(XMLCollectionElement wpOrAs, List existingErrors, boolean fullCheck)(Code) | | Checks if graph conforms to the given conformance class.
true if graph is conformant, false otherwise |
checkGraphConnectionsForWpOrAs | protected boolean checkGraphConnectionsForWpOrAs(XMLCollectionElement wpOrAs, List existingErrors, boolean fullCheck)(Code) | | |
checkMultipleOtherwiseOrDefaultExceptionTransitions | protected void checkMultipleOtherwiseOrDefaultExceptionTransitions(Activity act, Set outTrans, List existingErrors, boolean fullCheck)(Code) | | |
checkSubFlowId | protected boolean checkSubFlowId(XMLAttribute sbflwId, List existingErrors, boolean fullCheck)(Code) | | |
checkTransitionRefId | protected void checkTransitionRefId(XMLAttribute trfId, List existingErrors, boolean fullCheck)(Code) | | |
clearCache | public void clearCache()(Code) | | |
containsTransitionWithId | protected boolean containsTransitionWithId(Set trans, String id)(Code) | | |
createIncidenceMatrix | protected boolean[][] createIncidenceMatrix(Activities activities)(Code) | | |
getExtPkgValidationErrors | public Map getExtPkgValidationErrors()(Code) | | |
getNoOfANDSplitsOrJoins | protected int getNoOfANDSplitsOrJoins(Set acts, int sOrJ)(Code) | | Returns the number of activities in the given set that have split or join, depending
on second parameter.
Parameters: acts - The set of activities that are searched for split or join Parameters: sOrJ - 0 -> searching for split, otherwise, searching for join |
hasAnyPostcondition | protected boolean hasAnyPostcondition(Activity act)(Code) | | |
isRemoteSubflowIdOK | protected boolean isRemoteSubflowIdOK(String subflowId)(Code) | | |
validateAgainstXPDLSchema | protected void validateAgainstXPDLSchema(Package pkg, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(XMLElement el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Activities el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Activity el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(ArrayType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Author el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Automatic el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(BasicType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Codepage el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Condition el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Cost el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(CostUnit el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Countrykey el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Created el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(DataField el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(DataFields el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(DataType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(DataTypes el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Deadline el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Deadlines el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Duration el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(FinishMode el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Icon el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Join el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Length el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Limit el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(ListType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Manual el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Member el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Namespace el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Namespaces el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(No el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Performer el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Priority el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(RecordType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Route el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(SchemaType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Script el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Split el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(StartMode el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(SubFlow el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Tool el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Tools el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Transition el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(UnionType el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(ValidFrom el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(ValidTo el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Vendor el, List existingErrors, boolean fullCheck)(Code) | | |
validateElement | public void validateElement(Version el, List existingErrors, boolean fullCheck)(Code) | | |
validateStandard | protected void validateStandard(XMLElement el, List existingErrors, boolean fullCheck)(Code) | | |
|
|