uk.ac.ic.doc.automed.reps
Class ConstructConstraint

java.lang.Object
  extended by uk.ac.ic.doc.automed.reps.ConstructConstraint
All Implemented Interfaces:
PersistentObject

public class ConstructConstraint
extends java.lang.Object
implements PersistentObject


Field Summary
private  java.lang.String _ccid
           
private  int _cid
           
private  java.lang.String _cname
           
private  java.lang.String _definition
           
private  java.lang.String _name
           
 
Constructor Summary
ConstructConstraint(int cid, java.lang.String name, java.lang.String definition)
          Creates a new instance of ConstructConstraint with a random id
ConstructConstraint(java.lang.String ccid, int cid, java.lang.String name, java.lang.String definition)
          Creates a new instance of ConstructConstraint
 
Method Summary
private  java.lang.String getCcid()
          Provide a temporary solution for lack of construct constraint id from the repository
 java.lang.String getConstructName()
          Retrieve construct from repository
 java.lang.String getDefinition()
          Return the constraint defintion
 PersistentKey getKey()
          Implements the PersistentObject interface
 java.util.Map getPersistentAttributes()
          Implements the PersistentObject interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ccid

private java.lang.String _ccid

_cid

private int _cid

_cname

private java.lang.String _cname

_name

private java.lang.String _name

_definition

private java.lang.String _definition
Constructor Detail

ConstructConstraint

public ConstructConstraint(java.lang.String ccid,
                           int cid,
                           java.lang.String name,
                           java.lang.String definition)
Creates a new instance of ConstructConstraint


ConstructConstraint

public ConstructConstraint(int cid,
                           java.lang.String name,
                           java.lang.String definition)
Creates a new instance of ConstructConstraint with a random id

Method Detail

getPersistentAttributes

public java.util.Map getPersistentAttributes()
Implements the PersistentObject interface

Specified by:
getPersistentAttributes in interface PersistentObject
See Also:
PersistentObject.getPersistentAttributes()

getKey

public PersistentKey getKey()
Implements the PersistentObject interface

Specified by:
getKey in interface PersistentObject
See Also:
uk.ac.ic.doc.automed.wrappersPersistentObject#getKey()

getCcid

private java.lang.String getCcid()
Provide a temporary solution for lack of construct constraint id from the repository


getConstructName

public java.lang.String getConstructName()
Retrieve construct from repository


getDefinition

public java.lang.String getDefinition()
Return the constraint defintion