public class PojoProperty extends Object
Pojo
. fooBar
, an indexed property such as fooBar[42]
or a mapped property such as fooBar['my.key']
. Modifier and Type | Field and Description |
---|---|
private Integer |
index |
private String |
key |
private String |
name |
Constructor and Description |
---|
PojoProperty(String propertyName)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getIndex()
This method gets the optional index.
|
String |
getKey()
This method gets the optional key.
|
String |
getName()
This method gets the plain name of the property.
|
private final String name
private final Integer index
private final String key
public PojoProperty(String propertyName)
propertyName
- is the raw property-name.public String getName()
propertyName | new PojoProperty (propertyName).getName() |
---|---|
fooBar | fooBar |
foo[42] | foo |
bar['key'] | bar |
public Integer getIndex()
null
if this PojoProperty
does NOT represent an indexed property.public String getKey()
null
if this PojoProperty
does NOT represent a mapped property.Copyright © 2001–2016 mmm-Team. All rights reserved.