Package edu.stanford.bmir.protege.web.shared.frame

Examples of edu.stanford.bmir.protege.web.shared.frame.PropertyValueList


    @Override
    public Optional<LabelledFrame<NamedIndividualFrame>> getValue() {
       if(editedFrame == null) {
           return Optional.absent();
       }
       PropertyValueList propertyValueList = assertions.getValue().get();
       Set<OWLClass> rawTypes = getRawTypes();
       Set<OWLNamedIndividual> sameAs = getRawSameAs();
       NamedIndividualFrame reference = new NamedIndividualFrame(editedFrame.getSubject(), rawTypes, propertyValueList.getPropertyValues(), sameAs);
       return Optional.of(new LabelledFrame<NamedIndividualFrame>(getDisplayName(), reference));
   }
View Full Code Here


            Optional<PropertyValue> propertyValue = val.toPropertyValue();
            if (propertyValue.isPresent()) {
                propertyValues.add(propertyValue.get());
            }
        }
        return Optional.of(new PropertyValueList(propertyValues));
    }
View Full Code Here

        String unquoted = removeQuotes(lcf.getDisplayName());
        displayNameField.setValue(unquoted);

        iriField.setValue(lcf.getFrame().getSubject().getIRI().toString());
        annotations.setValue(new PropertyValueList(new ArrayList<PropertyValue>(lcf.getFrame().getAnnotationPropertyValues())));
        properties.setValue(new PropertyValueList(new ArrayList<PropertyValue>(lcf.getFrame().getLogicalPropertyValues())));

        setDirty(false, EventStrategy.DO_NOT_FIRE_EVENTS);

        updatePropertiesEnabled();
View Full Code Here

    public void setValue(Set<OWLAnnotation> object) {
        List<PropertyAnnotationValue> values = new ArrayList<PropertyAnnotationValue>();
        for(OWLAnnotation annotation : object) {
            values.add(new PropertyAnnotationValue(annotation.getProperty(), annotation.getValue(), PropertyValueState.ASSERTED));
        }
        editor.setValue(new PropertyValueList(values));
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.frame.PropertyValueList

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.