Class Builders.ElementSpecBuilder
java.lang.Object
eu.dnetlib.validator2.validation.guideline.Builders.ElementSpecBuilder
- Enclosing class:
- Builders
-
Method Summary
Modifier and TypeMethodDescriptionallowedValues(TestResultPredicate<String> allowedValuesPredicate) allowedValues(String... allowedValues) atPosition(ElementPosition elementOccurrence) build()toString()valueMustStartWith(String prefix) withMandatoryAttribute(String attributeName) withMandatoryAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) withMandatoryAttribute(String attributeName, String... allowedValues) withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule) withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule, TestResultPredicate<String> allowedValuesPredicate) withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule, String... allowedValues) withOptionalAttribute(String attributeName) withOptionalAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) withOptionalAttribute(String attributeName, String... allowedValues) withRecommendedAttribute(String attributeName) withRecommendedAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) withRecommendedAttribute(String attributeName, String... allowedValues) withSubElement(Builders.ElementSpecBuilder subElementSpecBuilder)
-
Method Details
-
inContext
-
allowedValues
-
allowedValues
public Builders.ElementSpecBuilder allowedValues(TestResultPredicate<String> allowedValuesPredicate) -
atPosition
-
valueMustStartWith
-
withOptionalAttribute
-
withOptionalAttribute
public Builders.ElementSpecBuilder withOptionalAttribute(String attributeName, String... allowedValues) -
withOptionalAttribute
public Builders.ElementSpecBuilder withOptionalAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) -
withRecommendedAttribute
-
withRecommendedAttribute
public Builders.ElementSpecBuilder withRecommendedAttribute(String attributeName, String... allowedValues) -
withRecommendedAttribute
public Builders.ElementSpecBuilder withRecommendedAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) -
withMandatoryAttribute
-
withMandatoryAttribute
public Builders.ElementSpecBuilder withMandatoryAttribute(String attributeName, String... allowedValues) -
withMandatoryAttribute
public Builders.ElementSpecBuilder withMandatoryAttribute(String attributeName, TestResultPredicate<String> allowedValuesPredicate) -
withMandatoryIfApplicableAttribute
public Builders.ElementSpecBuilder withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule) -
withMandatoryIfApplicableAttribute
public Builders.ElementSpecBuilder withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule, String... allowedValues) -
withMandatoryIfApplicableAttribute
public Builders.ElementSpecBuilder withMandatoryIfApplicableAttribute(String attributeName, Rule<Document> applicabilityRule, TestResultPredicate<String> allowedValuesPredicate) -
withSubElement
public Builders.ElementSpecBuilder withSubElement(Builders.ElementSpecBuilder subElementSpecBuilder) -
build
-
toString
-