/** * Returns the value of the JavaScript attribute "namespaces". * @return the value of the JavaScript attribute "namespaces" */ public Object jsxGet_namespaces() { if (namespaces_ == null) { namespaces_ = new NamespaceCollection(this); } return namespaces_; }
/** {@inheritDoc} */ public Object call(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if (args.length != 1) { return NOT_FOUND; } return jsxFunction_item(args[0]); }
/** {@inheritDoc} */ @Override public Object call(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if (args.length != 1) { return NOT_FOUND; } return item(args[0]); }
/** * Creates a new namespace collection for the specified page. * @param doc the HTML document to which this namespace collection belongs */ public NamespaceCollection(final HTMLDocument doc) { doc_ = doc; namespaces_ = new ArrayList<Namespace>(); setParentScope(doc); setPrototype(getPrototype(getClass())); final Map<String, String> namespacesMap = doc_.getHtmlPage().getNamespaces(); for (final String key : namespacesMap.keySet()) { if (key.length() != 0) { namespaces_.add(new Namespace(doc_, key, namespacesMap.get(key))); } } }
/** * Returns the namespace at the specified index. * @param index the index of the namespace (either the numeric index, or the name of the namespace) * @return the namespace at the specified index */ public final Object jsxFunction_item(final Object index) { if (index instanceof Number) { final Number n = (Number) index; final int i = n.intValue(); return get(i, this); } final String key = String.valueOf(index); return get(key, this); }
/** * Creates a new namespace collection for the specified page. * @param doc the HTML document to which this namespace collection belongs */ public NamespaceCollection(final HTMLDocument doc) { doc_ = doc; namespaces_ = new ArrayList<>(); setParentScope(doc); setPrototype(getPrototype(getClass())); final Map<String, String> namespacesMap = doc_.getPage().getNamespaces(); for (final Map.Entry<String, String> entry : namespacesMap.entrySet()) { final String key = entry.getKey(); if (!key.isEmpty()) { namespaces_.add(new Namespace(doc_, key, entry.getValue())); } } }
/** * Returns the namespace at the specified index. * @param index the index of the namespace (either the numeric index, or the name of the namespace) * @return the namespace at the specified index */ public final Object jsxFunction_item(final Object index) { if (index instanceof Number) { final Number n = (Number) index; final int i = n.intValue(); return get(i, this); } final String key = String.valueOf(index); return get(key, this); }
/** * Creates a new namespace collection for the specified page. * @param doc the HTML document to which this namespace collection belongs */ public NamespaceCollection(final HTMLDocument doc) { doc_ = doc; namespaces_ = new ArrayList<Namespace>(); setParentScope(doc); setPrototype(getPrototype(getClass())); final Map<String, String> namespacesMap = doc_.getHtmlPage().getNamespaces(); for (final String key : namespacesMap.keySet()) { if (key.length() != 0) { namespaces_.add(new Namespace(doc_, key, namespacesMap.get(key))); } } }
/** * Returns the namespace at the specified index. * @param index the index of the namespace (either the numeric index, or the name of the namespace) * @return the namespace at the specified index */ public final Object jsxFunction_item(final Object index) { if (index instanceof Number) { final Number n = (Number) index; final int i = n.intValue(); return get(i, this); } final String key = String.valueOf(index); return get(key, this); }
/** * Returns the value of the JavaScript attribute "namespaces". * @return the value of the JavaScript attribute "namespaces" */ public Object jsxGet_namespaces() { if (namespaces_ == null) { namespaces_ = new NamespaceCollection(this); } return namespaces_; }
/** {@inheritDoc} */ public Object call(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if (args.length != 1) { return NOT_FOUND; } return jsxFunction_item(args[0]); }
/** {@inheritDoc} */ @Override public Object call(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if (args.length != 1) { return NOT_FOUND; } return item(args[0]); }
/** * Creates a new namespace collection for the specified page. * @param doc the HTML document to which this namespace collection belongs */ public NamespaceCollection(final HTMLDocument doc) { doc_ = doc; namespaces_ = new ArrayList<Namespace>(); setParentScope(doc); setPrototype(getPrototype(getClass())); final Map<String, String> namespacesMap = doc_.getHtmlPage().getNamespaces(); for (final String key : namespacesMap.keySet()) { if (key.length() != 0) { namespaces_.add(new Namespace(doc_, key, namespacesMap.get(key))); } } }
/** * Returns the namespace at the specified index. * @param index the index of the namespace (either the numeric index, or the name of the namespace) * @return the namespace at the specified index */ @JsxFunction public final Object item(final Object index) { if (index instanceof Number) { final Number n = (Number) index; final int i = n.intValue(); return get(i, this); } final String key = String.valueOf(index); return get(key, this); }
/** * Returns the value of the JavaScript attribute "namespaces". * @return the value of the JavaScript attribute "namespaces" */ public Object jsxGet_namespaces() { if (namespaces_ == null) { namespaces_ = new NamespaceCollection(this); } return namespaces_; }
/** {@inheritDoc} */ public Object call(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if (args.length != 1) { return NOT_FOUND; } return jsxFunction_item(args[0]); }
/** * Creates a new namespace collection for the specified page. * @param doc the HTML document to which this namespace collection belongs */ public NamespaceCollection(final HTMLDocument doc) { doc_ = doc; namespaces_ = new ArrayList<>(); setParentScope(doc); setPrototype(getPrototype(getClass())); final Map<String, String> namespacesMap = doc_.getPage().getNamespaces(); for (final Map.Entry<String, String> entry : namespacesMap.entrySet()) { final String key = entry.getKey(); if (!key.isEmpty()) { namespaces_.add(new Namespace(doc_, key, entry.getValue())); } } }
/** * Returns the namespace at the specified index. * @param index the index of the namespace (either the numeric index, or the name of the namespace) * @return the namespace at the specified index */ @JsxFunction public final Object item(final Object index) { if (index instanceof Number) { final Number n = (Number) index; final int i = n.intValue(); return get(i, this); } final String key = String.valueOf(index); return get(key, this); }