public final class PropertyInfo extends Object
Constructor and Description |
---|
PropertyInfo(String name,
Class<?> type,
int ordinal)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the property name in
snake_case . |
int |
getOrdinal()
Returns the 0-origin property ordinal.
|
Class<?> |
getType()
Returns the property type.
|
String |
toString() |
public PropertyInfo(String name, Class<?> type, int ordinal)
name
- the property name in snake_case
type
- the property typeordinal
- the property ordinal (0-origin)IllegalArgumentException
- if some parameters were null
public String getName()
snake_case
.
For example, the property getter method with option getHelloWorldOption
corresponds to the property name hello_world
.
public Class<?> getType()
public int getOrdinal()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.