|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LemonElement
The super-class for all lemon elements (individuals)
| Method Summary | |
|---|---|
boolean |
addAnnotation(URI annotationProperty,
Object annotation)
Add an annotation to this element |
boolean |
addProperty(Property property,
PropertyValue propertyVal)
Add a property to this element |
void |
addType(URI uri)
Add a type to this element |
Map<URI,Collection<Object>> |
getAnnotations()
Get any annotations for this element |
Collection<Object> |
getAnnotations(URI annotation)
Get the set of annotations for this property |
String |
getID()
Get the blank node ID for this node or null if this is a named node |
Collection<PropertyValue> |
getProperty(Property property)
Get the set of values for a property |
Map<Property,Collection<PropertyValue>> |
getPropertys()
Get any properties of this element |
Collection<URI> |
getTypes()
Get any types of the element |
boolean |
removeAnnotation(URI annotationProperty,
Object annotation)
Remove an annotation from this element |
boolean |
removeProperty(Property property,
PropertyValue propertyVal)
Remove a property from this element |
void |
removeType(URI uri)
Remove a type from this element |
| Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate |
|---|
getURI |
| Method Detail |
|---|
Map<Property,Collection<PropertyValue>> getPropertys()
Collection<PropertyValue> getProperty(Property property)
boolean addProperty(Property property,
PropertyValue propertyVal)
boolean removeProperty(Property property,
PropertyValue propertyVal)
String getID()
null if this is a named node
Collection<URI> getTypes()
void addType(URI uri)
void removeType(URI uri)
Map<URI,Collection<Object>> getAnnotations()
Collection<Object> getAnnotations(URI annotation)
boolean addAnnotation(URI annotationProperty,
Object annotation)
annotationProperty - The annotation propertyannotation - Either a java.net.URI, java.lang.String (blank nodes) or eu.monnetproject.lemon.model.Text
IllegalArgumentException - If the annotation is not of the appropriate type
boolean removeAnnotation(URI annotationProperty,
Object annotation)
annotationProperty - The annotation propertyannotation - Either a java.net.URI, java.lang.String (blank nodes) or eu.monnetproject.lemon.model.Text
IllegalArgumentException - If the annotation is not of the appropriate type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||