arelle.oim.tc.value_validator¶
See COPYRIGHT.md for copyright information.
Module Contents¶
Classes¶
API¶
- class arelle.oim.tc.value_validator.ValueConstraintValidator(constraint: arelle.oim.tc.metadata.model.TCValueConstraint, namespaces: collections.abc.Mapping[str, str])¶
Initialization
- validate(value: str) bool¶
- first_violation(value: str) str | None¶
Returns the tcre error code for the first constraint the value violates, or None if it satisfies all.