public ObjectVersionID(UID objectID, HierObjectID creatingSystemID, VersionTreeID versionTreeID) { this(objectID.toString() + "::" + creatingSystemID.toString() + "::" + versionTreeID.toString()); this.objectID = objectID; this.creatingSystemID = creatingSystemID; this.versionTreeID = versionTreeID; }
/** * Unique identifier of the owning version container. * * @return uid of owning version container */ public HierObjectID ownerID() { //TODO check if correct, the extension bit at the back? return new HierObjectID(uid.objectID(), null); }
/** * True if this Version represents a branch */ public boolean isBranch() { return uid.versionTreeID().isBranch(); }
/** * Creates an Archetyped without a templateId * * @param archetypeId * @param rmVersion * @throws IllegalArgumentException if archetypeId null * or rmVersion empty */ public Archetyped(String archetypeId, String rmVersion) { this(new ArchetypeID(archetypeId), null, rmVersion); }
private void validateAll() { validateName(rmOriginator, "rm_originator"); validateName(rmName, "rm_name"); validateName(rmEntity, "rm_entity"); validateName(conceptName, "concept_name"); if (specialisation != null) { for(String name : specialisation) { validateName(name, "specialisation"); } } validateVersionID(versionID); }
public ObjectVersionID(UID objectID, HierObjectID creatingSystemID, VersionTreeID versionTreeID) { this(objectID.toString() + "::" + creatingSystemID.toString() + "::" + versionTreeID.toString()); this.objectID = objectID; this.creatingSystemID = creatingSystemID; this.versionTreeID = versionTreeID; }
/** * Unique identifier of the owning version container. * * @return uid of owning version container */ public HierObjectID ownerID() { //TODO check if correct, the extension bit at the back? return new HierObjectID(uid.objectID(), null); }
/** * True if this Version represents a branch */ public boolean isBranch() { return uid.versionTreeID().isBranch(); }