Package jodd.props

Class PropsEntry


  • public class PropsEntry
    extends java.lang.Object
    Holds props value.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropsEntry​(java.lang.String key, java.lang.String value, java.lang.String profile, PropsData propsData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      Returns property key.
      java.lang.String getProfile()
      Returns property profile or null if this is a base property.
      java.lang.String getValue()
      Returns the raw value.
      java.lang.String getValue​(java.lang.String... profiles)
      Returns the property value, with replaced macros.
      boolean hasMacro()
      Returns true if value has a macro to resolve.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • value

        protected final java.lang.String value
        Original value.
      • key

        protected final java.lang.String key
      • profile

        protected final java.lang.String profile
      • hasMacro

        protected final boolean hasMacro
      • propsData

        protected final PropsData propsData
    • Constructor Detail

      • PropsEntry

        public PropsEntry​(java.lang.String key,
                          java.lang.String value,
                          java.lang.String profile,
                          PropsData propsData)
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Returns the raw value. Macros are not replaced.
      • getValue

        public java.lang.String getValue​(java.lang.String... profiles)
        Returns the property value, with replaced macros.
      • getKey

        public java.lang.String getKey()
        Returns property key.
      • getProfile

        public java.lang.String getProfile()
        Returns property profile or null if this is a base property.
      • hasMacro

        public boolean hasMacro()
        Returns true if value has a macro to resolve.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object