This namespace contains element specific logic. It defines the different element categories of model elements and views and the hierarchical relationships. The namespace also defines predicates to query the elements and functionality requiring only elements or collections of elements without references to the model as a whole.
This namespace contains element specific logic. It defines the different element categories of model elements and views and the hierarchical relationships. The namespace also defines predicates to query the elements and functionality requiring only elements or collections of elements without references to the model as a whole.
(all-tags? v e)
Returns true if all of the tags in v
are tags of e
.
Returns true if all of the tags in `v` are tags of `e`.
(all-techs? v e)
Returns true if all of the technologies in v
are technologies of e
.
Returns true if all of the technologies in `v` are technologies of `e`.
Node types in the architecture model.
Node types in the architecture model.
(architecture-node? e)
Returns true if the given element e
is a architecture model node.
Returns true if the given element `e` is a architecture model node.
Relation types in the architecture model.
Relation types in the architecture model.
(architecture-relation? e)
Returns true if the given element e
is a architecture model relation.
Returns true if the given element `e` is a architecture model relation.
(boundary? e)
Returns true if e
is a boundary.
Returns true if `e` is a boundary.
(code-model-node? e)
Returns true if the given element e
is a code model node.
Returns true if the given element `e` is a code model node.
(code-model-relation? e)
Returns true if the given element e
is a code model relation.
Returns true if the given element `e` is a code model relation.
Relation types for code models.
Relation types for code models.
Element types of a code view.
Element types of a code view.
Element types of a C4 component view.
Element types of a C4 component view.
(concept-model-node? e)
Returns true if the given element e
is a concept model node.
Returns true if the given element `e` is a concept model node.
(concept-model-relation? e)
Returns true if the given element e
is a concept model relation.
Returns true if the given element `e` is a concept model relation.
Node types for concept models.
Node types for concept models.
Relation types of concept models.
Relation types of concept models.
Element types of a concept view.
Element types of a concept view.
The set of concept views types.
The set of concept views types.
Element types of a C4 container view.
Element types of a C4 container view.
Element types of a C4 context view.
Element types of a C4 context view.
Node types for deployment models.
Node types for deployment models.
(deployment-node? e)
Returns true if the given element e
is a deployment model node.
Returns true if the given element `e` is a deployment model node.
Relation types for deployment models.
Relation types for deployment models.
(deployment-relation? e)
Returns true if the given element e
is a deployment model relation.
Returns true if the given element `e` is a deployment model relation.
Element types of a system structure view
Element types of a system structure view
Element types of a C4 deployment view.
Element types of a C4 deployment view.
(desc-check? v e)
Returns true if the check for desc on e
equals the boolean value v
Returns true if the check for desc on `e` equals the boolean value `v`
(desc? v e)
Returns true if the description of e
matches the regular expressionv
.
Returns true if the description of `e` matches the regular expression`v`.
(difference-by-id base-set & sets)
Returns a set of elements that is the difference of the base-set
and the rest of the sets
.
Equality is based on the id (:id key) of the element maps in the sets, not on value equality of the maps (entity equality vs. value equality).
Returns a set of elements that is the difference of the `base-set` and the rest of the `sets`. Equality is based on the id (:id key) of the element maps in the sets, not on value equality of the maps (entity equality vs. value equality).
(doc-check? v e)
Returns true if the check for documentation on e
equals the boolean value v
Returns true if the check for documentation on `e` equals the boolean value `v`
(doc? v e)
Returns true if the documentation of e
matches the regular expressionv
.
Returns true if the documentation of `e` matches the regular expression`v`.
Element types of a C4 dynamic view.
Element types of a C4 dynamic view.
(el? v e)
Returns true if the element type of e
is equal to v
.
Returns true if the element type of `e` is equal to `v`.
(element->ref e)
Returns a ref for the element e
, if it is identifiable.
Returns a ref for the element `e`, if it is identifiable.
Hierarchy for rendering methods.
Hierarchy for rendering methods.
(element-name e)
Returns the name of the element e
.
Returns the name of the element `e`.
(element-namespace e)
Returns the namespace of the element e
.
Returns the namespace of the element `e`.
(element? e)
Returns true if the given element e
has a type (:el key).
Returns true if the given element `e` has a type (:el key).
(elements-by-namespace coll)
Returns the elements of the coll
grouped by namespace.
Returns the elements of the `coll` grouped by namespace.
(els? v e)
Returns true if the element type of e
is contained in v
.
Returns true if the element type of `e` is contained in `v`.
(external-check? v e)
Returns true if the check for external on e
equals the boolean value v
Returns true if the check for external on `e` equals the boolean value `v`
(external? e)
Returns true if the given element e
is external.
Returns true if the given element `e` is external.
(from-namespace-prefix? v e)
Returns true, if v
is a prefix of the namespace of element referenced by the from id of relation e
.
Returns true, if `v`is a prefix of the namespace of element referenced by the from id of relation `e`.
(from-namespace-prefixes? v e)
Returns true, if one of v
is a prefix of the namespace of element referenced by the from id of relation e
.
Returns true, if one of `v`is a prefix of the namespace of element referenced by the from id of relation `e`.
(from-namespace? v e)
Returns true, if v
is the namespace of the element referenced by the from id of relation e
.
Returns true, if `v`is the namespace of the element referenced by the from id of relation `e`.
(from-namespaces? v e)
Returns true, if the set of namespaces v
contains the namespace of the from id of relation e
.
Returns true, if the set of namespaces `v` contains the namespace of the from id of relation `e`.
(from? v e)
Returns true if the from id of the relation e
is equal to v
.
Returns true if the from id of the relation `e` is equal to `v`.
(generate-node-id e p)
Generates an identifier for element e
based on the id of the parent p
.
The generated id takes the id of p
as prefix and appends the lowercase
name of e
and the element type of e
separated by a hyphen.
Generates an identifier for element `e` based on the id of the parent `p`. The generated id takes the id of `p` as prefix and appends the lowercase name of `e` and the element type of `e` separated by a hyphen.
(generate-relation-id {:keys [el from to]})
(generate-relation-id el from to)
Generates an identifier for a relation r
.
The generated id takes the id of the referrer as prefix and appends the relation type of the relation and the name part of the referred id separated by a hyphen.
Generates an identifier for a relation `r`. The generated id takes the id of the referrer as prefix and appends the relation type of the relation and the name part of the referred id separated by a hyphen.
Element types of a glossary view.
Element types of a glossary view.
The set of hierarchical view types.
The set of hierarchical view types.
(hierarchical-view? e)
Returns true if the given element e
is a hierarchical view.
Returns true if the given element `e` is a hierarchical view.
(id e)
Returns the id of the element or ref e
.
Returns the id of the element or ref `e`.
(id->element)
(id->element acc)
(id->element acc e)
Step function to create an id to element map.
Adds the association of the id of the element e
to the map acc
.
Step function to create an id to element map. Adds the association of the id of the element `e` to the map `acc`.
(id->element-map elements)
Returns am map of id -> element for the given elements
.
Returns am map of id -> element for the given `elements`.
(id-check? v e)
Returns true if the check for id on e
equals the boolean value v
Returns true if the check for id on `e` equals the boolean value `v`
(id? v e)
Returns true if the id of e
is equal to v
.
Returns true if the id of `e` is equal to `v`.
(identifiable-element? e)
Returns true if the given element e
is an element and named.
Returns true if the given element `e` is an element and named.
(identifiable-named-element? e)
Returns true if the given element e
is an element, identifiable and named.
Returns true if the given element `e` is an element, identifiable and named.
(identifiable-relational-element? e)
Returns true if the given element e
is an identifiable relation.
Returns true if the given element `e` is an identifiable relation.
(identifiable? e)
Returns true if the given element e
has an ID (:id key).
Returns true if the given element `e` has an ID (:id key).
Returns a transducer to extract the id of each element.
Returns a transducer to extract the id of each element.
(internal? e)
Returns true if the given element e
is internal.
Returns true if the given element `e` is internal.
(key->element k)
Returns a step function to create an key k
to element map.
Adds the association of the id of the element e
to the map acc
.
Returns a step function to create an key `k` to element map. Adds the association of the id of the element `e` to the map `acc`.
(key-check? [k v] e)
Returns true if the check for the key k
on element e
equals the boolean value v
.
Useful to check for custom keys.
Returns true if the check for the key `k` on element `e` equals the boolean value `v`. Useful to check for custom keys.
(key? [k v] e)
Returns true if the check for entry
on element e
equals the boolean value `v.
Returns true if the check for `entry` on element `e` equals the boolean value `v.
(maturities? v e)
Returns true if the maturity of e
is contained in v
.
Returns true if the maturity of `e` is contained in `v`.
(maturity-check? v e)
Returns true if the check for maturity on e
equals the boolean value v
Returns true if the check for maturity on `e` equals the boolean value `v`
(maturity? v e)
Returns true if the maturity of e
is equal to v
.
Returns true if the maturity of `e` is equal to `v`.
The set of model element types as vector.
The set of model element types as vector.
(model-element? e)
Returns true if the given element e
is a model element.
Returns true if the given element `e` is a model element.
The set of model element types as vector.
The set of model element types as vector.
(model-node? e)
Returns true if the given element is a node in the model element graph. A model node is a model element which is not a relation.
Returns true if the given element is a node in the model element graph. A model node is a model element which is not a relation.
The set of model element types as vector.
The set of model element types as vector.
Relation types of the model.
Relation types of the model.
(model-relation? e)
Returns true if the given element e
is a model relation.
Returns true if the given element `e` is a model relation.
Element types of a model-view.
Element types of a model-view.
(name-check? v e)
Returns true if the check for name on e
equals the boolean value v
Returns true if the check for name on `e` equals the boolean value `v`
(name-prefix? v e)
Returns true if the name of e
starts with v
.
Returns true if the name of `e` starts with `v`.
(name? v e)
Returns true if the name of e
matches v
.
Returns true if the name of `e` matches `v`.
(named-element? e)
Returns true if the given element e
is an element and named.
Returns true if the given element `e` is an element and named.
(named-relational-element? e)
Returns true if the given element e
is a named relation.
Returns true if the given element `e` is a named relation.
(named? e)
Returns true if the given element e
has a name (:name key).
Returns true if the given element `e` has a name (:name key).
(namespace-prefix? v e)
Returns true, if v
is a prefix of the namespace of element e
.
Returns true, if `v`is a prefix of the namespace of element `e`.
(namespace-prefixes? v e)
Returns true, if one of v
is a prefix of the namespace of element e
.
Returns true, if one of `v`is a prefix of the namespace of element `e`.
(namespace? v e)
Returns true, if v
is the namespace of element e
.
Returns true, if `v`is the namespace of element `e`.
(namespaced? e)
Returns true, if the id of element e
has a namespace.
Returns true, if the id of element `e` has a namespace.
Returns a transducer to extract the namespaces of some elements.
Returns a transducer to extract the namespaces of some elements.
(namespaces? v e)
Returns true, if the set of namespaces v
contains the namespace of element e
.
Returns true, if the set of namespaces `v` contains the namespace of element `e`.
Returns a transducer to extract the id of each node.
Returns a transducer to extract the id of each node.
(node-of? kind e)
Returns true if the given element e
is a node of kind
.
Returns true if the given element `e` is a node of `kind`.
(organization-model-node? e)
Returns true if the given element e
is a organization model node.
Returns true if the given element `e` is a organization model node.
(organization-model-relation? e)
Returns true if the given element e
is a organization model relation.
Returns true if the given element `e` is a organization model relation.
Node types for organization models.
Node types for organization models.
Relation types for organization models.
Relation types for organization models.
Element types of a system structure view
Element types of a system structure view
(process-model-node? e)
Returns true if the given element e
is a process model node.
Returns true if the given element `e` is a process model node.
(process-model-relation? e)
Returns true if the given element e
is a process model relation.
Returns true if the given element `e` is a process model relation.
Node types for process models.
Node types for process models.
Node types for process models.
Node types for process models.
(reference? e)
Returns true if the given element e
is a reference.
Returns true if the given element `e` is a reference.
(relation-of? kind e)
Returns true if the given element e
is a relation of kind
.
Returns true if the given element `e` is a relation of `kind`.
(relational-element? e)
Returns true if the given element e
is a relation.
Returns true if the given element `e` is a relation.
(relational? e)
Returns true if the given element e
is a relation.
Returns true if the given element `e` is a relation.
(responsibility-model-node? e)
Returns true if the given element e
is a responsibility model node.
Returns true if the given element `e` is a responsibility model node.
(responsibility-model-relation? e)
Returns true if the given element e
is a responsibility model relation.
Returns true if the given element `e` is a responsibility model relation.
Node types for responsibility models.
Node types for responsibility models.
Relation types for responsibility models.
Relation types for responsibility models.
(scope-element scope-ns e)
Transforms the element e
with the internal/external attribute set according to the namespace scope-ns
.
Transforms the element `e` with the internal/external attribute set according to the namespace `scope-ns`.
Element types of a state machine view.
Element types of a state machine view.
Node types for statemachine models.
Node types for statemachine models.
(statemachine-node? e)
Returns true if the given element e
is a statemachine model node.
Returns true if the given element `e` is a statemachine model node.
Relation types for statemachine models.
Relation types for statemachine models.
(statemachine-relation? e)
Returns true if the given element e
is a statemachine model relation.
Returns true if the given element `e` is a statemachine model relation.
The set of structure view types.
The set of structure view types.
(subtype-check? v e)
Returns true if the check for subtype on e
equals the boolean value v
Returns true if the check for subtype on `e` equals the boolean value `v`
(subtype? v e)
Returns true if the subtype of e
is equal to v
.
Returns true if the subtype of `e` is equal to `v`.
(subtypes? v e)
Returns true if the subtype of e
is contained in v
.
Returns true if the subtype of `e` is contained in `v`.
(synthetic-check? v e)
Returns true if the check for synthetic on e
equals the boolean value v
Returns true if the check for synthetic on `e` equals the boolean value `v`
(synthetic? e)
Returns true, if the element e
is a synthetic element.
Returns true, if the element `e` is a synthetic element.
Element types of a C4 system-landscape view.
Element types of a C4 system-landscape view.
Element types of a system structure view
Element types of a system structure view
(tag? v e)
Returns true if v
is a tag of e
.
Returns true if `v` is a tag of `e`.
(tags-check? v e)
Returns true if the check for tags on e
equals the boolean value v
Returns true if the check for tags on `e` equals the boolean value `v`
(tags? v e)
Returns true if any of the tags in v
are tags of e
.
Returns true if any of the tags in `v` are tags of `e`.
(tech-check? v e)
Returns true if the check for tech on e
equals the boolean value v
Returns true if the check for tech on `e` equals the boolean value `v`
(tech-collector)
(tech-collector acc)
(tech-collector acc e)
Step function to collect the technologies.
Adds the tech of e
to the accumulator acc
.
Step function to collect the technologies. Adds the tech of `e` to the accumulator `acc`.
(tech? v e)
Returns true if v
is a technology of e
.
Returns true if `v` is a technology of `e`.
Technical node types in the architecture model.
Technical node types in the architecture model.
(technical-architecture-node? e)
Returns true if the given element e
is a technical architecture model node.
Returns true if the given element `e` is a technical architecture model node.
(technologies e)
Returns a vector of the technologies used by the element e
.
Returns a vector of the technologies used by the element `e`.
(techs? v e)
Returns true if any of the technologies in v
are technologies of e
.
Returns true if any of the technologies in `v` are technologies of `e`.
(theme? e)
Returns true if the given element e
is a theme.
Returns true if the given element `e` is a theme.
(to-namespace-prefix? v e)
Returns true, if v
is a prefix of the namespace of element referenced by the to id of relation e
.
Returns true, if `v`is a prefix of the namespace of element referenced by the to id of relation `e`.
(to-namespace-prefixes? v e)
Returns true, if v
is a prefix of the namespace of element referenced by the to id of relation e
.
Returns true, if `v`is a prefix of the namespace of element referenced by the to id of relation `e`.
(to-namespace? v e)
Returns true, if v
is the namespace of the element referenced by the to id of relation e
.
Returns true, if `v`is the namespace of the element referenced by the to id of relation `e`.
(to-namespaces? v e)
Returns true, if the set of namespaces v
contains the namespace of the to id of relation e
.
Returns true, if the set of namespaces `v` contains the namespace of the to id of relation `e`.
(to? v e)
Returns true if the to id of the relation e
is equal to v
.
Returns true if the to id of the relation `e` is equal to `v`.
(tree->set)
(tree->set acc)
(tree->set acc e)
Step function to convert a hierarchical tree of elements to a flat set of elements.
Step function to convert a hierarchical tree of elements to a flat set of elements.
Relation types of UML models.
Relation types of UML models.
Element types of UML views.
Element types of UML views.
(union-by-id & sets)
Returns a set that is the union of the input sets
.
Equality is based on the id (:id key) of the element maps in the sets, not on value equality of the maps (entity equality vs. value equality).
Element maps with the same id will be merged in left-to-right order. If a key occurs in more than one map, the mapping from the latter (left-to-right) will be the mapping in the result.
Returns a set that is the union of the input `sets`. Equality is based on the id (:id key) of the element maps in the sets, not on value equality of the maps (entity equality vs. value equality). Element maps with the same id will be merged in left-to-right order. If a key occurs in more than one map, the mapping from the latter (left-to-right) will be the mapping in the result.
(unresolved-ref? e)
Returns true if the given element e
is an unresolved reference.
Returns true if the given element `e` is an unresolved reference.
Element types of a use case view.
Element types of a use case view.
Node types for usecase models.
Node types for usecase models.
(usecase-node? e)
Returns true if the given element e
is a usecase model node.
Returns true if the given element `e` is a usecase model node.
Relation types for usecase models.
Relation types for usecase models.
(usecase-relation? e)
Returns true if the given element e
is a usecase model relation.
Returns true if the given element `e` is a usecase model relation.
(value-xf k)
Returns a transducer to extract the value of the key k
of each element.
Returns a transducer to extract the value of the key `k` of each element.
(view-of? e kind)
Returns true if the given element e
is a view of kind
.
Returns true if the given element `e` is a view of `kind`.
The set of view types as vector.
The set of view types as vector.
(view? e)
Returns true if the given element e
is a view.
Returns true if the given element `e` is a view.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close