@Deprecated public Xref(Institution anOwner, CvDatabase aDatabase, String aPrimaryId, String aSecondaryId, String aDatabaseRelease, CvXrefQualifier aCvXrefQualifier ) { //super call sets creation time data this(anOwner, aDatabase, aPrimaryId, aCvXrefQualifier); this.secondaryId = fixId(aSecondaryId); this.dbRelease = aDatabaseRelease; }
@Deprecated public Xref(Institution anOwner, CvDatabase aDatabase, String aPrimaryId, String aSecondaryId, String aDatabaseRelease, CvXrefQualifier aCvXrefQualifier ) { //super call sets creation time data this(anOwner, aDatabase, aPrimaryId, aCvXrefQualifier); this.secondaryId = fixId(aSecondaryId); this.dbRelease = aDatabaseRelease; }
/** * Creates a valid Xref instance. Items which must be defined are: <ul> <li>an owner (Institution)</li> <li>database * details (controlled vocabulary instance)</li> <li>a Primary ID</li> * * @param aDatabase Controlled vocabulary instance defining the database details (non-null) * @param aPrimaryId primary identifier for the cross-reference (non-null), this should be 30 characters * maximum if it's more it will be truncated. if not done, Oracle would throw an error. * @param aCvXrefQualifier controlled vocabulary for any qualifiers (may be null) * @throws NullPointerException thrown if any mandatory parameters are not specified */ public Xref(CvDatabase aDatabase, String aPrimaryId, CvXrefQualifier aCvXrefQualifier ) { //super call sets creation time data super(); if (aPrimaryId == null) { throw new NullPointerException("valid Xref must have a primary ID!"); } aPrimaryId = fixId(aPrimaryId); if (aPrimaryId.length() == 0) { throw new IllegalArgumentException("Must define a non empty primaryId for an Xref."); } this.primaryId = aPrimaryId; this.cvDatabase = aDatabase; this.cvXrefQualifier = aCvXrefQualifier; }
/** * Creates a valid Xref instance. Items which must be defined are: <ul> <li>an owner (Institution)</li> <li>database * details (controlled vocabulary instance)</li> <li>a Primary ID</li> * * @param aDatabase Controlled vocabulary instance defining the database details (non-null) * @param aPrimaryId primary identifier for the cross-reference (non-null), this should be 30 characters * maximum if it's more it will be truncated. if not done, Oracle would throw an error. * @param aCvXrefQualifier controlled vocabulary for any qualifiers (may be null) * @throws NullPointerException thrown if any mandatory parameters are not specified */ public Xref(CvDatabase aDatabase, String aPrimaryId, CvXrefQualifier aCvXrefQualifier ) { //super call sets creation time data super(); if (aPrimaryId == null) { throw new NullPointerException("valid Xref must have a primary ID!"); } aPrimaryId = fixId(aPrimaryId); if (aPrimaryId.length() == 0) { throw new IllegalArgumentException("Must define a non empty primaryId for an Xref."); } this.primaryId = aPrimaryId; this.cvDatabase = aDatabase; this.cvXrefQualifier = aCvXrefQualifier; }
/** * Creates a valid Xref instance. Items which must be defined are: <ul> <li>an owner (Institution)</li> <li>database * details (controlled vocabulary instance)</li> <li>a Primary ID</li> * * @param anOwner Owner of the cross-reference (non-null) * @param aDatabase Controlled vocabulary instance defining the database details (non-null) * @param aPrimaryId primary identifier for the cross-reference (non-null), this should be 30 characters * maximum if it's more it will be truncated. if not done, Oracle would throw an error. * @param aCvXrefQualifier controlled vocabulary for any qualifiers (may be null) * * @throws NullPointerException thrown if any mandatory parameters are not specified */ public Xref( Institution anOwner, CvDatabase aDatabase, String aPrimaryId, CvXrefQualifier aCvXrefQualifier ) { //super call sets creation time data super( anOwner ); if ( aPrimaryId == null ) { throw new NullPointerException( "valid Xref must have a primary ID!" ); } aPrimaryId = fixId( aPrimaryId ); if ( aPrimaryId.length() == 0 ) { throw new IllegalArgumentException( "Must define a non empty primaryId for an Xref." ); } this.primaryId = aPrimaryId; this.cvDatabase = aDatabase; this.cvXrefQualifier = aCvXrefQualifier; }
this.secondaryId = fixId( aSecondaryId ); this.dbRelease = aDatabaseRelease;