Class StringPart

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String part  
      private int position  
      • Fields inherited from interface org.jboss.logging.processor.validation.FormatPart

        STRING
    • Constructor Summary

      Constructors 
      Constructor Description
      StringPart​(int position, java.lang.String part)
      Creates a new string part.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int index()
      The parameter index.
      static StringPart of​(int position, java.lang.String part)
      Creates a new string part.
      java.lang.String part()
      The part of the format.
      int position()
      The position for the part.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • position

        private final int position
      • part

        private final java.lang.String part
    • Constructor Detail

      • StringPart

        public StringPart​(int position,
                          java.lang.String part)
        Creates a new string part.
        Parameters:
        position - the position.
        part - the string.
    • Method Detail

      • of

        public static StringPart of​(int position,
                                    java.lang.String part)
        Creates a new string part.
        Parameters:
        position - the position.
        part - the string.
        Returns:
        the string part.
      • index

        public int index()
        Description copied from interface: FormatPart
        The parameter index. For default strings (non-parameters) the value is -2.
        Returns:
        the index.
      • position

        public int position()
        Description copied from interface: FormatPart
        The position for the part.
        Returns:
        the position.
      • part

        public java.lang.String part()
        Description copied from interface: FormatPart
        The part of the format.
        Returns:
        the part of the format.