org.qriterium.dogma
Class DogmaConnection

java.lang.Object
  extended by org.qriterium.dogma.DogmaConnection
All Implemented Interfaces:
iConnection

public class DogmaConnection
extends java.lang.Object
implements iConnection


Field Summary
static java.lang.String NOTYPE
          A value for undefined resource types is "undefined"
 
Constructor Summary
DogmaConnection(DogmaResource fR, DogmaResource tR)
          Creates new connection between (from,to)-pair of resources.
DogmaConnection(DogmaResource fR, DogmaResource tR, java.lang.String typeS)
           
DogmaConnection(java.lang.String fromCanoname, java.lang.String fromType, java.lang.String toCanoname, java.lang.String toType)
           
DogmaConnection(java.lang.String fromCanoname, java.lang.String fromType, java.lang.String toCanoname, java.lang.String toType, java.lang.String typeS)
           
 
Method Summary
 java.lang.String getFromcanoname()
           
 DogmaResource getFromResource()
           
 java.lang.String getFromtype()
           
 java.lang.String getIdentifier()
           
 java.lang.String getKey()
           
 DogmaResource[] getResources()
           
 java.lang.String getTocanoname()
           
 DogmaResource getToResource()
           
 java.lang.String getTotype()
           
 java.lang.String getType()
           
static void initDefaultTypes()
           
static void setDefaultType(java.lang.String from, java.lang.String to, java.lang.String typeName)
           
static void setDefaultTypeSet(java.util.HashMap<java.lang.String,java.lang.String> defaultT)
           
 void setType(java.lang.String t)
           
 void switchDirection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTYPE

public static final java.lang.String NOTYPE
A value for undefined resource types is "undefined"

See Also:
Constant Field Values
Constructor Detail

DogmaConnection

public DogmaConnection(DogmaResource fR,
                       DogmaResource tR)
Creates new connection between (from,to)-pair of resources. Adds this connection to these resources.

Parameters:
fR - from DogmaResource
tR - to DogmaResource

DogmaConnection

public DogmaConnection(DogmaResource fR,
                       DogmaResource tR,
                       java.lang.String typeS)

DogmaConnection

public DogmaConnection(java.lang.String fromCanoname,
                       java.lang.String fromType,
                       java.lang.String toCanoname,
                       java.lang.String toType)

DogmaConnection

public DogmaConnection(java.lang.String fromCanoname,
                       java.lang.String fromType,
                       java.lang.String toCanoname,
                       java.lang.String toType,
                       java.lang.String typeS)
Method Detail

getResources

public DogmaResource[] getResources()

getFromResource

public DogmaResource getFromResource()

getToResource

public DogmaResource getToResource()

getKey

public java.lang.String getKey()
Specified by:
getKey in interface iConnection

getFromcanoname

public java.lang.String getFromcanoname()
Specified by:
getFromcanoname in interface iConnection

getTocanoname

public java.lang.String getTocanoname()
Specified by:
getTocanoname in interface iConnection

getFromtype

public java.lang.String getFromtype()
Specified by:
getFromtype in interface iConnection

getTotype

public java.lang.String getTotype()
Specified by:
getTotype in interface iConnection

setType

public void setType(java.lang.String t)

getType

public java.lang.String getType()
Specified by:
getType in interface iConnection

getIdentifier

public java.lang.String getIdentifier()

switchDirection

public void switchDirection()

setDefaultType

public static void setDefaultType(java.lang.String from,
                                  java.lang.String to,
                                  java.lang.String typeName)

setDefaultTypeSet

public static void setDefaultTypeSet(java.util.HashMap<java.lang.String,java.lang.String> defaultT)

initDefaultTypes

public static void initDefaultTypes()