コード例 #1
0
ファイル: JDFRectangleState.cs プロジェクト: cip4/JDFLibNet
        public virtual JDFElement.EnumXYRelation getPresentHWRelation()
        {
            JDFElement.EnumXYRelation rel = JDFElement.EnumXYRelation.getEnum(getAttribute(AttributeName.PRESENTHWRELATION, null, null));

            if (rel == null)
            {
                return(getAllowedHWRelation());
            }
            return(rel);
        }
コード例 #2
0
        public virtual JDFElement.EnumXYRelation getPresentXYRelation()
        {
            // return EnumXYRelation.getEnum(getAttribute(
            // AttributeName.ALLOWEDXYRELATION, null,
            // EnumXYRelation.Unknown.getName()));
            JDFElement.EnumXYRelation avail = JDFElement.EnumXYRelation.getEnum(getAttribute(AttributeName.PRESENTXYRELATION, null, null));

            if (avail == null)
            {
                return(getAllowedXYRelation());
            }

            return(avail);
        }