2ronwalf/*
2ronwalf * Created on Dec 21, 2004
2ronwalf */
2ronwalfpackage impl.owls.grounding;
2ronwalf
2ronwalfimport impl.owl.WrappedIndividual;
2ronwalf
2ronwalfimport java.net.URI;
2ronwalf
2ronwalfimport org.mindswap.owl.OWLIndividual;
2ronwalfimport org.mindswap.owls.grounding.WSDLOperationRef;
2ronwalfimport org.mindswap.owls.vocabulary.OWLS;
2ronwalf
2ronwalf/**
2ronwalf * @author evren
38daenzerorama * @author Michael D�nzer (University of Zurich)
2ronwalf */
2ronwalfpublic class WSDLOperationRefImpl extends WrappedIndividual implements WSDLOperationRef {
2ronwalf public WSDLOperationRefImpl(OWLIndividual ind) {
2ronwalf super(ind);
2ronwalf }
2ronwalf
2ronwalf public void setOperation(URI op) {
2ronwalf setProperty(OWLS.Grounding.operation, op);
2ronwalf }
2ronwalf
2ronwalf public URI getOperation() {
2ronwalf return getPropertyAsURI(OWLS.Grounding.operation);
2ronwalf }
2ronwalf
2ronwalf public void setPortType(URI port) {
2ronwalf /*******************************************
2ronwalf ** modified by guang huang @2005-4-8**
2ronwalf ********************************************/
2ronwalf setProperty(OWLS.Grounding.portType, port);
2ronwalf /*******************************************
2ronwalf ** end by guang huang **
2ronwalf ********************************************/
2ronwalf }
2ronwalf
2ronwalf public URI getPortType() {
2ronwalf return getPropertyAsURI(OWLS.Grounding.portType);
2ronwalf }
24daenzerorama
24daenzerorama public void removeOperation() {
24daenzerorama if (hasProperty(OWLS.Grounding.wsdlOperation))
24daenzerorama removeProperties(OWLS.Grounding.wsdlOperation);
24daenzerorama }
24daenzerorama
24daenzerorama public void removePortType() {
24daenzerorama if (hasProperty(OWLS.Grounding.portType))
24daenzerorama removeProperties(OWLS.Grounding.portType);
24daenzerorama }
24daenzerorama
24daenzerorama @Override
24daenzerorama public void delete() {
24daenzerorama removeOperation();
24daenzerorama removePortType();
24daenzerorama super.delete();
24daenzerorama }
2ronwalf}