- All Implemented Interfaces:
Serializable
Script
.- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Iterables.String<?> srcs) Adds new scripts, if not already present.Adds new resources, if not already present.Adds new resources, if not already present.boolean
Adds a new script, if not already present.Adds new scripts, if not already present.addOrdering
(boolean required, Iterables.String<?> srcs) Adds ordering constraints between multiple scripts, if not already present.addOrdering
(boolean required, Script... scripts) Adds ordering constraints between multiple resources, if not already present.addOrdering
(boolean required, Iterable<? extends Script> scripts) Adds ordering constraints between multiple resources, if not already present.addOrdering
(boolean required, String... srcs) Adds ordering constraints between multiple scripts, if not already present.boolean
addOrdering
(boolean required, String beforeSrc, String afterSrc) Adds an ordering constraint between two scripts.addOrdering
(Iterables.String<?> srcs) Adds required ordering constraints between multiple scripts, if not already present.addOrdering
(Script... scripts) Adds required ordering constraints between multiple resources, if not already present.addOrdering
(Iterable<? extends Script> scripts) Adds required ordering constraints between multiple resources, if not already present.addOrdering
(String... srcs) Adds required ordering constraints between multiple scripts, if not already present.boolean
addOrdering
(String beforeSrc, String afterSrc) Adds a required ordering constraint between two scripts.protected void
checkOrdering
(Script before, Script after) Checks that the before and after ordering is allowed.protected Scripts
copy()
Gets a deep copy of these resources.remove
(Iterables.String<?> srcs) Removes scripts.Removes resources.Removes resources.boolean
Removes a script.Removes scripts.removeOrdering
(boolean required, Iterables.String<?> srcs) Removes ordering constraints between multiple scripts.removeOrdering
(boolean required, Script... scripts) Removes ordering constraints between multiple resources.removeOrdering
(boolean required, Iterable<? extends Script> scripts) Removes ordering constraints between multiple resources.removeOrdering
(boolean required, String... srcs) Removes ordering constraints between multiple scripts.boolean
removeOrdering
(boolean required, String beforeSrc, String afterSrc) Removes an ordering constraint between two scripts.removeOrdering
(Iterables.String<?> srcs) Removes required ordering constraints between multiple scripts.removeOrdering
(Script... scripts) Removes required ordering constraints between multiple resources.removeOrdering
(Iterable<? extends Script> scripts) Removes required ordering constraints between multiple resources.removeOrdering
(String... srcs) Removes required ordering constraints between multiple scripts.boolean
removeOrdering
(String beforeUri, String afterUri) Removes a required ordering constraint between two scripts.static Scripts
union
(Collection<? extends Scripts> others) Gets a the union of multiple groups.Methods inherited from class com.aoapps.web.resources.registry.Resources
add, addOrdering, addOrdering, getSnapshot, getSorted, isEmpty, remove, removeOrdering, removeOrdering
-
Method Details
-
copy
Gets a deep copy of these resources. -
union
Gets a the union of multiple groups. -
add
Description copied from class:Resources
Adds new resources, if not already present. -
add
Description copied from class:Resources
Adds new resources, if not already present. -
add
Adds a new script, if not already present. -
add
Adds new scripts, if not already present. -
add
Adds new scripts, if not already present. -
remove
Description copied from class:Resources
Removes resources. -
remove
Description copied from class:Resources
Removes resources. -
remove
Removes a script. -
remove
Removes scripts. -
remove
Removes scripts. -
checkOrdering
Checks that the before and after ordering is allowed. This is called outside of the synchronized block.The before script must have a position that is before or equal to the after script.
- Overrides:
checkOrdering
in classResources<Script>
-
addOrdering
Adds ordering constraints between multiple resources, if not already present.Ordering may not violate
Script.Position
.- Overrides:
addOrdering
in classResources<Script>
-
addOrdering
Adds required ordering constraints between multiple resources, if not already present.Ordering may not violate
Script.Position
.- Overrides:
addOrdering
in classResources<Script>
-
addOrdering
Adds ordering constraints between multiple resources, if not already present.Ordering may not violate
Script.Position
.- Overrides:
addOrdering
in classResources<Script>
-
addOrdering
Adds required ordering constraints between multiple resources, if not already present.Ordering may not violate
Script.Position
.- Overrides:
addOrdering
in classResources<Script>
-
addOrdering
Adds an ordering constraint between two scripts.Ordering may not violate
Script.Position
. -
addOrdering
Adds a required ordering constraint between two scripts.Ordering may not violate
Script.Position
. -
addOrdering
Adds ordering constraints between multiple scripts, if not already present.Ordering may not violate
Script.Position
. -
addOrdering
Adds required ordering constraints between multiple scripts, if not already present.Ordering may not violate
Script.Position
. -
addOrdering
Adds ordering constraints between multiple scripts, if not already present.Ordering may not violate
Script.Position
. -
addOrdering
Adds required ordering constraints between multiple scripts, if not already present.Ordering may not violate
Script.Position
. -
removeOrdering
Description copied from class:Resources
Removes ordering constraints between multiple resources.- Overrides:
removeOrdering
in classResources<Script>
-
removeOrdering
Description copied from class:Resources
Removes required ordering constraints between multiple resources.- Overrides:
removeOrdering
in classResources<Script>
-
removeOrdering
Description copied from class:Resources
Removes ordering constraints between multiple resources.- Overrides:
removeOrdering
in classResources<Script>
-
removeOrdering
Description copied from class:Resources
Removes required ordering constraints between multiple resources.- Overrides:
removeOrdering
in classResources<Script>
-
removeOrdering
Removes an ordering constraint between two scripts. -
removeOrdering
Removes a required ordering constraint between two scripts. -
removeOrdering
Removes ordering constraints between multiple scripts. -
removeOrdering
Removes required ordering constraints between multiple scripts. -
removeOrdering
Removes ordering constraints between multiple scripts. -
removeOrdering
Removes required ordering constraints between multiple scripts.
-