|Constructor and Description|
Constructor with a getProperty.
|Modifier and Type||Method and Description|
Learn whether a String contains replaceable properties.
Get the project.
Return any property that can be parsed from the specified position in the specified String.
Decode properties from a String representation.
public Project getProject()
public java.lang.Object parseProperties(java.lang.String value)
valueparameter (unsurprisingly) at the beginning and asks each
PropertyExpanderwhether there is a property reference at that point. PropertyExpanders return the name of a property they may find and may advance the parse position.
nullthe method continues with the next PropertyExpander, otherwise it tries to look up the property's value using the configured
If the entire contents of
value resolves to a
single property, the looked up property value is returned.
Otherwise a String is returned that concatenates the
non-property parts of
value and the expanded
values of the properties that have been found.
value- The string to be scanned for property references. May be
null, in which case this method returns immediately with no effect.
nullif the original string is
public boolean containsProperties(java.lang.String value)
Uses the configured
PropertyExpanders and scans through the string. Returns true
as soon as any expander finds a property.
value- the String to check.
valuecontains property notation.
public java.lang.Object parseNextProperty(java.lang.String value, java.text.ParsePosition pos)
value- String to parse