org.openehr.rm.common.archetyped
Class Archetyped

java.lang.Object
  extended by org.openehr.rm.RMObject
      extended by org.openehr.rm.common.archetyped.Archetyped
All Implemented Interfaces:
java.io.Serializable

public final class Archetyped
extends RMObject

Archetypes act as the configuration basis for the particular structures of instances defined by the reference model. To enable archetypes to be used to create valid data, key classes in the reference model act as "root" points for archetyping; accordingly, these classes have the archetype_details attribute set. An instance of the class Archetyped contains the relevant archetype identification information, allowing generating archetypes to be matched up with data instances.

Instances of this class are immutable.

Version:
1.0
Author:
Rong Chen
See Also:
Serialized Form

Constructor Summary
Archetyped(ArchetypeID archetypeID, AccessGroupReference accessControl, java.lang.String referenceModelVersion)
          Construcst an Archetyped
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals if have same values
 AccessGroupReference getAccessControl()
          The access control settings of this component
 ArchetypeID getArchetypeID()
          Globally unique archetype identifier
 java.lang.String getReferenceModelVersion()
          Version of the openEHR reference model used to create this object
 int hashCode()
          Hashcode of this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Archetyped

public Archetyped(ArchetypeID archetypeID,
                  AccessGroupReference accessControl,
                  java.lang.String referenceModelVersion)
Construcst an Archetyped

Parameters:
archetypeID -
accessControl -
referenceModelVersion -
Throws:
java.lang.IllegalArgumentException - if archetypeID null or referenceModelVersion empty
Method Detail

getArchetypeID

public ArchetypeID getArchetypeID()
Globally unique archetype identifier

Returns:
archetypeID

getAccessControl

public AccessGroupReference getAccessControl()
The access control settings of this component

Returns:
accessGroupReference

getReferenceModelVersion

public java.lang.String getReferenceModelVersion()
Version of the openEHR reference model used to create this object

Returns:
referenceModelVersion

equals

public boolean equals(java.lang.Object o)
Equals if have same values

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:
true if equals

hashCode

public int hashCode()
Hashcode of this object

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode


Copyright © 2004-2005 Acode HB. All Rights Reserved.