com.uwyn.rife.engine
Class SiteBuilder

java.lang.Object
  extended by com.uwyn.rife.engine.SiteBuilder

public class SiteBuilder
extends Object


Constructor Summary
SiteBuilder(String declarationName)
           
SiteBuilder(String declarationName, ResourceFinder resourceFinder)
           
 
Method Summary
 SiteBuilder addDeparture(String srcId)
           
 SiteBuilder addGlobalBean(Class klass)
           
 SiteBuilder addGlobalBean(Class klass, String prefix)
           
 SiteBuilder addGlobalBean(Class klass, String prefix, String name)
           
 SiteBuilder addGlobalBean(Class klass, String prefix, String name, String groupName)
           
 SiteBuilder addGlobalBean(String classname)
           
 SiteBuilder addGlobalBean(String classname, String prefix)
           
 SiteBuilder addGlobalBean(String classname, String prefix, String name)
           
 SiteBuilder addGlobalBean(String classname, String prefix, String name, String groupName)
           
 SiteBuilder addGlobalCookie(String name)
           
 SiteBuilder addGlobalCookie(String name, String defaultValue)
           
 SiteBuilder addGlobalExit(String name, String destId)
           
 SiteBuilder addGlobalExit(String name, String destId, boolean reflective, boolean snapback, boolean cancelInheritance, boolean cancelEmbedding, boolean redirect, boolean cancelContinuations)
           
 SiteBuilder addGlobalVar(String name)
           
 SiteBuilder addGlobalVar(String name, String[] defaultValues)
           
 SiteBuilder addProperty(String name, PropertyValue value)
           
 SiteBuilder addRedirectGlobalExit(String name)
           
 SiteBuilder addReflectiveGlobalExit(String name)
           
 SiteBuilder addResourceModificationTime(UrlResource resource, long modificationTime)
           
 SiteBuilder addSnapbackGlobalExit(String name)
           
 boolean containsProperty(String name)
           
 ElementInfoBuilder enterElement()
           
 ElementInfoBuilder enterElement(String declarationName)
           
 SiteBuilder enterGroup()
           
 SiteBuilder enterState(String store)
           
 SubsiteDeclaration enterSubsiteDeclaration(String declarationName)
           
 HierarchicalProperties getProperties()
           
 Object getProperty(String name)
           
 Object getProperty(String name, Object defaultValue)
           
 String getPropertyString(String name)
           
 String getPropertyString(String name, String defaultValue)
           
 Site getSite()
           
 String getSiteProcessorIdentifier()
           
 SubsiteDeclaration getSubsiteDeclaration()
           
 boolean isPropertyEmpty(String name)
           
 SiteBuilder leaveGroup()
           
 SiteBuilder leaveState()
           
 SubsiteDeclaration leaveSubsite()
           
 SiteBuilder setArrival(String destId)
           
 SiteBuilder setArrival(String destId, boolean redirect)
           
 SiteBuilder setFallback(String fallbackElementId)
           
 SiteBuilder setInherits(String inherits)
           
 SiteBuilder setPre(String pre)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteBuilder

public SiteBuilder(String declarationName)

SiteBuilder

public SiteBuilder(String declarationName,
                   ResourceFinder resourceFinder)
Method Detail

getSite

public Site getSite()

getSiteProcessorIdentifier

public String getSiteProcessorIdentifier()

setFallback

public SiteBuilder setFallback(String fallbackElementId)

enterSubsiteDeclaration

public SubsiteDeclaration enterSubsiteDeclaration(String declarationName)
                                           throws EngineException
Throws:
EngineException

leaveSubsite

public SubsiteDeclaration leaveSubsite()

enterGroup

public SiteBuilder enterGroup()
                       throws EngineException
Throws:
EngineException

leaveGroup

public SiteBuilder leaveGroup()
                       throws EngineException
Throws:
EngineException

setInherits

public SiteBuilder setInherits(String inherits)
                        throws EngineException
Throws:
EngineException

setPre

