org.qriterium.dogma
Class DogmaConnection
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOTYPE
public static final java.lang.String NOTYPE
- A value for undefined resource types is "undefined"
- See Also:
- Constant Field Values
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 DogmaResourcetR
- 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)
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()