コード例 #1
0
        public static bool IsValid(string value)
        {
            Check.Require(value != null, "value must not be null");

            string[] strings = value.Split(new string[] { "::" }, 3, StringSplitOptions.RemoveEmptyEntries);
            if (strings.Length == 0)
            {
                return(false);
            }

            if (strings.Length != 3)
            {
                return(false);
            }

            if (!Uid.IsValid(strings[0]))
            {
                return(false);
            }

            if (!Uid.IsValid(strings[1]))
            {
                return(false);
            }

            if (!VersionTreeId.IsValid(strings[2]))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
ファイル: ObjectVersionId.cs プロジェクト: nickvane/OpenEHR
 public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId)
     : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value)
 {
 }
コード例 #3
0
 public ObjectVersionId(HierObjectId objectId, string creatingSystemId, VersionTreeId versionTreeId)
     : this(objectId.Value + "::" + creatingSystemId + "::" + versionTreeId.Value)
 {
 }