thinkmap.xmlconfig
Class ComponentBuilder

java.lang.Object
  extended by thinkmap.xmlconfig.ComponentBuilder
All Implemented Interfaces:
IBuilder

public class ComponentBuilder
extends Object
implements IBuilder

This builder builds the instances of XMLComponents, not the components themselves

Version:
$Revision: 1.8 $

Nested Class Summary
static class ComponentBuilder.XMLComponentBuilder
           
 
Field Summary
protected  XMLComponent.Attribute[] attributes
           
protected  Class<?> rootClass
           
protected  URL url
           
 
Constructor Summary
ComponentBuilder()
           
 
Method Summary
 XObject build(Assembler assembler, ConfigElement thisElement, ConfigElement parent, XObject parentObject)
           
 void init(Plugin p)
           
protected  void initAttribute(Assembler assembler, XObject subConfig, ConfigElement sourceElement, XMLComponent.Attribute a)
           
 void initAttributes(Assembler assembler, XObject subConfig, ConfigElement sourceElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

protected XMLComponent.Attribute[] attributes

rootClass

protected Class<?> rootClass

url

protected URL url
Constructor Detail

ComponentBuilder

public ComponentBuilder()
Method Detail

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

initAttributes

public void initAttributes(Assembler assembler,
                           XObject subConfig,
                           ConfigElement sourceElement)
                    throws XMLException
Throws:
XMLException

initAttribute

protected void initAttribute(Assembler assembler,
                             XObject subConfig,
                             ConfigElement sourceElement,
                             XMLComponent.Attribute a)
                      throws XMLException
Throws:
XMLException


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.