org.apache.cocoon.forms.binding.library
Class Library
java.lang.Object
org.apache.cocoon.forms.binding.library.Library
- public class Library
- extends Object
- Version:
- $Id: Library.java 327169 2005-10-21 13:04:31Z sylvain $
Nested Class Summary |
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
manager
protected LibraryManager manager
definitions
protected Map definitions
inclusions
protected Map inclusions
shared
protected Object shared
sourceURI
protected String sourceURI
assistant
protected JXPathBindingManager.Assistant assistant
Library
public Library(ServiceManager sm)
throws ServiceException
Library
public Library(LibraryManager lm)
setAssistant
public void setAssistant(JXPathBindingManager.Assistant assistant)
setSourceURI
public void setSourceURI(String uri)
getSourceURI
public String getSourceURI()
dependenciesHaveChanged
public boolean dependenciesHaveChanged()
throws Exception
- Throws:
Exception
includeAs
public boolean includeAs(String key,
String librarysource)
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 keylibrarysource
- the source of the library to be know as "key"
- Returns:
- true if there was no such key used before, false otherwise
- Throws:
LibraryException
getBinding
public Binding getBinding(String key)
throws LibraryException
- Throws:
LibraryException
buildLibrary
public void buildLibrary(Element libraryElement)
throws Exception
- Throws:
Exception
addBinding
public void addBinding(Binding binding)
throws LibraryException
- Throws:
LibraryException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.