public class ValidationUtility
extends java.lang.Object
Constructor and Description |
---|
ValidationUtility() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIfkommuneplantillaegHasKommuneplanramme(PdkWsCommon endpoint,
java.lang.Integer kommuneplantillaegPlanid) |
static boolean |
checkIfkommuneplantillaegHasRetningslinje(PdkWsCommon endpoint,
java.lang.Integer kommuneplantillaegPlanid) |
static void |
checkIfPlanTypeIsActive(PdkWsCommon endpoint,
FeatureBase fc) |
static boolean |
fieldIsTrueAndNotNull(java.lang.String FIELD_NAME,
Row row) |
static FeatureBase |
getChildFeature(FeatureBase fcParent,
java.lang.String featureName,
java.util.List<FeatureBase> featureList) |
static boolean |
getChildFeatureHasValue(FeatureBase fcParent,
java.lang.String fieldName,
java.util.List<FeatureBase> featureList) |
static int |
getIndexFromFeatureList(FeatureBase planFeature,
java.util.List<FeatureBase> featureList) |
static java.lang.Boolean |
getIsComplex(FeatureBase fc) |
static boolean |
hasAbesteemmelser(FeatureBase fcParent,
java.lang.String featureName,
java.util.List<FeatureBase> featureList) |
static boolean |
isDraftVersion(FeatureBase fc) |
static void |
throwErrorIfFieldIsMissing(Row row,
java.lang.String fieldName) |
static void |
throwErrorIfFieldIsMissing(Row row,
java.lang.String fieldName,
java.lang.String fieldNameCause) |
static void |
throwErrorIfFieldIsNotMissing(Row row,
java.lang.String fieldName,
java.lang.String fieldNameCause) |
static void |
validateAnvgen(PdkWsCommon endpoint,
FeatureBase fc) |
static void |
validateEarealh(PdkWsCommon endpoint,
FeatureBase fc) |
static void |
validateForOverlapOfDelomraaderWithDifferentZoneInDb(PdkWsCommon endpoint,
FeatureBase lokalplandelomraadeCurrent,
java.util.List<java.lang.Integer> ignorePlanidList) |
static void |
validateLandzonetilladelseDatotilbag(PdkWsCommon endpoint,
FeatureBase fbLandzone) |
static void |
validateM3m2h(PdkWsCommon endpoint,
FeatureBase fc) |
static void |
validateZoneOfDelomraaderOfLokalplanInDb(PdkWsCommon endpoint,
java.lang.Integer planidOfLokalplan,
java.lang.Integer zone,
java.util.List<java.lang.Integer> ignorePlanidList) |
public static void throwErrorIfFieldIsMissing(Row row, java.lang.String fieldName) throws java.lang.Exception
java.lang.Exception
public static void throwErrorIfFieldIsMissing(Row row, java.lang.String fieldName, java.lang.String fieldNameCause) throws java.lang.Exception
java.lang.Exception
public static void throwErrorIfFieldIsNotMissing(Row row, java.lang.String fieldName, java.lang.String fieldNameCause) throws java.lang.Exception
java.lang.Exception
public static java.lang.Boolean getIsComplex(FeatureBase fc)
public static boolean isDraftVersion(FeatureBase fc)
public static boolean fieldIsTrueAndNotNull(java.lang.String FIELD_NAME, Row row)
public static int getIndexFromFeatureList(FeatureBase planFeature, java.util.List<FeatureBase> featureList)
public static boolean hasAbesteemmelser(FeatureBase fcParent, java.lang.String featureName, java.util.List<FeatureBase> featureList) throws java.lang.Exception
java.lang.Exception
public static FeatureBase getChildFeature(FeatureBase fcParent, java.lang.String featureName, java.util.List<FeatureBase> featureList) throws java.lang.Exception
java.lang.Exception
public static boolean getChildFeatureHasValue(FeatureBase fcParent, java.lang.String fieldName, java.util.List<FeatureBase> featureList) throws java.lang.Exception
java.lang.Exception
public static void validateAnvgen(PdkWsCommon endpoint, FeatureBase fc) throws java.lang.Exception
java.lang.Exception
public static void validateM3m2h(PdkWsCommon endpoint, FeatureBase fc) throws java.lang.Exception
java.lang.Exception
public static void validateEarealh(PdkWsCommon endpoint, FeatureBase fc) throws java.lang.Exception
java.lang.Exception
public static void validateZoneOfDelomraaderOfLokalplanInDb(PdkWsCommon endpoint, java.lang.Integer planidOfLokalplan, java.lang.Integer zone, java.util.List<java.lang.Integer> ignorePlanidList) throws java.lang.Exception
java.lang.Exception
public static void validateForOverlapOfDelomraaderWithDifferentZoneInDb(PdkWsCommon endpoint, FeatureBase lokalplandelomraadeCurrent, java.util.List<java.lang.Integer> ignorePlanidList) throws java.lang.Exception
java.lang.Exception
public static boolean checkIfkommuneplantillaegHasKommuneplanramme(PdkWsCommon endpoint, java.lang.Integer kommuneplantillaegPlanid) throws java.lang.Exception
java.lang.Exception
public static boolean checkIfkommuneplantillaegHasRetningslinje(PdkWsCommon endpoint, java.lang.Integer kommuneplantillaegPlanid) throws java.lang.Exception
java.lang.Exception
public static void checkIfPlanTypeIsActive(PdkWsCommon endpoint, FeatureBase fc) throws java.lang.Exception
java.lang.Exception
public static void validateLandzonetilladelseDatotilbag(PdkWsCommon endpoint, FeatureBase fbLandzone) throws java.lang.Exception
java.lang.Exception