ix.icore.info
Class IRelation
java.lang.Object
ix.icore.AbstractAnnotatedObject
ix.icore.AbstractIXObject
ix.icore.info.AbstractIObject
ix.icore.info.IRelation
- All Implemented Interfaces:
- Annotated, Named, IObject, IThing, IXObject, EditableObject, java.io.Serializable
public class IRelation
- extends AbstractIObject
A relationship between two or more pieces of information (concepts) with
attribute values and constraints.
For the moment, all relations are assumed to be binary (linking just two
concepts).
- See Also:
- Serialized Form
Methods inherited from class ix.icore.info.AbstractIObject |
addDataChangeListener, getAttributes, getName, getType, getValue, isEmpty, isEmptyValue, nameHasChanged, removeDataChangeListener, sameValue, setName, setType, setValue, setValue |
Methods inherited from class ix.icore.AbstractAnnotatedObject |
addAnnotationListener, annMap, clearAnnotations, fireSetAnnotation, getAnnotation, getAnnotations, getComments, makeAnnMap, removeAnnotation, setAnnotation, setAnnotations, setComments, takeAnnotations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromConcept
public IConcept fromConcept
toConcept
public IConcept toConcept
IRelation
public IRelation()
IRelation
public IRelation(IRelationType relationType)
IRelation
public IRelation(IRelationType relationType,
IConcept from,
IConcept to)
setRelation
public void setRelation(IConcept from,
IConcept to)
setFrom
public void setFrom(IConcept from)
setTo
public void setTo(IConcept to)
getFrom
public IConcept getFrom()
getTo
public IConcept getTo()
setAttributeValue
public boolean setAttributeValue(java.lang.String attName,
java.lang.Object value)
- Overrides:
setAttributeValue
in class AbstractIObject
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String attName)
- Overrides:
getAttributeValue
in class AbstractIObject
isAttributesEmpty
public boolean isAttributesEmpty()
- A refinement is empty if all its data fields are empty.
Note: the refinement may not have started out as empty - check whether it
has a base-object for full emptiness.
- Overrides:
isAttributesEmpty
in class AbstractIObject
sameAttributeValue
public boolean sameAttributeValue(java.lang.String field,
java.lang.Object value,
java.lang.Object otherValue)
- Specified by:
sameAttributeValue
in class AbstractIObject
checkConsistency
public boolean checkConsistency()
- Checks that the concepts are of the right type
- Specified by:
checkConsistency
in interface IObject
- Specified by:
checkConsistency
in class AbstractIObject