Package alps.java.api.parsing
Schnittstelle IParseablePASSProcessModelElement
- Alle Superschnittstellen:
IGraphCallback
,IPASSProcessModelElement
,IValueChangedObserver<IPASSProcessModelElement>
,IValueChangedPublisher<IPASSProcessModelElement>
- Alle bekannten Unterschnittstellen:
ICapsuleCallback
- Alle bekannten Implementierungsklassen:
Action
,ActorPlaceHolder
,ALPSModelElement
,ALPSSBDComponent
,ALPSSIDComponent
,BehaviorDescribingComponent
,ChoiceSegment
,ChoiceSegmentPath
,CommunicationAct
,CommunicationChannel
,CommunicationRestriction
,CommunicationTransition
,CustomOrExternalDataTypeDefinition
,DataDescribingComponent
,DataMappingFunction
,DataMappingIncomingToLocal
,DataMappingLocalToOutgoing
,DataObjectDefinition
,DataObjectListDefinition
,DataTypeDefinition
,DoFunction
,DoState
,DoTransition
,DoTransitionCondition
,ExtensionBehavior
,FlowRestrictor
,FullySpecifiedSubject
,FunctionSpecification
,GenericReturnToOriginReference
,GroupState
,GuardBehavior
,GuardExtension
,GuardReceiveState
,InitialStateOfChoiceSegmentPath
,InputPoolConstraint
,InputPoolConstraintHandlingStrategy
,InteractionDescribingComponent
,InterfaceSubject
,JSONDataTypeDefinition
,LayeredPassProcessModel
,MacroBehavior
,MacroExtension
,MacroState
,MessageExchange
,MessageExchangeCondition
,MessageExchangeList
,MessageSenderTypeConstraint
,MessageSpecification
,MessageTypeConstraint
,ModelBuiltInDataTypes
,ModelLayer
,MultiSubject
,OWLDataTypeDefinition
,ParsedStateReferenceStub
,PASSProcessModel
,PASSProcessModelElement
,PayloadDataObjectDefinition
,PayloadDescription
,PayloadPhysicalObjectDescription
,ReceiveFunction
,ReceiveState
,ReceiveTransition
,ReceiveTransitionCondition
,ReceiveType
,SenderTypeConstraint
,SendFunction
,SendingFailedCondition
,SendingFailedTransition
,SendState
,SendTransition
,SendTransitionCondition
,SendType
,Simple2DVisualizationPathPoint
,Simple2DVisualizationPoint
,SingleSubject
,StandaloneMacroSubject
,StandardPASSState
,State
,StatePlaceholder
,Subject
,SubjectBaseBehavior
,SubjectBehavior
,SubjectDataDefinition
,SubjectExecutionMapping
,SubjectExtension
,SubjectGroup
,SystemInterfaceSubject
,TimeTransition
,TimeTransitionCondition
,Transition
,TransitionCondition
,UserCancelTransition
,XSDDataTypeDefinition
Interface that extends the standard PASSProcessModelElement interface for parsing methods
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addIncompleteTriples
(List<IIncompleteTriple> triples) Adds a list ofIncomplete Triple to the element that will either be parsed right away, or delayed (depending on whether there is a graph available or not)void
addTriple
(IIncompleteTriple triple) void
addTriple
(org.apache.jena.graph.Triple triple) Adds a complete triple to the element.void
addTriples
(List<org.apache.jena.graph.Triple> triples) Adds a list of complete triples to the element.int
This method verifies whether a class can parse an ontology class, given by the string name of the ontology class.void
completeObject
(Map<String, IParseablePASSProcessModelElement> allElements) Completes the element by replacing temporary string ids with real objectsboolean
containsTriple
(IIncompleteTriple incTriple) Determines wheter there is a triple (complete or incomplete), holding the same data as the given incomplete tripleReturns the name of the current class.Returns all the triples currently contained by the class as incomplete triples (not containing the subject).List<org.apache.jena.graph.Triple>
Returns all the triples currently contained by the class.boolean
removeTriple
(IIncompleteTriple incTriple) Removes a triple from either the complete or incomplete triples.void
replaceTriple
(IIncompleteTriple oldTriple, IIncompleteTriple newTriple) Replaces an old triple with a new one.void
setExportGraph
(IPASSGraph graph) Von Schnittstelle geerbte Methoden alps.java.api.parsing.IGraphCallback
getSubjectName, notifyModelComponentIDChanged, notifyTriple
Von Schnittstelle geerbte Methoden alps.java.api.StandardPASS.IPASSProcessModelElement
addComment, addElementWithUnspecifiedRelation, addModelComponentLabel, clearComments, clearModelComponentLabels, createUniqueModelComponentID, createUniqueModelComponentID, createUniqueModelComponentID, getComments, getElementsWithUnspecifiedRelation, getModelComponentID, getModelComponentLabels, getModelComponentLabelsAsStrings, getModelComponentLabelsAsStrings, getUriModelComponentID, removeElementWithUnspecifiedRelation, removeFromEverything, removeFromEverything, removeModelComponentLabel, setElementsWithUnspecifiedRelation, setModelComponentID, setModelComponentLabels
Von Schnittstelle geerbte Methoden alps.java.api.util.IValueChangedObserver
notifyModelComponentIDChanged, updateAdded, updateRemoved, updateRemoved
Von Schnittstelle geerbte Methoden alps.java.api.util.IValueChangedPublisher
register, unregister, unregister
-
Methodendetails
-
canParse
This method verifies whether a class can parse an ontology class, given by the string name of the ontology class. Example: The class PASSProcessModel should not return CANNOT_PARSE for the string "PASSProcessModel". A high return value indicates that this class can parse the ontology class better than another class with a lower return value. Every value != CANNOT PARSE indicates that the class can parse the ontology class.- Parameter:
className
-- Gibt zurück:
-
completeObject
Completes the element by replacing temporary string ids with real objects- Parameter:
allElements
- a dict of all pass elements
-
setExportGraph
-
getClassName
String getClassName()Returns the name of the current class. Used for parsing, must match the name of the class in the ontology- Gibt zurück:
- The name of the current class
-
getBaseURI
String getBaseURI() -
addTriple
-
addIncompleteTriples
Adds a list ofIncomplete Triple to the element that will either be parsed right away, or delayed (depending on whether there is a graph available or not)- Parameter:
triples
- the triple that is being saved
-
addTriples
Adds a list of complete triples to the element. If the element contains an Incomplete Triple containing the same information as a complete triple, the incomplete will be deleted. The content of the triple will be parsed if possible.- Parameter:
triples
- the triple that is being saved
-
addTriple
void addTriple(org.apache.jena.graph.Triple triple) Adds a complete triple to the element. If the element contains an Incomplete Triple containing the same information, it will be deleted. The content of the triple will be parsed if possible.- Parameter:
triple
-
-
getTriples
List<org.apache.jena.graph.Triple> getTriples()Returns all the triples currently contained by the class. They describe connection to other elements etc- Gibt zurück:
-
getIncompleteTriples
List<IIncompleteTriple> getIncompleteTriples()Returns all the triples currently contained by the class as incomplete triples (not containing the subject). They describe connection to other elements etc.- Gibt zurück:
-
removeTriple
Removes a triple from either the complete or incomplete triples.- Parameter:
incTriple
- An incomplete triple coding the value that should be deleted. The deleted object must not be incomplete, but can as well be a complete triple- Gibt zurück:
-
containsTriple
Determines wheter there is a triple (complete or incomplete), holding the same data as the given incomplete triple- Parameter:
incTriple
- An incomplete triple coding the value that should be found. The found object must not be incomplete, but can as well be a complete triple- Gibt zurück:
-
replaceTriple
Replaces an old triple with a new one.- Parameter:
oldTriple
- An incomplete triple holding the data to find the triple to be replacednewTriple
- An incomplete triple holding the data to replace the old triple
-
getParsedInstance
IParseablePASSProcessModelElement getParsedInstance()
-