thinkmap.xmlconfig
Class ObjectBuilder
java.lang.Object
thinkmap.xmlconfig.ObjectBuilder
- All Implemented Interfaces:
- IBuilder
- Direct Known Subclasses:
- ComponentBuilder.XMLComponentBuilder
public class ObjectBuilder
- extends Object
- implements IBuilder
|
Method Summary |
XObject |
build(Assembler assembler,
ConfigElement thisElement,
ConfigElement parent,
XObject parentObject)
|
protected XObject |
buildChildren(Assembler assembler,
ConfigElement thisElement,
XObject object)
|
protected XObject |
buildOneChild(Assembler assembler,
ConfigElement parentElement,
XObject parentObject,
ConfigElement childElement)
|
protected boolean |
canConstruct(Class<?> clazz)
|
protected Method |
getAddMethod(Class<?> cType,
Namespace ns,
Class<?> elementClass,
String name,
String prefix,
boolean exact)
|
protected IBuilder |
getBuilderForElement(Assembler assembler,
ConfigElement parent,
ConfigElement child,
XObject parentObject)
|
protected Method |
getCreateMethod(Class<?> cType,
String name)
|
protected Method |
getSetMethod(Assembler assembler,
Class<?> cType,
Namespace ns,
String name,
boolean allowSimple,
boolean allowComplex,
boolean allowArray)
|
void |
init(Plugin p)
|
protected void |
insertChild(Assembler assembler,
ConfigElement parentElement,
XObject parentObject,
ConfigElement childElement,
XObject ochild)
|
protected Namespace |
ns(Assembler assembler,
ConfigElement e)
|
protected void |
processAttributes(Assembler assembler,
ConfigElement thisElement,
XObject object,
boolean isSimple)
|
protected void |
processText(Assembler assembler,
ConfigElement thisElement,
XObject object)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cType
protected Class<?> cType
ObjectBuilder
public ObjectBuilder()
ObjectBuilder
protected ObjectBuilder(Method mCreate)
ObjectBuilder
public ObjectBuilder(Class<?> cType)
init
public void init(Plugin p)
throws XMLException
- Specified by:
init in interface IBuilder
- Throws:
XMLException
build
public XObject build(Assembler assembler,
ConfigElement thisElement,
ConfigElement parent,
XObject parentObject)
throws XMLException
- Specified by:
build in interface IBuilder
- Throws:
XMLException
getBuilderForElement
protected IBuilder getBuilderForElement(Assembler assembler,
ConfigElement parent,
ConfigElement child,
XObject parentObject)
throws XMLException
- Throws:
XMLException
buildChildren
protected XObject buildChildren(Assembler assembler,
ConfigElement thisElement,
XObject object)
throws XMLException
- Throws:
XMLException
buildOneChild
protected XObject buildOneChild(Assembler assembler,
ConfigElement parentElement,
XObject parentObject,
ConfigElement childElement)
throws XMLException
- Throws:
XMLException
insertChild
protected void insertChild(Assembler assembler,
ConfigElement parentElement,
XObject parentObject,
ConfigElement childElement,
XObject ochild)
throws XMLException
- Throws:
XMLException
ns
protected Namespace ns(Assembler assembler,
ConfigElement e)
throws XMLException
- Throws:
XMLException
processText
protected void processText(Assembler assembler,
ConfigElement thisElement,
XObject object)
throws Exception
- Throws:
Exception
processAttributes
protected void processAttributes(Assembler assembler,
ConfigElement thisElement,
XObject object,
boolean isSimple)
throws XMLException,
IOException
- Throws:
XMLException
IOException
getAddMethod
protected Method getAddMethod(Class<?> cType,
Namespace ns,
Class<?> elementClass,
String name,
String prefix,
boolean exact)
getSetMethod
protected Method getSetMethod(Assembler assembler,
Class<?> cType,
Namespace ns,
String name,
boolean allowSimple,
boolean allowComplex,
boolean allowArray)
getCreateMethod
protected Method getCreateMethod(Class<?> cType,
String name)
canConstruct
protected boolean canConstruct(Class<?> clazz)
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.