org.overlord.sramp.common.ontology
Class SrampOntology

java.lang.Object
  extended by org.overlord.sramp.common.ontology.SrampOntology

public class SrampOntology
extends Object

Models an s-ramp ontology.

Author:
eric.wittmann@redhat.com

Nested Class Summary
static class SrampOntology.Class
          Models a single class in an s-ramp ontology.
 
Constructor Summary
SrampOntology()
          Constructor.
 
Method Summary
 SrampOntology.Class createClass(String id)
          Creates a new class within this ontology.
 SrampOntology.Class findClass(String id)
          Finds a class by its unique id within the ontology.
 SrampOntology.Class findClass(URI uri)
          Finds a class by its unique URI.
 List<SrampOntology.Class> getAllClasses()
           
 String getBase()
           
 String getComment()
           
 String getCreatedBy()
           
 Date getCreatedOn()
           
 String getId()
           
 String getLabel()
           
 String getLastModifiedBy()
           
 Date getLastModifiedOn()
           
 List<SrampOntology.Class> getRootClasses()
           
 String getUuid()
           
 void setBase(String base)
           
 void setComment(String comment)
           
 void setCreatedBy(String createdBy)
           
 void setCreatedOn(Date createdOn)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setLastModifiedBy(String lastModifiedBy)
           
 void setLastModifiedOn(Date lastModifiedOn)
           
 void setRootClasses(List<SrampOntology.Class> rootClasses)
           
 void setUuid(String uuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrampOntology

public SrampOntology()
Constructor.

Method Detail

getUuid

public String getUuid()
Returns:
the uuid

setUuid

public void setUuid(String uuid)
Parameters:
uuid - the uuid to set

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

getBase

public String getBase()
Returns:
the base

setBase

public void setBase(String base)
Parameters:
base - the base to set

getId

public String getId()
Returns:
the id

setId

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

getRootClasses

public List<SrampOntology.Class> getRootClasses()
Returns:
the rootClasses

getAllClasses

public List<SrampOntology.Class> getAllClasses()
Returns:
a list of all clases in the ontology

setRootClasses

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

createClass

public SrampOntology.Class createClass(String id)
Creates a new class within this ontology.

Parameters:
id -

findClass

public SrampOntology.Class findClass(String id)
Finds a class by its unique id within the ontology.

Parameters:
id -

findClass

public SrampOntology.Class findClass(URI uri)
Finds a class by its unique URI.

Parameters:
uri -

getCreatedBy

public String getCreatedBy()
Returns:
the createdBy

setCreatedBy

public void setCreatedBy(String createdBy)
Parameters:
createdBy - the createdBy to set

getCreatedOn

public Date getCreatedOn()
Returns:
the createdOn

setCreatedOn

public void setCreatedOn(Date createdOn)
Parameters:
createdOn - the createdOn to set

getLastModifiedBy

public String getLastModifiedBy()
Returns:
the lastModifiedBy

setLastModifiedBy

public void setLastModifiedBy(String lastModifiedBy)
Parameters:
lastModifiedBy - the lastModifiedBy to set

getLastModifiedOn

public Date getLastModifiedOn()
Returns:
the lastModifiedOn

setLastModifiedOn

public void setLastModifiedOn(Date lastModifiedOn)
Parameters:
lastModifiedOn - the lastModifiedOn to set


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