protege.code-generation.2.0.0.source-code.implementation.functional.object.property Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-generation Show documentation
Show all versions of code-generation Show documentation
Generate Java code from an OWL ontology in the Protege Desktop editing environment.
The newest version!
/* ***************************************************
* Object Property ${propertyIri}
*/
public Collection extends ${propertyRange}> get${OwlProperty}() {
return getDelegate().getPropertyValues(getOwlIndividual(),
Vocabulary.${VocabProperty},
${propertyRangeImplementation}.class);
}
public boolean has${OwlProperty}() {
return !get${OwlProperty}().isEmpty();
}
public void add${OwlProperty}(${propertyRange} new${OwlProperty}) {
getDelegate().addPropertyValue(getOwlIndividual(),
Vocabulary.${VocabProperty},
new${OwlProperty});
}
public void remove${OwlProperty}(${propertyRange} old${OwlProperty}) {
getDelegate().removePropertyValue(getOwlIndividual(),
Vocabulary.${VocabProperty},
old${OwlProperty});
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy