public abstract static class ConfigModel.Property
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.String> |
annotations |
java.lang.String |
xmlName |
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigModel.Property(java.lang.String xmlName) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
get(Dom dom,
java.lang.reflect.Type returnType)
Gets the value from
Dom in the specified type. |
java.util.List<java.lang.String> |
getAnnotations() |
abstract boolean |
isCollection()
Is multiple values allowed?
|
abstract boolean |
isLeaf() |
abstract void |
set(Dom dom,
java.lang.Object arg)
Sets the value to
Dom. |
java.lang.String |
xmlName()
XML name of the property, like "abc-def".
|
public final java.util.List<java.lang.String> annotations
public final java.lang.String xmlName
xmlName()public final java.lang.String xmlName()
public abstract boolean isLeaf()
public abstract boolean isCollection()
public abstract java.lang.Object get(Dom dom, java.lang.reflect.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, java.lang.Object arg)
Dom.arg - The new value. See the return type of the get method for the discussion of
possible types.public java.util.List<java.lang.String> getAnnotations()
Copyright © 2013 Oracle Corporation. All Rights Reserved.