Class FieldModifierImpl

    • Field Detail

      • NOOP_MODIFIER

        private static final FieldModifierImpl NOOP_MODIFIER
        A field modifier that just returns the field value unmodified. This is used to implement the default behavior of the "informal" and "core" modifiers ("real" informal or core variants have to be supplied or calculated by the PersonName object).
      • NULL_MODIFIER

        private static final FieldModifierImpl NULL_MODIFIER
        A field modifier that just returns the empty string. This is used to implement the default behavior of the "prefix" modifier ("real" prefix variants have to be supplied to calculated by the PersonName object).
      • MONOGRAM_MODIFIER

        private static final FieldModifierImpl MONOGRAM_MODIFIER
        A field modifier that simply returns the first grapheme cluster in the field value. This is the default implementation of the "monogram" modifier.
    • Constructor Detail

      • FieldModifierImpl

        FieldModifierImpl()
    • Method Detail

      • modifyField

        public abstract java.lang.String modifyField​(java.lang.String fieldValue)
      • getFirstGrapheme

        private static java.lang.String getFirstGrapheme​(java.lang.String s)
        A utility function that just returns the first grapheme cluster in the string.