This project has retired. For details please refer to its
Attic page .
Library (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.forms.formmodel.library
Class Library
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.forms.formmodel.library.Library
All Implemented Interfaces: LogEnabled
public class Library extends AbstractLogEnabled
Form model library.
Version:
$Id: Library.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Nested Class Summary
protected class
Library.Dependency
Encapsulates a uri to designate an import plus a timestamp so previously reloaded
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
SEPARATOR
public static final String SEPARATOR
See Also: Constant Field Values
widgetDefinitionBuilderSelector
protected ServiceSelector widgetDefinitionBuilderSelector
manager
protected LibraryManager manager
definitions
protected Map definitions
inclusions
protected Map inclusions
shared
protected final Object shared
sourceURI
protected String sourceURI
Library
public Library (LibraryManager lm,
ServiceSelector builderSelector)
setSourceURI
public void setSourceURI (String uri)
getSourceURI
public String getSourceURI ()
dependenciesHaveChanged
public boolean dependenciesHaveChanged ()
throws LibraryException
Throws:
LibraryException
includeAs
public boolean includeAs (String key,
String sourceURI)
throws LibraryException
"Registers" a library to be referenced later under a certain key or prefix.
Definitions will be accessible locally through prefixing: "prefix:definitionid"
Parameters: key
- the keysourceURI
- the source of the library to be know as "key"
Returns: true if there was no such key used before, false otherwise
Throws:
LibraryException
- if unable to load included library
getDefinition
public WidgetDefinition getDefinition (String key)
throws LibraryException
Throws:
LibraryException
buildLibrary
public void buildLibrary (Element libraryElement)
throws Exception
Throws:
Exception
addDefinition
public void addDefinition (WidgetDefinition definition)
throws LibraryException
Throws:
LibraryException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.