Exemple #1
0
        public UnknownAttributePredefinition ToUnknownAttributePredefinition()
        {
            var attributePredef = new UnknownAttributePredefinition(this.AttributeName, this.AttributeType);

            attributePredef.SetMultiplicity(this.Multiplicity);
            attributePredef.SetDefaultValue(this.DefaultValue);
            attributePredef.SetEdgeType(this.EdgeType);
            attributePredef.SetInnerEdgeType(this.InnerEdgeType);
            if (this.IsMandatory == true)
            {
                attributePredef.SetAsMandatory();
            }
            if (this.IsUnique == true)
            {
                attributePredef.SetAsUnique();
            }
            return(attributePredef);
        }