Skip to content

Commit caa11a3

Browse files
committed
Javadoc
1 parent ff23055 commit caa11a3

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ Map<String, StringLookup> getDefaultStringLookups() {
391391
* StringSubstitutor.createInterpolator().replace("... ${base64Decoder:SGVsbG9Xb3JsZCE=} ..."));
392392
* </pre>
393393
* <p>
394-
* The above examples convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
394+
* The examples above convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
395395
* </p>
396396
*/
397397
static final FunctionStringLookup<String> INSTANCE_BASE64_DECODER = FunctionStringLookup
@@ -414,7 +414,7 @@ Map<String, StringLookup> getDefaultStringLookups() {
414414
* StringSubstitutor.createInterpolator().replace("... ${base64Encoder:HelloWorld!} ..."));
415415
* </pre>
416416
* <p>
417-
* The above examples convert {@code "HelloWorld!"} to {@code "SGVsbG9Xb3JsZCE="}.
417+
* The examples above convert {@code "HelloWorld!"} to {@code "SGVsbG9Xb3JsZCE="}.
418418
* </p>
419419
* Defines the singleton for this class.
420420
*/
@@ -438,7 +438,7 @@ Map<String, StringLookup> getDefaultStringLookups() {
438438
* StringSubstitutor.createInterpolator().replace("... ${env:USER} ..."));
439439
* </pre>
440440
* <p>
441-
* The above examples convert (on Linux) {@code "USER"} to the current user name. On Windows 10, you would use {@code "USERNAME"} to the same effect.
441+
* The examples above convert (on Linux) {@code "USER"} to the current user name. On Windows 10, you would use {@code "USERNAME"} to the same effect.
442442
* </p>
443443
*/
444444
static final FunctionStringLookup<String> INSTANCE_ENVIRONMENT_VARIABLES = FunctionStringLookup.on(System::getenv);
@@ -684,7 +684,7 @@ public void addDefaultStringLookups(final Map<String, StringLookup> stringLookup
684684
* StringSubstitutor.createInterpolator().replace("... ${base64Decoder:SGVsbG9Xb3JsZCE=} ..."));
685685
* </pre>
686686
* <p>
687-
* The above examples convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
687+
* The examples above convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
688688
* </p>
689689
*
690690
* @return The Base64DecoderStringLookup singleton instance.
@@ -711,7 +711,7 @@ public StringLookup base64DecoderStringLookup() {
711711
* StringSubstitutor.createInterpolator().replace("... ${base64Encoder:HelloWorld!} ..."));
712712
* </pre>
713713
* <p>
714-
* The above examples convert {@code } to {@code "SGVsbG9Xb3JsZCE="}.
714+
* The examples above convert {@code } to {@code "SGVsbG9Xb3JsZCE="}.
715715
* </p>
716716
*
717717
* @return The Base64EncoderStringLookup singleton instance.
@@ -738,7 +738,7 @@ public StringLookup base64EncoderStringLookup() {
738738
* StringSubstitutor.createInterpolator().replace("... ${base64Decoder:SGVsbG9Xb3JsZCE=} ..."));
739739
* </pre>
740740
* <p>
741-
* The above examples convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
741+
* The examples above convert {@code "SGVsbG9Xb3JsZCE="} to {@code "HelloWorld!"}.
742742
* </p>
743743
*
744744
* @return The Base64DecoderStringLookup singleton instance.
@@ -790,7 +790,7 @@ public <R, U> BiStringLookup<U> biFunctionStringLookup(final BiFunction<String,
790790
* StringSubstitutor.createInterpolator().replace("... ${const:java.awt.event.KeyEvent.VK_ESCAPE} ..."));
791791
* </pre>
792792
* <p>
793-
* The above examples convert {@code java.awt.event.KeyEvent.VK_ESCAPE} to {@code "27"}.
793+
* The examples above convert {@code java.awt.event.KeyEvent.VK_ESCAPE} to {@code "27"}.
794794
* </p>
795795
*
796796
* @return The ConstantStringLookup singleton instance.
@@ -818,7 +818,7 @@ public StringLookup constantStringLookup() {
818818
* StringSubstitutor.createInterpolator().replace("... ${date:yyyy-MM-dd} ..."));
819819
* </pre>
820820
* <p>
821-
* The above examples convert {@code "yyyy-MM-dd"} to todays's date, for example, {@code "2019-08-04"}.
821+
* The examples above convert {@code "yyyy-MM-dd"} to todays's date, for example, {@code "2019-08-04"}.
822822
* </p>
823823
*
824824
* @return The DateStringLookup singleton instance.
@@ -856,7 +856,7 @@ public StringLookup dateStringLookup() {
856856
* new StringSubstitutor(variableResolver).replace("... ${dns:address|apache.org} ...");
857857
* </pre>
858858
* <p>
859-
* The above examples convert {@code "address|apache.org"} to the IP address of {@code apache.org}.
859+
* The examples above convert {@code "address|apache.org"} to the IP address of {@code apache.org}.
860860
* </p>
861861
*
862862
* @return the DnsStringLookup singleton instance.
@@ -883,7 +883,7 @@ public StringLookup dnsStringLookup() {
883883
* StringSubstitutor.createInterpolator().replace("... ${env:USER} ..."));
884884
* </pre>
885885
* <p>
886-
* The above examples convert (on Linux) {@code "USER"} to the current user name. On Windows 10, you would use {@code "USERNAME"} to the same effect.
886+
* The examples above convert (on Linux) {@code "USER"} to the current user name. On Windows 10, you would use {@code "USERNAME"} to the same effect.
887887
* </p>
888888
*
889889
* @return The EnvironmentVariableStringLookup singleton instance.
@@ -946,7 +946,7 @@ public StringLookup environmentVariableStringLookup() {
946946
* StringSubstitutor.createInterpolator().replace("... ${file:UTF-8:com/domain/document.txt} ..."));
947947
* </pre>
948948
* <p>
949-
* The above examples convert {@code "UTF-8:com/domain/document.txt"} to the contents of the file.
949+
* The examples above convert {@code "UTF-8:com/domain/document.txt"} to the contents of the file.
950950
* </p>
951951
*
952952
* @return a file StringLookup instance.
@@ -1017,7 +1017,7 @@ public <R> StringLookup functionStringLookup(final Function<String, R> function)
10171017
* StringSubstitutor.createInterpolator().replace("... ${sys:os.name}, ${env:USER} ..."));
10181018
* </pre>
10191019
* <p>
1020-
* The above examples convert {@code "${sys:os.name}, ${env:USER}"} to the OS name and Linux user name.
1020+
* The examples above convert {@code "${sys:os.name}, ${env:USER}"} to the OS name and Linux user name.
10211021
* </p>
10221022
*
10231023
* @return the default {@link InterpolatorStringLookup}.
@@ -1095,7 +1095,7 @@ public StringLookup interpolatorStringLookup(final StringLookup defaultStringLoo
10951095
* StringSubstitutor.createInterpolator().replace("... ${java:version} ..."));
10961096
* </pre>
10971097
* <p>
1098-
* The above examples convert {@code "version"} to the current VM version, for example, {@code "Java version 1.8.0_181"}.
1098+
* The examples above convert {@code "version"} to the current VM version, for example, {@code "Java version 1.8.0_181"}.
10991099
* </p>
11001100
*
11011101
* @return The JavaPlatformStringLookup singleton instance.
@@ -1127,7 +1127,7 @@ public StringLookup javaPlatformStringLookup() {
11271127
* StringSubstitutor.createInterpolator().replace("... ${localhost:canonical-name} ..."));
11281128
* </pre>
11291129
* <p>
1130-
* The above examples convert {@code "canonical-name"} to the current host name, for example, {@code "EXAMPLE.apache.org"}.
1130+
* The examples above convert {@code "canonical-name"} to the current host name, for example, {@code "EXAMPLE.apache.org"}.
11311131
* </p>
11321132
*
11331133
* @return The InetAddressStringLookup singleton instance.
@@ -1159,7 +1159,7 @@ public StringLookup localHostStringLookup() {
11591159
* StringSubstitutor.createInterpolator().replace("... ${loopbackAddress:canonical-name} ..."));
11601160
* </pre>
11611161
* <p>
1162-
* The above examples convert {@code "canonical-name"} to the current host name, for example, {@code "EXAMPLE.apache.org"}.
1162+
* The examples above convert {@code "canonical-name"} to the current host name, for example, {@code "EXAMPLE.apache.org"}.
11631163
* </p>
11641164
*
11651165
* @return The InetAddressStringLookup singleton instance.
@@ -1195,13 +1195,13 @@ public StringLookup nullStringLookup() {
11951195
* if a lookup causes causes a path to resolve outside of these fences. Otherwise, the result is unfenced to preserved behavior from previous versions.
11961196
* </p>
11971197
* <p>
1198-
* We looks up a value for the key in the format "DocumentPath::MyKey".
1198+
* We looks up a value for the key in the format {@code "DocumentPath::MyKey"}.
11991199
* </p>
12001200
* <p>
12011201
* Note the use of "::" instead of ":" to allow for "C:" drive letters in paths.
12021202
* </p>
12031203
* <p>
1204-
* For example: "com/domain/document.properties::MyKey".
1204+
* For example: {@code "com/domain/document.properties::MyKey"}.
12051205
* </p>
12061206
* <em>Using a fenced StringLookup</em>
12071207
* <p>
@@ -1251,8 +1251,8 @@ public StringLookup nullStringLookup() {
12511251
* StringSubstitutor.createInterpolator().replace("... ${properties:com/domain/document.properties::MyKey} ..."));
12521252
* </pre>
12531253
* <p>
1254-
* The above examples convert {@code "com/domain/document.properties::MyKey"} to the key value in the properties file at the path
1255-
* "com/domain/document.properties".
1254+
* The examples above convert {@code "com/domain/document.properties::MyKey"} to the key value in the properties file at the path
1255+
* {@code "com/domain/document.properties"}.
12561256
* </p>
12571257
*
12581258
* @return a Properties StringLookup instance.
@@ -1326,7 +1326,7 @@ public StringLookup propertiesStringLookup(final Path... fences) {
13261326
* StringSubstitutor.createInterpolator().replace("... ${resourceBundle:com.domain.messages:MyKey} ..."));
13271327
* </pre>
13281328
* <p>
1329-
* The above examples convert {@code "com.domain.messages:MyKey"} to the key value in the resource bundle at {@code "com.domain.messages"}.
1329+
* The examples above convert {@code "com.domain.messages:MyKey"} to the key value in the resource bundle at {@code "com.domain.messages"}.
13301330
* </p>
13311331
*
13321332
* @return The ResourceBundleStringLookup singleton instance.
@@ -1392,7 +1392,7 @@ public StringLookup resourceBundleStringLookup(final String bundleName) {
13921392
* String value = new StringSubstitutor(variableResolver).replace("${script:javascript:3 + 4}");
13931393
* </pre>
13941394
* <p>
1395-
* The above examples convert {@code "javascript:3 + 4"} to {@code "7"}.
1395+
* The examples above convert {@code "javascript:3 + 4"} to {@code "7"}.
13961396
* </p>
13971397
*
13981398
* @return The ScriptStringLookup singleton instance.
@@ -1420,7 +1420,7 @@ public StringLookup scriptStringLookup() {
14201420
* StringSubstitutor.createInterpolator().replace("... ${sys:os.name} ..."));
14211421
* </pre>
14221422
* <p>
1423-
* The above examples convert {@code "os.name"} to the operating system name.
1423+
* The examples above convert {@code "os.name"} to the operating system name.
14241424
* </p>
14251425
*
14261426
* @return The SystemPropertyStringLookup singleton instance.
@@ -1452,7 +1452,7 @@ public StringLookup systemPropertyStringLookup() {
14521452
* StringSubstitutor.createInterpolator().replace("... ${urlDecoder:Hello%20World%21} ..."));
14531453
* </pre>
14541454
* <p>
1455-
* The above examples convert {@code "Hello%20World%21"} to {@code "Hello World!"}.
1455+
* The examples above convert {@code "Hello%20World%21"} to {@code "Hello World!"}.
14561456
* </p>
14571457
*
14581458
* @return The UrlStringLookup singleton instance.
@@ -1485,7 +1485,7 @@ public StringLookup urlDecoderStringLookup() {
14851485
* StringSubstitutor.createInterpolator().replace("... ${urlEncoder:Hello World!} ..."));
14861486
* </pre>
14871487
* <p>
1488-
* The above examples convert {@code "Hello World!"} to {@code "Hello%20World%21"}.
1488+
* The examples above convert {@code "Hello World!"} to {@code "Hello%20World%21"}.
14891489
* </p>
14901490
*
14911491
* @return The UrlStringLookup singleton instance.
@@ -1528,7 +1528,7 @@ public StringLookup urlEncoderStringLookup() {
15281528
* String value = new StringSubstitutor(variableResolver).replace("${url:UTF-8:https://www.apache.org}");
15291529
* </pre>
15301530
* <p>
1531-
* The above examples convert {@code "UTF-8:https://www.apache.org"} to the contents of that page.
1531+
* The examples above convert {@code "UTF-8:https://www.apache.org"} to the contents of that page.
15321532
* </p>
15331533
*
15341534
* @return The UrlStringLookup singleton instance.
@@ -1561,7 +1561,7 @@ public StringLookup urlStringLookup() {
15611561
* StringSubstitutor.createInterpolator().replace("... ${xmlDecoder:&amp;lt;element&amp;gt;} ..."));
15621562
* </pre>
15631563
* <p>
1564-
* The above examples convert {@code "&lt;element&gt;"} to {@code "<element>"}.
1564+
* The examples above convert {@code "&lt;element&gt;"} to {@code "<element>"}.
15651565
* </p>
15661566
*
15671567
* @return The XmlDecoderStringLookup singleton instance.
@@ -1594,7 +1594,7 @@ public StringLookup xmlDecoderStringLookup() {
15941594
* StringSubstitutor.createInterpolator().replace("... ${xmlEncoder:&lt;element&gt;} ..."));
15951595
* </pre>
15961596
* <p>
1597-
* The above examples convert {@code "<element>"} to {@code "&lt;element&gt;"}.
1597+
* The examples above convert {@code "<element>"} to {@code "&lt;element&gt;"}.
15981598
* </p>
15991599
*
16001600
* @return The XmlEncoderStringLookup singleton instance.
@@ -1631,7 +1631,7 @@ public StringLookup xmlEncoderStringLookup() {
16311631
* StringSubstitutor.createInterpolator().replace("... ${xml:com/domain/document.xml:/path/to/node} ..."));
16321632
* </pre>
16331633
* <p>
1634-
* The above examples convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
1634+
* The examples above convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
16351635
* </p>
16361636
*
16371637
* @return An XML StringLookup instance.
@@ -1648,10 +1648,10 @@ public StringLookup xmlStringLookup() {
16481648
* if a lookup causes causes a path to resolve outside of these fences. Otherwise, the result is unfenced to preserved behavior from previous versions.
16491649
* </p>
16501650
* <p>
1651-
* We look up the value for the key in the format "DocumentPath:XPath".
1651+
* We look up the value for the key in the format {@code "DocumentPath:XPath"}.
16521652
* </p>
16531653
* <p>
1654-
* For example: "com/domain/document.xml:/path/to/node".
1654+
* For example: {@code "com/domain/document.xml:/path/to/node"}.
16551655
* </p>
16561656
* <p>
16571657
* Using a {@link StringLookup} from the {@link StringLookupFactory}:
@@ -1668,7 +1668,7 @@ public StringLookup xmlStringLookup() {
16681668
* StringSubstitutor.createInterpolator().replace("... ${xml:com/domain/document.xml:/path/to/node} ..."));
16691669
* </pre>
16701670
* <p>
1671-
* The above examples convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
1671+
* The examples above convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
16721672
* </p>
16731673
*
16741674
* @param xPathFactoryFeatures XPathFactory features to set.
@@ -1687,10 +1687,10 @@ public StringLookup xmlStringLookup(final Map<String, Boolean> xPathFactoryFeatu
16871687
* if a lookup causes causes a path to resolve outside of these fences. Otherwise, the result is unfenced to preserved behavior from previous versions.
16881688
* </p>
16891689
* <p>
1690-
* We look up the value for the key in the format "DocumentPath:XPath".
1690+
* We look up the value for the key in the format {@code "DocumentPath:XPath"}.
16911691
* </p>
16921692
* <p>
1693-
* For example: "com/domain/document.xml:/path/to/node".
1693+
* For example: {@code "com/domain/document.xml:/path/to/node"}.
16941694
* </p>
16951695
* <p>
16961696
* Using a {@link StringLookup} from the {@link StringLookupFactory} fenced by the current directory ({@code Paths.get("")}):
@@ -1713,7 +1713,7 @@ public StringLookup xmlStringLookup(final Map<String, Boolean> xPathFactoryFeatu
17131713
* StringLookupFactory.INSTANCE.xmlStringLookup(Paths.get("")).lookup("../com/domain/document.xml:/path/to/node");
17141714
* </pre>
17151715
* <p>
1716-
* The above examples convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
1716+
* The examples above convert {@code "com/domain/document.xml:/path/to/node"} to the value of the XPath in the XML document.
17171717
* </p>
17181718
* <p>
17191719
* {@link StringSubstitutor} methods like {@link StringSubstitutor#replace(String)} will throw a {@link IllegalArgumentException} when a file doesn't

0 commit comments

Comments
 (0)