public interface PageNameValidatorService
PageNameValidatorService
handles the validation and creation of valid jcr name
out of any given arbitrary string.Modifier and Type | Field and Description |
---|---|
static String |
NON_VALID_CHARS
Non-valid name characters.
|
Modifier and Type | Method and Description |
---|---|
String |
createValidName(String name,
Locale locale,
String defaultReplacementCharacter)
Create a valid label out of an arbitrary string with a custom character
mapping.
|
boolean |
isValidName(String name)
Checks if the name is not empty and contains only valid jcr chars.
|
static final String NON_VALID_CHARS
String createValidName(String name, Locale locale, String defaultReplacementCharacter)
name
- name to be converted to valid formlocale
- the locale whose conversion rules are to be useddefaultReplacementCharacter
- the default character to use for characters not mapped in the service tableboolean isValidName(String name)
name
- the name to checktrue
if the name is validCopyright © 2010 - 2020 Adobe. All Rights Reserved