Ejemplo n.º 1
0
        } // setObjectClassPropListOptions()

        private string _getOwnerName(CswNbtViewProperty ViewProperty)
        {
            string ret = string.Empty;

            CswNbtViewRelationship      parent    = (CswNbtViewRelationship)ViewProperty.Parent;
            CswEnumNbtViewRelatedIdType ownerType = parent.getOwnerType();

            if (ownerType == CswEnumNbtViewRelatedIdType.NodeTypeId)
            {
                CswNbtMetaDataNodeType ntOwner = parent.getNodeTypeOwner();
                ret = ntOwner.NodeTypeName;
            }
            else if (ownerType == CswEnumNbtViewRelatedIdType.ObjectClassId)
            {
                CswNbtMetaDataObjectClass ocOwner = parent.getObjClassOwner();
                ret = ocOwner.ObjectClass.ToString();
            }
            else
            {
                CswNbtMetaDataPropertySet psOwner = parent.getPropSetOwner();
                ret = psOwner.Name;
            }

            return(ret);
        }
        private string _getRelationshipOwnerName(CswNbtViewRelationship Relationship)
        {
            string ret = string.Empty;

            if (Relationship.getOwnerType() == CswEnumNbtViewRelatedIdType.NodeTypeId)
            {
                ret = Relationship.getNodeTypeOwner().NodeTypeName;
            }
            else if (Relationship.getOwnerType() == CswEnumNbtViewRelatedIdType.ObjectClassId)
            {
                ret = Relationship.getObjClassOwner().ObjectClassName;
            }
            else
            {
                ret = Relationship.getPropSetOwner().Name;
            }
            return(ret);
        }