org.overlord.sramp.common.ontology
Class SrampOntology.Class

java.lang.Object
  extended by org.overlord.sramp.common.ontology.SrampOntology.Class
Enclosing class:
SrampOntology

public static class SrampOntology.Class
extends Object

Models a single class in an s-ramp ontology.

Author:
eric.wittmann@redhat.com

Constructor Summary
SrampOntology.Class()
          Constructor.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrampOntology.Class

public SrampOntology.Class()
Constructor.

Method Detail

findClass

public SrampOntology.Class findClass(String id)
Recursively finds a class matching the given ID.

Parameters:
id -

findClass

public SrampOntology.Class findClass(URI uri)
Recursively finds a class matching the given URI.

Parameters:
uri -

getLabel

public String getLabel()
Returns:
the label

setLabel

public void setLabel(String label)
Parameters:
label - the label to set

getComment

public String getComment()
Returns:
the comment

setComment

public void setComment(String comment)
Parameters:
comment - the comment to set

getParent

public SrampOntology.Class getParent()
Returns:
the parent

setParent

public void setParent(SrampOntology.Class parent)
Parameters:
parent - the parent to set

getChildren

public List<SrampOntology.Class> getChildren()
Returns:
the children

setChildren

public void setChildren(List<SrampOntology.Class> children)
Parameters:
children - the children to set

getUri

public URI getUri()
Returns:
the uri

setUri

public void setUri(URI uri)
Parameters:
uri - the uri to set

normalize

public Set<URI> normalize()
Normalize the hierarchy into a list of URIs. The returned list of URIs will contain this class and all ancestors.


getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.