use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.
the class JSHandlerImpl method selectInlineJS.
@Override
public JSHandler selectInlineJS() {
Collection<JSResource> inlineJsList = new ArrayList<>();
for (JSResource jsResource : javaScriptSet) {
RsrcLocator location = jsResource.getRsrcLocator();
if (location.getRsrcLocatorType() == RsrcLocator.INLINE) {
inlineJsList.add(jsResource);
}
}
selectedJSList = inlineJsList;
return this;
}
use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.
the class JSHandlerImpl method selectExternalJS.
@Override
public JSHandler selectExternalJS() {
Collection<JSResource> externalJsList = new ArrayList<>();
for (JSResource jsResource : javaScriptSet) {
RsrcLocator location = jsResource.getRsrcLocator();
if (location.getRsrcLocatorType() == RsrcLocator.EXTERNAL) {
externalJsList.add(jsResource);
}
}
selectedJSList = externalJsList;
return this;
}
use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.
the class JSHandlerImpl method selectLocalJS.
@Override
public JSHandler selectLocalJS() {
Collection<JSResource> localJsList = new ArrayList<>();
for (JSResource jsResource : javaScriptSet) {
RsrcLocator location = jsResource.getRsrcLocator();
if (location.getRsrcLocatorType() == RsrcLocator.LOCAL) {
localJsList.add(jsResource);
}
}
selectedJSList = localJsList;
return this;
}
Aggregations