001package org.hl7.fhir.dstu3.utils.validation.constants;
002
003public enum ReferenceValidationPolicy {
004  IGNORE,
005  CHECK_TYPE_IF_EXISTS,
006  CHECK_EXISTS,
007  CHECK_EXISTS_AND_TYPE,
008  CHECK_VALID;
009
010  public boolean checkExists() {
011    return this == CHECK_EXISTS_AND_TYPE || this == CHECK_EXISTS || this == CHECK_VALID;
012  }
013
014  public boolean checkType() {
015    return this == CHECK_TYPE_IF_EXISTS || this == CHECK_EXISTS_AND_TYPE || this == CHECK_VALID;
016  }
017
018  public boolean checkValid() {
019    return this == CHECK_VALID;
020  }
021}