public static class SrampOntology.Class extends Object
| Constructor and Description |
|---|
SrampOntology.Class()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SrampOntology.Class |
findClass(String id)
Recursively finds a class matching the given ID.
|
SrampOntology.Class |
findClass(URI uri)
Recursively finds a class matching the given URI.
|
List<SrampOntology.Class> |
getChildren() |
String |
getComment() |
String |
getId() |
String |
getLabel() |
SrampOntology.Class |
getParent() |
URI |
getUri() |
Set<URI> |
normalize()
Normalize the hierarchy into a list of URIs.
|
void |
setChildren(List<SrampOntology.Class> children) |
void |
setComment(String comment) |
void |
setId(String id) |
void |
setLabel(String label) |
void |
setParent(SrampOntology.Class parent) |
void |
setUri(URI uri) |
public SrampOntology.Class findClass(String id)
id - public SrampOntology.Class findClass(URI uri)
uri - public String getLabel()
public void setLabel(String label)
label - the label to setpublic String getComment()
public void setComment(String comment)
comment - the comment to setpublic SrampOntology.Class getParent()
public void setParent(SrampOntology.Class parent)
parent - the parent to setpublic List<SrampOntology.Class> getChildren()
public void setChildren(List<SrampOntology.Class> children)
children - the children to setpublic URI getUri()
public void setUri(URI uri)
uri - the uri to setpublic Set<URI> normalize()
public String getId()
public void setId(String id)
id - the id to setCopyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.