|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<IResource>
org.specrunner.source.resource.core.ResourceManagerImpl
public class ResourceManagerImpl
Default resource manager implementation.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Fields inherited from interface org.specrunner.source.resource.IResourceManager |
|---|
DEFAULT_ADD_RESOURCES, FEATURE_ADD_RESOURCES |
| Constructor Summary | |
|---|---|
ResourceManagerImpl(ISource parent)
Creates a resource manager to a source. |
|
| Method Summary | |
|---|---|
boolean |
add(IResource resource)
|
IResource |
addCss(String path,
boolean classpath,
EType ref)
Adds a CSS to the head end. |
IResource |
addCss(String path,
boolean classpath,
EType ref,
Position position)
Adds a CSS specified by path to a given position. |
void |
addDefaultCss()
Add default CSS files. |
void |
addDefaultJs()
Add default JavaScript files. |
IResource |
addJs(String path,
boolean classpath,
EType ref)
Adds a JS specified by path to a given position. |
IResource |
addJs(String path,
boolean classpath,
EType ref,
Position position)
Adds a JS specified by path to a given position. |
ISource |
getParent()
The resource manager parent source. |
void |
merge(IResourceManager resources)
Import resources from other manager. |
void |
setParent(ISource parent)
Set resource manager parent. |
| Methods inherited from class java.util.LinkedList |
|---|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Constructor Detail |
|---|
public ResourceManagerImpl(ISource parent)
parent - The parent.| Method Detail |
|---|
public ISource getParent()
IResourceManager
getParent in interface IResourceManagerpublic void setParent(ISource parent)
parent - The parent.
public void addDefaultCss()
throws ResourceException
IResourceManager
addDefaultCss in interface IResourceManagerResourceException - On add errors.
public void addDefaultJs()
throws ResourceException
IResourceManager
addDefaultJs in interface IResourceManagerResourceException - On add errors.public boolean add(IResource resource)
add in interface Collection<IResource>add in interface Deque<IResource>add in interface List<IResource>add in interface Queue<IResource>add in class LinkedList<IResource>
public IResource addCss(String path,
boolean classpath,
EType ref)
throws ResourceException
IResourceManager
addCss in interface IResourceManagerpath - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.
ResourceException - On add errors.
public IResource addCss(String path,
boolean classpath,
EType ref,
Position position)
throws ResourceException
IResourceManager
addCss in interface IResourceManagerpath - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.position - The position to place the resource in the source reference.
ResourceException - On add errors.
public IResource addJs(String path,
boolean classpath,
EType ref)
throws ResourceException
IResourceManager
addJs in interface IResourceManagerpath - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.
ResourceException - On add errors.
public IResource addJs(String path,
boolean classpath,
EType ref,
Position position)
throws ResourceException
IResourceManager
addJs in interface IResourceManagerpath - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.position - The position to place the resource in the source reference.
ResourceException - On add errors.public void merge(IResourceManager resources)
IResourceManager
merge in interface IResourceManagerresources - Resources to the copied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||