@Entity public class ArtificerOntologyClass extends Object implements Serializable
Constructor and Description |
---|
ArtificerOntologyClass() |
Modifier and Type | Method and Description |
---|---|
ArtificerOntologyClass |
findClass(String id)
Recursively finds a class matching the given ID.
|
ArtificerOntologyClass |
findClass(URI uri)
Recursively finds a class matching the given URI.
|
String |
getAnnotation() |
List<ArtificerOntologyClass> |
getChildren() |
String |
getId() |
String |
getLabel() |
ArtificerOntologyClass |
getParent() |
ArtificerOntology |
getRoot() |
long |
getSurrogateId() |
String |
getUri() |
Set<URI> |
normalize()
Normalize the hierarchy into a list of ArtificerOntologyClasses.
|
void |
setAnnotation(String annotation) |
void |
setChildren(List<ArtificerOntologyClass> children) |
void |
setId(String id) |
void |
setLabel(String label) |
void |
setParent(ArtificerOntologyClass parent) |
void |
setRoot(ArtificerOntology root) |
void |
setSurrogateId(long surrogateId) |
void |
setUri(String uri) |
public long getSurrogateId()
public void setSurrogateId(long surrogateId)
public String getId()
public void setId(String id)
id
- the id to setpublic ArtificerOntologyClass findClass(String id)
id
- public ArtificerOntologyClass findClass(URI uri)
uri
- public String getLabel()
public void setLabel(String label)
label
- the label to setpublic String getAnnotation()
public void setAnnotation(String annotation)
comment
- the comment to setpublic ArtificerOntology getRoot()
public void setRoot(ArtificerOntology root)
public ArtificerOntologyClass getParent()
public void setParent(ArtificerOntologyClass parent)
parent
- the parent to setpublic List<ArtificerOntologyClass> getChildren()
public void setChildren(List<ArtificerOntologyClass> children)
children
- the children to setpublic String getUri()
public void setUri(String uri)
uri
- the uri to setpublic Set<URI> normalize() throws URISyntaxException
URISyntaxException
Copyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.