Package alps.java.api.parsing
Klasse BasicPASSProcessModelElementFactory
java.lang.Object
alps.java.api.parsing.BasicPASSProcessModelElementFactory
- Alle implementierten Schnittstellen:
IPASSProcessModelElementFactory<IParseablePASSProcessModelElement>
public class BasicPASSProcessModelElementFactory
extends Object
implements IPASSProcessModelElementFactory<IParseablePASSProcessModelElement>
A basic factory that creates standard ModelElements contained inside the alps.net.api library
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateInstance
(Map<String, List<org.apache.commons.lang3.tuple.Pair<ITreeNode<IParseablePASSProcessModelElement>, Integer>>> parsingDict, List<String> names) Creates an instance of anIParseablePASSProcessModelElement
, depending on given names and parsing possibilities.protected Map.Entry<IParseablePASSProcessModelElement,
String> decideForElement
(Map<IParseablePASSProcessModelElement, String> possibleElements) private static String
-
Konstruktordetails
-
BasicPASSProcessModelElementFactory
public BasicPASSProcessModelElementFactory()
-
-
Methodendetails
-
createInstance
public IParseablePASSProcessModelElement createInstance(Map<String, List<org.apache.commons.lang3.tuple.Pair<ITreeNode<IParseablePASSProcessModelElement>, Integer>>> parsingDict, List<String> names) Beschreibung aus Schnittstelle kopiert:IPASSProcessModelElementFactory
Creates an instance of anIParseablePASSProcessModelElement
, depending on given names and parsing possibilities.- Angegeben von:
createInstance
in SchnittstelleIPASSProcessModelElementFactory<IParseablePASSProcessModelElement>
- Parameter:
parsingDict
- A dictionary with possible instances for a given uri/name (key). The mapped value is list of pairs. Each pair contains a possible instance as first item and int indicating how good the name is parsed using this instance. 0 meaning the instance is a perfect match. 1 meaning the name cannot be directly parsed and is instantiated with the instance of the parent class and so on.names
- names of types the owl class belongs to- Gibt zurück:
- true if parsing was successful, false if not
-
removeUri
-
decideForElement
protected Map.Entry<IParseablePASSProcessModelElement,String> decideForElement (Map<IParseablePASSProcessModelElement, String> possibleElements)
-