it.amattioli.workstate.config
Class MetaEventBuilder

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.config.MetaEventBuilder
All Implemented Interfaces:
AttributeOwnerBuilder

public class MetaEventBuilder
extends Object
implements AttributeOwnerBuilder

Allows the construction of a MetaEvent instance given the configuration strings read from a datasource.


Constructor Summary
MetaEventBuilder(String tag, String id)
          Construct a builder given the event tag and an identifier
 
Method Summary
 void addAttribute(MetaAttribute attr)
          Add an attribute to the building event
 void addValidator(String validator)
          Add a validator object to the event that is being built.
 MetaEvent getBuiltEvent()
          Returns the built MetaEvent
 String getId()
          Returns the identifier passed to this builder constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaEventBuilder

public MetaEventBuilder(String tag,
                        String id)
Construct a builder given the event tag and an identifier

Method Detail

getId

public String getId()
Returns the identifier passed to this builder constructor

Returns:
the identifier passed to this builder constructor

addAttribute

public void addAttribute(MetaAttribute attr)
Add an attribute to the building event

Specified by:
addAttribute in interface AttributeOwnerBuilder
Parameters:
attr - the attribute to be associated to the event

addValidator

public void addValidator(String validator)
Add a validator object to the event that is being built. The string can be in two distinct formats:


getBuiltEvent

public MetaEvent getBuiltEvent()
Returns the built MetaEvent

Returns:
the built MetaEvent


Copyright © 2011. All Rights Reserved.