public class Utilities extends Object
Modifier and Type | Field and Description |
---|---|
static char |
INSTANCE_PATH_SEPARATOR
Separator for instance names
|
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static BaseHK2JAXBBean |
_addRoot(Model rootNode,
Object rawRoot,
DynamicChangeInfo changeInfo,
ClassReflectionHelper helper,
WriteableBeanDatabase writeableDatabase,
DynamicConfiguration dynamicService)
Called with write lock held
|
static void |
advertise(WriteableBeanDatabase wbd,
DynamicConfiguration config,
BaseHK2JAXBBean bean) |
static String |
convertNameToString(Name name)
Converts the Name from the Element to a String
|
static String |
convertToSetter(String getterName)
Converts a getter name to a setter name (works with
both IS getters and GET getters)
|
static AltClass |
convertTypeMirror(TypeMirror typeMirror,
ProcessingEnvironment processingEnv) |
static BaseHK2JAXBBean |
createBean(Class<?> implClass) |
static String |
createInstanceName(BaseHK2JAXBBean bean)
Creates an instance name by traveling up the parent chain.
|
static Object |
getDefaultValue(String givenStringDefault,
Class<?> expectedClass)
Returns the default value given the string version of the default and
the expected result (non-child properties)
|
static String |
getProxyNameFromInterfaceName(String iFaceName)
Given the fully qualified class name of the interface representing a bean,
returns the class name of the proxy
|
static BaseHK2JAXBBean |
internalAdd(BaseHK2JAXBBean myParent,
String childProperty,
Object rawChild,
String childKey,
int index,
DynamicChangeInfo changeInformation,
WriteableBeanDatabase writeableDatabase,
DynamicConfiguration dynamicService) |
static BaseHK2JAXBBean |
internalRemove(BaseHK2JAXBBean myParent,
String childProperty,
String childKey,
int index,
DynamicChangeInfo changeInformation,
WriteableBeanDatabase writeableDatabase,
DynamicConfiguration dynamicService)
Write lock must be held
|
public static final char INSTANCE_PATH_SEPARATOR
public static BaseHK2JAXBBean createBean(Class<?> implClass)
public static String createInstanceName(BaseHK2JAXBBean bean)
bean
- The non-null bean from where to get the instancenamepublic static void advertise(WriteableBeanDatabase wbd, DynamicConfiguration config, BaseHK2JAXBBean bean)
public static String convertToSetter(String getterName)
getterName
- Non-null getter name starting with is or getpublic static String convertNameToString(Name name)
name
- public static AltClass convertTypeMirror(TypeMirror typeMirror, ProcessingEnvironment processingEnv)
public static BaseHK2JAXBBean internalAdd(BaseHK2JAXBBean myParent, String childProperty, Object rawChild, String childKey, int index, DynamicChangeInfo changeInformation, WriteableBeanDatabase writeableDatabase, DynamicConfiguration dynamicService)
public static String getProxyNameFromInterfaceName(String iFaceName)
iFaceName
- the never null fully qualified class name of the bean interfacepublic static BaseHK2JAXBBean _addRoot(Model rootNode, Object rawRoot, DynamicChangeInfo changeInfo, ClassReflectionHelper helper, WriteableBeanDatabase writeableDatabase, DynamicConfiguration dynamicService)
rootNode
- rawRoot
- changeInfo
- helper
- writeableDatabase
- dynamicService
- public static BaseHK2JAXBBean internalRemove(BaseHK2JAXBBean myParent, String childProperty, String childKey, int index, DynamicChangeInfo changeInformation, WriteableBeanDatabase writeableDatabase, DynamicConfiguration dynamicService)
myParent
- childProperty
- childKey
- index
- changeInformation
- writeableDatabase
- dynamicService
- Copyright © 2009–2017 Oracle Corporation. All rights reserved.