de.cau.cs.kieler.kex.model
Class Example

java.lang.Object
  extended by de.cau.cs.kieler.kex.model.Example

public class Example
extends Object

The mainmodel class of KEX. This model has all attributes for an KEX example.

Rating red

Constructor Summary
Example(String id, String title, String categoryId, SourceType sourceTypeParam)
          Creates a new example model.
 
Method Summary
 void addResources(List<ExampleResource> exampleResources)
          adds new example resources to example.
 boolean contains(String categoryIdParam)
          Searches for a category.
 String getAuthor()
          Getter for example author.
 String getCategoryId()
          Getter for example categoryId.
 String getContact()
          Getter for contact.
 String getDescription()
          Getter for example description.
 Date getGenerationDate()
          Getter for generationdate.
 String getId()
          Getter for example id.
 String getNamespaceId()
          Getter for example namespace id.
 String getOverviewPic()
          Getter for example overview picture.
 List<ExampleResource> getResources()
          Getter for example resources.
 String getRootDir()
          Getter for root directory.
 SourceType getSourceType()
          Getter for sourcetype.
 String getTitle()
          Getter for example title.
 boolean isProject()
          checks if the example resources contains a project.
 void setAuthor(String authorParam)
          Setter for example author.
 void setContact(String contactParam)
          Setter for example contact.
 void setDescription(String descriptionParam)
          Setter for example description.
 void setNamespaceId(String namespaceIdParam)
          Setter for example namespaceId.
 void setOverviewPic(String overviewPicParam)
          Setter for example overviewPic.
 void setRootDir(String rootDirParam)
          Setter for example root directory.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Example

public Example(String id,
               String title,
               String categoryId,
               SourceType sourceTypeParam)
Creates a new example model.

Parameters:
id - , String
title - , String
categoryId - , Category
sourceTypeParam - , SourceType
Method Detail

toString

public String toString()
Overrides:
toString in class Object

contains

public boolean contains(String categoryIdParam)
Searches for a category.

Parameters:
categoryIdParam - , String
Returns:
boolean

getGenerationDate

public Date getGenerationDate()
Getter for generationdate.

Returns:
Date

getSourceType

public SourceType getSourceType()
Getter for sourcetype.

Returns:
SourceType

addResources

public void addResources(List<ExampleResource> exampleResources)
adds new example resources to example.

Parameters:
exampleResources - List of ExampleResources

getResources

public List<ExampleResource> getResources()
Getter for example resources.

Returns:
List of ExampleResources

setDescription

public void setDescription(String descriptionParam)
Setter for example description.

Parameters:
descriptionParam - , String

getDescription

public String getDescription()
Getter for example description.

Returns:
String

getContact

public String getContact()
Getter for contact.

Returns:
String

setContact

public void setContact(String contactParam)
Setter for example contact.

Parameters:
contactParam - , String

setNamespaceId

public void setNamespaceId(String namespaceIdParam)
Setter for example namespaceId.

Parameters:
namespaceIdParam - , String

getNamespaceId

public String getNamespaceId()
Getter for example namespace id.

Returns:
String

setRootDir

public void setRootDir(String rootDirParam)
Setter for example root directory.

Parameters:
rootDirParam - , String

getRootDir

public String getRootDir()
Getter for root directory.

Returns:
String

setAuthor

public void setAuthor(String authorParam)
Setter for example author.

Parameters:
authorParam - , String

getAuthor

public String getAuthor()
Getter for example author.

Returns:
String

setOverviewPic

public void setOverviewPic(String overviewPicParam)
Setter for example overviewPic.

Parameters:
overviewPicParam - , String

getOverviewPic

public String getOverviewPic()
Getter for example overview picture.

Returns:
String

isProject

public boolean isProject()
checks if the example resources contains a project.

Returns:
boolean

getId

public String getId()
Getter for example id.

Returns:
String

getTitle

public String getTitle()
Getter for example title.

Returns:
String

getCategoryId

public String getCategoryId()
Getter for example categoryId.

Returns:
String