public MetsFileElement(string id, string mimetype, string seq, string size, string created, string checksum, MetsChecksumType checksumtype, string ownerid, string admid, string dmdid, string groupid, string use) { this.id = id; this.mimetype = mimetype; this.seq = seq; this.size = size; this.created = created; this.checksum = checksum; switch (checksumtype) { case MetsChecksumType.SHA256: this.checksumtype = "SHA-256"; break; case MetsChecksumType.SHA384: this.checksumtype = "SHA-384"; break; case MetsChecksumType.SHA512: this.checksumtype = "SHA-512"; break; default: this.checksumtype = checksumtype.ToString(); break; } this.ownerid = ownerid; this.admid = admid; this.dmdid = dmdid; this.groupid = groupid; this.use = use; }