/*********************************************************************************************************************************
This class has been automatically generated using KLTT-APIRestGenerator project, don't do manual file modifications.
Thu Jul 19 12:37:49 CEST 2018
"Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
and to You under the Apache License, Version 2.0. "
**********************************************************************************************************************************/
import {RandomValues} from '../utils/random-values.utils' ;
import {ParserValues} from '../utils/parser-values.utils' ;
/**
* No description for the module
*/
export class Subject
{
/**
* Public constructor
*/
constructor(public subjectName: string)
{
this.subjectName = subjectName ;
}
/**
* @param subjectName the subjectName to set
*/
setSubjectName(subjectName)
{
this.subjectName = subjectName ;
}
/**
* @return the subjectName
*/
getSubjectName()
{
return this.subjectName ;
}
/**
* @return the object as string
*/
toString()
{
return JSON.stringify(this, null, 4) ;
}
/**
* @param pendingRecursiveCalls with the pending recursive calls
* @return a new instance of the class with a random values
*/
static generateRandomInstance(pendingRecursiveCalls: number)
{
Iif (pendingRecursiveCalls == 0)
{
return null ;
}
pendingRecursiveCalls -- ;
var subjectName = RandomValues.generateRandomString() ;
return new Subject(subjectName) ;
}
/**
* @param internalValueParseGenerator with the json to be parsed
* @return an instance of this class
*/
static parse(internalValueParseGenerator)
{
var subjectName ;
if (internalValueParseGenerator.subjectName != null && internalValueParseGenerator.subjectName != "undefined")
{
subjectName = ParserValues.stringParser(internalValueParseGenerator.subjectName) ;
}
return new Subject(subjectName) ;
}
};
|