initialize()
registerListener(BridiStoreChangeListener listener)
unregisterListener(BridiStoreChangeListener listener)
Stream<Bridi> query(String query)
Stream<Bridi> create(String query)
Set<Bridi> save(Collection<Bridi> values)
Stream<Bridi> findAllByRepresentation(String representation)
Optional<Bridi> findById(String id)
Sumti createSumti(String idString representation)
BridiReferenceRepository getBridiReferenceRepository()
Stream<Bridi> createFromdefinitions(String definitionName)
BridiElement root()
BridiElement byId(String id)
ProblemRepository getProblems()
fixParent()
String getRepresentation()
Stream<BridiElement> getChildren()
BridiElement getType()
Stream<BridiElement> getReferences()
BridiElement getParent()
String toXml()
String toString()
isInstance(String typeId)
BridiElement create(String containerIdString typeIdString representation references)
for a nonexisting sumti returns the empty list
for an existing sumti returns the sumti
if more sumtis exist with the representation, return them all
for a reference, return the referenced bridi
for a reference to a nonexisting bridi, return an empty list
for a bridi with the matching representation returns it
for a bridi where the representation does not match, but the selbri and sumties do, finds it
'$?' returns a list of the any sumti
for a bridi where one of the sumties is '$?', the matching bridies return
for a bridi where all of the sumties is '$?', a ParseCancellationException is thrown
if no stored bridi matches the query with '$?', and empty list is returned
query works with the '$?' being deep down in the query
Stream<Bridi> apply(String query)
Stream<Bridi> apply(ParserOutput parserOutput)
creates a list of bridis from the output of the parser - does not save them
Stream<Bridi> apply(ParserOutput parserOutput)
Stream<Bridi> apply(String topMap<StringList<String>> refMap)
saving a bridi returns the old bridi if exists, and
- looks up the existing version of the sumti
- if there was an existing version, - then creates a bridi from it
- and cleans its references
- stores the id and representation in the sumtiRepository
- adds the references
- adds the save operation to the history with SAVE, the old and new bridi
- if there was no previous sumti, uses null in the history for it
the form with collection parameter saves all the bridis
Set<Bridi> apply(Collection<Bridi> values)
Bridi apply(Bridi bridi)
delete deletes the bridi and returns it
- if there was no such bridi saved, a NoSuchElementException is thrown
- the references are cleared
- the id and representation are cleared from the repository
- notifies about the store change
removes references from the BridiReferenceRepository - removes all the sumti references for the bridi
finds the bridi by Id
returns empty if no bridi found
adds all the references of the bridi to the repository
if references is null, does nothing
for null references does nothing
for empty references does nothing
for each reference adds an entry to the bridireferencerepository
creates a bridi from the sumti
finds all bridis based on a representation
returns the ids of all bridies with the given sumti, and with the given selbri in the given position
returns the ids of all the sumties with the given representation
for noninstance returns false
for direct instance returns true
for indirect instance returns true
everything is a thing
creates sumti IS_A
creates sumti CONTAINS
creates sumti ROOT
creates sumti THING
creates sumti CONTAINER
creates sumti UNPLACED
creates sumti TRUE
creates sumti FALSE
creates sumti IS_FUNCTION_FOR
creates sumti SAVE_FUNCTION_REF
creates sumti DOSAVE
creates sumti DIAGRAM
creates sumti DIAGRAM_ELEMENT
creates bridis from the definition file
logs success
saves 3 bridis
the first one is the element
with the given representation
and the given rerferences
the second one is '{@elementId} is a {@typeId}'
the representation of the second one uses actual representations
the third one is '{@containerId} contains {@elementId}'
the representation of the third one uses actual representations
the references are saved
if the type does not exist, an IllegalArgumentException is thrown
if the container does not exist, an IllegalArgumentException is thrown
if the there is a nonexisting reference, an IllegalArgumentException is thrown
Set<BridiReference> findAllByBridiId(String id)
Set<BridiReference> findAllBySelbriIdAndSumtiIdAndPosition(String selbriIdString sumtiId position)
deleteBybridiIdAndPositionAndSumtiId(String bridiIdInteger positionString sumtiId)
Optional<BridiReference> findByBridiIdAndPosition(String bridiId i)
Set<BridiReference> findAllByBridiIdAndPosition(String bridiId i)
registerListener(BridiStoreChangeListener listener)
unregisterListener(BridiStoreChangeListener listener)
Stream<Bridi> query(String query)
Stream<Bridi> create(String query)
Sumti createSumti(String idString representation)
Set<Bridi> save(Collection<Bridi> values)
Stream<Bridi> findAllByRepresentation(String representation)
Optional<Bridi> findById(String string)
Stream<Bridi> createFromdefinitions(String string)
BridiElement root()
BridiElement byId(String id)