public class MirrorRelation extends BasedRelation
Relation.Property
assignable, base, domConstraint, ranConstraint
name, visible
Constructor and Description |
---|
MirrorRelation(String name,
Ontology ontology,
ConcreteRelation base,
boolean assignable,
Constraint domainConstraint,
Constraint rangeConstraint)
A relation that just mirrors it's base and nothing more except check constraints.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasProperty(Relation.Property property) |
Set<Type> |
relatedTo(Type domain,
ConcreteRelation topOfStack) |
protected Maplet |
relatedTo(Type domain,
Type range,
ConcreteRelation topOfStack) |
add, getBaseName, getUses, isAssignable, isBasedOn, remove, setVisible, toString, toStringComment
compareTo, getName, getOntology, getRelativeName, isMark, isVisible, relatedTo, relatedTo, relatedToX, setMark, setName, toStringOptions
public MirrorRelation(String name, Ontology ontology, ConcreteRelation base, boolean assignable, Constraint domainConstraint, Constraint rangeConstraint) throws IllegalOperationException
name
- ontology
- base
- assignable
- domainConstraint
- rangeConstraint
- IllegalOperationException
protected Maplet relatedTo(Type domain, Type range, ConcreteRelation topOfStack)
relatedTo
in class ConcreteRelation
public Set<Type> relatedTo(Type domain, ConcreteRelation topOfStack)
relatedTo
in class ConcreteRelation
public boolean hasProperty(Relation.Property property)
hasProperty
in interface Relation
hasProperty
in class ConcreteRelation