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

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


public class PropertyValueUtil {

    public void deletePropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String value, UserId userId, String operationDescription, AsyncCallback<Void> asyncCallback) {
        EntityData oldEntityData = new EntityData(value);
        oldEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().removePropertyValue(projectId, entityName,
                new PropertyEntityData(propName), oldEntityData, userId, operationDescription,
                new RemovePropertyValueHandler(entityName, propName, asyncCallback));
    }
View Full Code Here


    //TODO: assume value value type is the same as the property value type, fix later
    public void replacePropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String oldValue, String newValue, UserId userId, String operationDescription,
            AsyncCallback<Void> asyncCallback) {
        EntityData oldEntityData = new EntityData(oldValue);
        oldEntityData.setValueType(propValueType);
        EntityData newEntityData = new EntityData(newValue);
        newEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().replacePropertyValue(projectId, entityName,
                new PropertyEntityData(propName), oldEntityData, newEntityData, userId, operationDescription,
                new ReplacePropertyValueHandler(entityName, propName, newEntityData, asyncCallback));
    }
View Full Code Here

            Collection<String> newValues, UserId userId, String operationDescription,
            AsyncCallback<Void> asyncCallback) {
        ArrayList<EntityData> newEntityData = new ArrayList<EntityData>();
        if (newValues != null && newValues.size() > 0) {
            for (String newValue : newValues) {
                newEntityData.add(new EntityData(newValue));
            }
        }
        else {
            newEntityData = null;
        }
View Full Code Here

    }

    //TODO: assume value value type is the same as the property value type, fix later
    public void addPropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String newValue, UserId userId, String operationDescription, AsyncCallback<Void> asyncCallback) {
        EntityData newEntityData = new EntityData(newValue);
        newEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().addPropertyValue(projectId, entityName,
                new PropertyEntityData(propName), newEntityData, userId, operationDescription,
                new AddPropertyValueHandler(entityName, propName, asyncCallback));
    }
View Full Code Here

                doLayout();

                String selection = com.google.gwt.user.client.Window.Location.getParameter("id");
                if (selection != null) {
                    selection = URL.decodeQueryString(selection);
                    tab.setSelection(UIUtil.createCollection(new EntityData(selection)));
                    break;
                }
            }
        }
    }
View Full Code Here

    @Override
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("XRefs");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

   
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Cross product");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

    @Override
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Synonyms");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

    }

    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Term ID Information");
        EntityData entityData = getEntity();
        if (entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

    public EntityData getEntityData(OWLEntity entity) {
        if (entity instanceof OWLProperty  || entity instanceof OWLAnnotationProperty) {
            return getPropertyEntityData(entity);
        }
        else {
            EntityData entityData = new EntityData(entity.getIRI().toString());
            String browserText = getBrowserText(entity);
            entityData.setBrowserText(browserText);
            if(entity instanceof OWLClass) {
                entityData.setValueType(ValueType.Cls);
            }
            else if(entity instanceof OWLIndividual) {
                entityData.setValueType(ValueType.Instance);
            }
            return entityData;
        }
    }
View Full Code Here

TOP

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

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.