public SiteBuilder setPre(String pre)
                   throws EngineException
Throws:
EngineException

addGlobalBean

public SiteBuilder addGlobalBean(String classname)

addGlobalBean

public SiteBuilder addGlobalBean(String classname,
                                 String prefix)

addGlobalBean

public SiteBuilder addGlobalBean(String classname,
                                 String prefix,
                                 String name)

addGlobalBean

public SiteBuilder addGlobalBean(String classname,
                                 String prefix,
                                 String name,
                                 String groupName)
                          throws EngineException
Throws:
EngineException

addGlobalBean

public SiteBuilder addGlobalBean(Class klass)

addGlobalBean

public SiteBuilder addGlobalBean(Class klass,
                                 String prefix)

addGlobalBean

public SiteBuilder addGlobalBean(Class klass,
                                 String prefix,
                                 String name)

addGlobalBean

public SiteBuilder addGlobalBean(Class klass,
                                 String prefix,
                                 String name,
                                 String groupName)
                          throws EngineException
Throws:
EngineException

addGlobalExit

public SiteBuilder addGlobalExit(String name,
                                 String destId)
                          throws EngineException
Throws:
EngineException

addReflectiveGlobalExit

public SiteBuilder addReflectiveGlobalExit(String name)
                                    throws EngineException
Throws:
EngineException

addSnapbackGlobalExit

public SiteBuilder addSnapbackGlobalExit(String name)
                                  throws EngineException
Throws:
EngineException

addRedirectGlobalExit

public SiteBuilder addRedirectGlobalExit(String name)
                                  throws EngineException
Throws:
EngineException

addGlobalExit

public SiteBuilder addGlobalExit(String name,
                                 String destId,
                                 boolean reflective,
                                 boolean snapback,
                                 boolean cancelInheritance,
                                 boolean cancelEmbedding,
                                 boolean redirect,
                                 boolean cancelContinuations)
                          throws EngineException
Throws:
EngineException

setArrival

public SiteBuilder setArrival(String destId)
                       throws EngineException
Throws:
EngineException

setArrival

public SiteBuilder setArrival(String destId,
                              boolean redirect)
                       throws EngineException
Throws:
EngineException

addDeparture

public SiteBuilder addDeparture(String srcId)
                         throws EngineException
Throws:
EngineException

enterState

public SiteBuilder enterState(String store)
                       throws EngineException
Throws:
EngineException

leaveState

public SiteBuilder leaveState()
                       throws EngineException
Throws:
EngineException

enterElement

public ElementInfoBuilder enterElement()
                                throws EngineException
Throws:
EngineException

enterElement

public ElementInfoBuilder enterElement(String declarationName)
                                throws EngineException
Throws:
EngineException

addGlobalVar

public SiteBuilder addGlobalVar(String name)
                         throws EngineException
Throws:
EngineException

addGlobalVar

public SiteBuilder addGlobalVar(String name,
                                String[] defaultValues)
                         throws EngineException
Throws:
EngineException

addGlobalCookie

public SiteBuilder addGlobalCookie(String name)
                            throws EngineException
Throws:
EngineException

addGlobalCookie

public SiteBuilder addGlobalCookie(String name,
                                   String defaultValue)
                            throws EngineException
Throws:
EngineException

addProperty

public SiteBuilder addProperty(String name,
                               PropertyValue value)

getProperties

public HierarchicalProperties getProperties()

containsProperty

public boolean containsProperty(String name)

getProperty

public Object getProperty(String name)

getProperty

public Object getProperty(String name,
                          Object defaultValue)

getPropertyString

public String getPropertyString(String name)

getPropertyString

public String getPropertyString(String name,
                                String defaultValue)

isPropertyEmpty

public boolean isPropertyEmpty(String name)
                        throws EngineException
Throws:
EngineException

getSubsiteDeclaration

public SubsiteDeclaration getSubsiteDeclaration()

addResourceModificationTime

public SiteBuilder addResourceModificationTime(UrlResource resource,
                                               long modificationTime)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.