Schnittstelle IPASSProcessModelElementFactory<T extends IParseablePASSProcessModelElement>

Typparameter:
T -
Alle bekannten Implementierungsklassen:
BasicPASSProcessModelElementFactory

public interface IPASSProcessModelElementFactory<T extends IParseablePASSProcessModelElement>
An interface for factories that create PASSProcessModelElements If own classes should be parsed by the library, an own implementation of a IPASSProcessModelElementFactory must be provided
  • Methodendetails

    • createInstance

      IParseablePASSProcessModelElement createInstance(Map<String,List<org.apache.commons.lang3.tuple.Pair<ITreeNode<IParseablePASSProcessModelElement>,Integer>>> parsingDict, List<String> names)
      Creates an instance of an IParseablePASSProcessModelElement, depending on given names and parsing possibilities.
      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