Package edu.stanford.bmir.protege.web.client.rpc.data

Examples of edu.stanford.bmir.protege.web.client.rpc.data.PropertyType


            case Cls:
                return getEntity(entityData.getName(), EntityType.CLASS);
            case Property:
                if(entityData instanceof PropertyEntityData) {
                    PropertyEntityData ped = (PropertyEntityData) entityData;
                    PropertyType propertyType = ped.getPropertyType();
                    if(propertyType == PropertyType.OBJECT) {
                        return getEntity(entityData.getName(), EntityType.OBJECT_PROPERTY);
                    }
                    else if(propertyType == PropertyType.DATATYPE) {
                        return getEntity(entityData.getName(), EntityType.DATA_PROPERTY);
View Full Code Here


       
    }

    protected OWLAnnotationProperty getAnnotationProperty(PropertyEntityData propertyEntityData) {
        PropertyType oldType = propertyEntityData.getPropertyType();
        if(oldType == null) {
            logUntypedProperty(propertyEntityData);
            propertyEntityData.setPropertyType(PropertyType.ANNOTATION);
        }
        else if(oldType != PropertyType.ANNOTATION) {
View Full Code Here

    }

    protected Optional<OWLEntityData> toOWLEntityData(EntityData entityData) {
        if(entityData instanceof PropertyEntityData) {
            PropertyEntityData propertyEntityData = (PropertyEntityData) entityData;
            PropertyType propertyType = propertyEntityData.getPropertyType();
            if (propertyType != null) {
                switch(propertyType) {
                    case OBJECT:
                        return Optional.<OWLEntityData>of(new OWLObjectPropertyData(DataFactory.getOWLObjectProperty(entityData.getName()), entityData.getBrowserText()));
                    case DATATYPE:
View Full Code Here

        super.afterRender();
    }

    public void setTreeNodeIcon(TreeNode node) {
        PropertyEntityData entityData = (PropertyEntityData) node.getUserObject();
        PropertyType type = entityData.getPropertyType();
        if (type == PropertyType.OBJECT) {
            node.setIconCls("protege-object-property-icon");
        }
        else if (type == PropertyType.DATATYPE) {
            node.setIconCls("protege-datatype-property-icon");
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.PropertyType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.