Exemple #1
0
        public UpccAssociation(IUmlAssociation umlAssociation, ICctsElement associatingElement)
        {
            UmlAssociation      = umlAssociation;
            _associatingElement = associatingElement;
            //set initial position
            int sequence;

            if (int.TryParse(this.SequencingKey, out sequence))
            {
                this.position = sequence;
            }
            //zero means not ordered so it should appear last.
            if (position == 0)
            {
                position = int.MaxValue;
            }
        }
Exemple #2
0
        public static string GetBasicTypeName(ICctsElement element)
        {
            if (element == null)
            {
                return("Error_No_BasicType");
            }
            var enumType = element as UpccEnum;

            //assembled types have a different naming convention
            if (enumType != null)
            {
                return(GetEnumName(enumType));
            }
            var primType = element as UpccPrim;

            if (primType != null)
            {
                return(primType.xsdType);
            }
            return(element.Name + element.UniqueIdentifier);
        }
 public BasicType(ICctsElement actualType)
 {
     this.actualType = actualType;
 }
Exemple #4
0
 public BieAggregator(ICctsElement actualType)
 {
     this.actualType = actualType;
 }