ix.icore.info
Class ISource

java.lang.Object
  extended by ix.icore.AbstractAnnotatedObject
      extended by ix.icore.info.ISource
All Implemented Interfaces:
Annotated, Named, IThing, java.io.Serializable

public class ISource
extends AbstractAnnotatedObject
implements IThing, Named

The value of an attribute of a piece of information or a relationship

See Also:
Serialized Form

Field Summary
protected  java.util.HashMap attQuality
          A map that takes the combined type-attribute to get the quality value for the attribute in that type
protected  int defaultQuality
           
protected  java.lang.String name
           
 
Fields inherited from class ix.icore.AbstractAnnotatedObject
annotationListeners, annotations
 
Constructor Summary
ISource(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object iSource)
           
 java.lang.String getName()
           
 int getQuality(IObject object, java.lang.String attribute)
           
 int getQuality(IType type, java.lang.String attribute)
           
 void setName(java.lang.String name)
           
 void setQuality(IType type, java.lang.String attribute, int quality)
           
 
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ix.icore.Annotated
addAnnotationListener, clearAnnotations, fireSetAnnotation, getAnnotation, getAnnotations, removeAnnotation, setAnnotation, setAnnotations, takeAnnotations
 

Field Detail

name

protected java.lang.String name

defaultQuality

protected int defaultQuality

attQuality

protected java.util.HashMap attQuality
A map that takes the combined type-attribute to get the quality value for the attribute in that type

Constructor Detail

ISource

public ISource(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Named

setName

public void setName(java.lang.String name)

setQuality

public void setQuality(IType type,
                       java.lang.String attribute,
                       int quality)

getQuality

public int getQuality(IType type,
                      java.lang.String attribute)

getQuality

public int getQuality(IObject object,
                      java.lang.String attribute)

equals

public boolean equals(java.lang.Object iSource)
Overrides:
equals in class java.lang.Object