/usr/share/doc/libognl-java/LanguageGuide/properties.html is in libognl-java-doc 2.7.3-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 | <html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Referring to Properties</title><link href="../docbook.css" type="text/css" rel="stylesheet"><meta content="DocBook XSL Stylesheets V1.78.1" name="generator"><link rel="home" href="index.html" title="OGNL Language Guide"><link rel="up" href="basicExpressions.html" title="Chapter 4. Expressions"><link rel="prev" href="basicExpressions.html" title="Chapter 4. Expressions"><link rel="next" href="indexing.html" title="Indexing"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Referring to Properties</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="basicExpressions.html"><img src="../images/navigation/prev.gif" alt="Prev"></a> </td><th align="center" width="60%">Chapter 4. Expressions</th><td align="right" width="20%"> <a accesskey="n" href="indexing.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="properties"></a>Referring to Properties</h2></div></div></div><p><acronym class="acronym">OGNL</acronym> treats different kinds of objects differently in its handling of property references. Maps treat all property references as element lookups or storage, with the property name as the key. Lists and arrays
treat numeric properties similarly, with the property name as the index, but string properties the same way ordinary objects do. Ordinary objects (that is, all other kinds) only can handle string properties and do so by using
"get" and "set" methods (or "is" and "set"), if the object has them, or a field with the given name otherwise.</p><p>Note the new terminology here. Property "names" can be of any type, not just Strings. But to refer to non-String properties, you must use what we have been calling the "index" notation. For example, to get the length
of an array, you can use this expression:</p><pre class="programlisting">array.length</pre><p>But to get at element 0 of the array, you must use an expression like this:</p><pre class="programlisting">array[0]</pre><p>Note that Java collections have some special properties associated with them. See <a class="xref" href="specialCollectionsProperties.html" title="Pseudo-Properties for Collections">the section called “Pseudo-Properties for Collections”</a>for these properties.</p></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="basicExpressions.html"><img src="../images/navigation/prev.gif" alt="Prev"></a> </td><td align="center" width="20%"><a accesskey="u" href="basicExpressions.html"><img src="../images/navigation/up.gif" alt="Up"></a></td><td align="right" width="40%"> <a accesskey="n" href="indexing.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr><tr><td valign="top" align="left" width="40%">Chapter 4. Expressions </td><td align="center" width="20%"><a accesskey="h" href="index.html"><img src="../images/navigation/home.gif" alt="Home"></a></td><td valign="top" align="right" width="40%"> Indexing</td></tr></table></div></body></html>
|