io.github.mivek.facade.AbstractWeatherCodeFacade Maven / Gradle / Ivy
package io.github.mivek.facade;
import io.github.mivek.model.AbstractWeatherCode;
import io.github.mivek.parser.AbstractParser;
/**
* Abstract facade.
* @author mivek
* Abstract class for facade.
* @param a concrete sub-class of {@link AbstractWeatherCode}.
*/
public abstract class AbstractWeatherCodeFacade implements IWeatherCodeFacade {
/**
* Const for icao length.
*/
public static final int ICAO = 4;
/**
* The parser.
*/
private AbstractParser fParser;
/**
* Protected constructor to be used by sub-classes.
* @param pParser the parser to set.
*/
protected AbstractWeatherCodeFacade(final AbstractParser pParser) {
fParser = pParser;
}
/**
* @return the parser.
*/
protected AbstractParser getParser() {
return fParser;
}
}