Package de.fraunhofer.iese.mydata.timer
Class Timer
- java.lang.Object
-
- de.fraunhofer.iese.mydata.common.MyDataEntity
-
- de.fraunhofer.iese.mydata.timer.Timer
-
@Entity public class Timer extends MyDataEntity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoInternalValidation()internal timer validation: - validate xml schema - validate language version - validate solution and componentsbooleanequals(Object o)static TimerIdextractId(String timer)extracts the timerId from the raw xmlSet<Event>getEvents()SolutionIdgetSolutionId()inthashCode()booleanisDeployed()booleanisLanguageValid()booleanisScopeValid()booleanisXmlValid()voidsetContent(String timerXML)voidsetDeployed(boolean deployed)voidsetLanguageValid(boolean languageValid)voidsetScopeValid(boolean isScopeValid)voidsetXmlValid(boolean xmlValid)-
Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, toString, validate, validateAndNullCheck
-
-
-
-
Constructor Detail
-
Timer
public Timer()
default constructor
-
Timer
public Timer(String xml)
create a new timer based on a xml string- Parameters:
xml-
-
-
Method Detail
-
setContent
public void setContent(String timerXML)
-
extractId
public static TimerId extractId(String timer)
extracts the timerId from the raw xml- Parameters:
timer-- Returns:
- the TimerId
-
isDeployed
public boolean isDeployed()
-
setDeployed
public void setDeployed(boolean deployed)
-
isScopeValid
public boolean isScopeValid()
-
isLanguageValid
public boolean isLanguageValid()
- Returns:
- the languageValid
-
setLanguageValid
public void setLanguageValid(boolean languageValid)
- Parameters:
languageValid- the languageValid to set
-
setScopeValid
public void setScopeValid(boolean isScopeValid)
- Parameters:
isScopeValid- the isScopeValid to set
-
isXmlValid
public boolean isXmlValid()
- Returns:
- the isXmlValid
-
setXmlValid
public void setXmlValid(boolean xmlValid)
- Parameters:
xmlValid- the isXmlValid to set
-
getSolutionId
public SolutionId getSolutionId()
-
doInternalValidation
public void doInternalValidation()
internal timer validation: - validate xml schema - validate language version - validate solution and components
-
-