Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for the accessibility vocab #948

Merged
merged 2 commits into from
Jan 21, 2019
Merged

Better support for the accessibility vocab #948

merged 2 commits into from
Jan 21, 2019

Conversation

rdeltour
Copy link
Member

Accessibility vocab

  • recognize a11y as a reserved prefix
  • define meta and link rel voabularies for Accessibility properties
  • add tests

Fixes #810

EnumVocab API refactoring

  • add a new EnumVocab constructors with a CaseFormat option to be able to define the rules from converting from the Enum constant to the property name. When not specified, the default case format is LOWER_HYPHEN.
  • replace the ENUM_TO_NAME static function by a Converter class member (initialized based on the given case format)
  • add public methods getName(P) and getNames(Collection<P>) to get the string value of property names based on their Enum constant.
  • add tests for a vocab specifying the LOWER_CAMEL case format

- add a new EnumVocab constructors with a `CaseFormat` option to be
  able to define the rules from converting from the Enum constant to
  the property name.
  When not specified, the default case format is `LOWER_HYPHEN`.
  See https://google.github.io/guava/releases/snapshot/api/docs/com/google/common/base/CaseFormat.html
- replace the `ENUM_TO_NAME` static function by a `Converter` class
  member (initialized based on the given case format)
- add public methods `getName(P)` and `getNames(Collection<P>)` to get
  the string value of property names based on their Enum constant.
- add tests for a vocab specifying the `LOWER_CAMEL` case format
- recognize `a11y` as a reserved prefix
- define meta and link rel voabularies for Accessibility properties
- add tests

Fixes #810
@rdeltour rdeltour added the status: needs review Needs to be reviewed by a team member before further processing label Jan 19, 2019
@rdeltour rdeltour added this to the 4.1.1 milestone Jan 19, 2019
@rdeltour rdeltour self-assigned this Jan 19, 2019
@rdeltour rdeltour requested a review from mattgarrish January 19, 2019 10:45
@rdeltour rdeltour merged commit 8a9cf63 into master Jan 21, 2019
@rdeltour rdeltour deleted the fix/a11y-vocab branch January 21, 2019 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs review Needs to be reviewed by a team member before further processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OPF : Undeclared prefix: 'a11y'
2 participants