public final class ConfigModel
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigModel.Node |
static class |
ConfigModel.Property |
| Modifier and Type | Field and Description |
|---|---|
HK2Loader |
classLoaderHolder
Deferred reference to the class loader that loaded the injector.
|
ActiveDescriptor<? extends ConfigInjector> |
injector
Reference to the
ConfigInjector used to inject values to
objects of this model. |
java.lang.String |
key
If this model has any property that works as a key.
|
java.lang.String |
keyedAs
Fully-qualified name under which this type is indexed.
|
java.lang.String |
targetTypeName
Fully-qualified name of the target type that this injector works on.
|
| Constructor and Description |
|---|
ConfigModel(DomDocument document,
ActiveDescriptor<? extends ConfigInjector> injector,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> description,
ServiceLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
camelCaseToXML(java.lang.String camelCase) |
ConfigModel.Property |
findIgnoreCase(java.lang.String xmlName)
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the set of possible attributes names on this configuration model.
|
java.lang.reflect.Method |
getDuckMethod(java.lang.reflect.Method method)
Obtains the duck method implementation from a method on the
ConfigBeanProxy-derived interface. |
ConfigModel.Property |
getElement(java.lang.String elementName)
Returns the Property model for an element associated with this model
or null of the element name is not known,
|
ConfigModel.Property |
getElementFromXMlName(java.lang.String xmlName) |
java.util.Set<java.lang.String> |
getElementNames()
Returns the list of all posible elements names on this model
|
java.util.Set<java.lang.String> |
getLeafElementNames()
Returns the list of all the leaf attribute names on this model
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMetadata() |
<T extends ConfigBeanProxy> |
getProxyType()
Return the proxy type for this model
|
java.lang.String |
getTagName()
getter for tagName
|
ConfigModel.Property |
toProperty(java.lang.reflect.Method method)
Obtain XML names (like "abc-def") from strings like "getAbcDef" and "hasAbcDef".
|
java.lang.String |
trimPrefix(java.lang.String name) |
public final ActiveDescriptor<? extends ConfigInjector> injector
ConfigInjector used to inject values to
objects of this model.public final HK2Loader classLoaderHolder
public final java.lang.String targetTypeName
public final java.lang.String keyedAs
Null if this type is not keyed.
public final java.lang.String key
ConfigMetadata.KEYpublic ConfigModel(DomDocument document, ActiveDescriptor<? extends ConfigInjector> injector, java.util.Map<java.lang.String,java.util.List<java.lang.String>> description, ServiceLocator locator)
description - The description of the model as written in the inhabitants file.public java.lang.String getTagName()
public java.util.Set<java.lang.String> getAttributeNames()
public <T extends ConfigBeanProxy> java.lang.Class<T> getProxyType()
T - the proxy typepublic java.util.Set<java.lang.String> getLeafElementNames()
public java.util.Set<java.lang.String> getElementNames()
public ConfigModel.Property getElement(java.lang.String elementName)
elementName - element name identifying the propertypublic ConfigModel.Property getElementFromXMlName(java.lang.String xmlName)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMetadata()
public java.lang.reflect.Method getDuckMethod(java.lang.reflect.Method method)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
ConfigBeanProxy-derived interface.java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionpublic ConfigModel.Property toProperty(java.lang.reflect.Method method)
The conversion rule uses the model to find a good match.
public java.lang.String trimPrefix(java.lang.String name)
public java.lang.String camelCaseToXML(java.lang.String camelCase)
public ConfigModel.Property findIgnoreCase(java.lang.String xmlName)
xmlName - XML name to be searched.Copyright © 2013 Oracle Corporation. All Rights Reserved.