public abstract static class ConfigModel.Property extends Object
Modifier and Type | Field and Description |
---|---|
List<String> |
annotations |
String |
xmlName |
Modifier | Constructor and Description |
---|---|
protected |
Property(String xmlName) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
get(Dom dom,
Type returnType)
Gets the value from
Dom in the specified type. |
List<String> |
getAnnotations() |
abstract boolean |
isCollection()
Is multiple values allowed?
|
abstract boolean |
isLeaf() |
abstract void |
set(Dom dom,
Object arg)
Sets the value to
Dom . |
String |
xmlName()
XML name of the property, like "abc-def".
|
protected Property(String xmlName)
public final String xmlName()
public abstract boolean isLeaf()
public abstract boolean isCollection()
public abstract Object get(Dom dom, Type returnType)
Dom
in the specified type.dom
- The DOM instance to get the value from.returnType
- The expected type of the returned object.
Valid types are (1) primitive and 'leaf' Java types, such as String
,
(2) ConfigBeanProxy
, (3) Dom
, and (4) collections of any of above.public abstract void set(Dom dom, Object arg)
Dom
.arg
- The new value. See the return type of the get method for the discussion of
possible types.Copyright © 2021. All rights reserved.