Class BagInfoRequirement
java.lang.Object
nl.knaw.dans.bagit.conformance.profile.BagInfoRequirement
This class is used to define elements in a bag-info.txt file used by a bagit-profile.
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
-
Constructor Summary
ConstructorDescriptionBagInfoRequirement
(boolean required, List<String> acceptableValues) Constructs a new BagInfoRequirement settingrepeatable
to true (default).BagInfoRequirement
(boolean required, List<String> acceptableValues, boolean repeatable) Constructs a new BagInfoRequirement. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
void
setAcceptableValues
(List<String> acceptableValues) void
setRepeatable
(boolean repeatable) void
setRequired
(boolean required) toString()
-
Field Details
-
required
private boolean required -
acceptableValues
-
repeatable
private boolean repeatable
-
-
Constructor Details
-
BagInfoRequirement
public BagInfoRequirement() -
BagInfoRequirement
Constructs a new BagInfoRequirement settingrepeatable
to true (default).- Parameters:
required
- Indicates whether or not the tag is required.acceptableValues
- List of acceptable values.
-
BagInfoRequirement
Constructs a new BagInfoRequirement.- Parameters:
required
- Indicates whether or not the tag is required.acceptableValues
- List of acceptable values.repeatable
- Indicates whether or not the tag is repeatable.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
isRequired
public boolean isRequired() -
setRequired
public void setRequired(boolean required) -
getAcceptableValues
-
setAcceptableValues
-
isRepeatable
public boolean isRepeatable() -
setRepeatable
public void setRepeatable(boolean repeatable)
-