org.jvnet.hk2.config
Class ConfigModel.Property
java.lang.Object
org.jvnet.hk2.config.ConfigModel.Property
- Direct Known Subclasses:
- ConfigModel.Node
- Enclosing class:
- ConfigModel
public abstract static class ConfigModel.Property
- extends java.lang.Object
|
Method Summary |
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". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
annotations
public final java.util.List<java.lang.String> annotations
xmlName
public final java.lang.String xmlName
- See Also:
xmlName()
ConfigModel.Property
protected ConfigModel.Property(java.lang.String xmlName)
xmlName
public final java.lang.String xmlName()
- XML name of the property, like "abc-def".
isLeaf
public abstract boolean isLeaf()
isCollection
public abstract boolean isCollection()
- Is multiple values allowed?
get
public abstract java.lang.Object get(Dom dom,
java.lang.reflect.Type returnType)
- Gets the value from
Dom in the specified type.
- Parameters:
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.
set
public abstract void set(Dom dom,
java.lang.Object arg)
- Sets the value to
Dom.
- Parameters:
arg - The new value. See the return type of the get method for the discussion of
possible types.
getAnnotations
public java.util.List<java.lang.String> getAnnotations()
Copyright © 2012 Oracle Corporation. All Rights Reserved.