class ParameterPath extends ParameterNoBody {

	@Override
	public void validate() throws APIRestGeneratorException
	{
		super.validate() ;
		
		String errorString = null ;
		
		if (!this.isRequired())
		{
			errorString = "The 'name' field '" + this.getName()  + "' in PATH must contain a field 'required' as 'true'" ;
		}
		else if (this.getAlias() != null && !this.getAlias().equals(this.getName()))
		{
			// The alias name must be the same than the 'name'
			errorString = "The 'alias' field '" + this.getAlias()  + "' in PATH must be the same than the 'name' value '" + this.getName() + "'" ;
		}
		else if (this.isAutoInjected())
		{
			errorString = "Auto Injection cannot be implemented for path parameters" ;
		}
		
		if (errorString != null)
		{
			ParameterPath.LOGGER.error(errorString) ;
			throw new APIRestGeneratorException(errorString) ;
		}
	}

	public  ParameterPath(final String name,
						 final String alias,
						 final String description,
						 final String required,
						 final String type,
						 final String autoInjected);

}