@Override public boolean hasMember( final String key ) { return this.value.hasMember( key ); }
FileBrowser(final ScriptObjectMirror browser, final int max_depth, final Path rootPath) throws IOException { this.max_depth = max_depth; if (browser != null) { file_method = browser.hasMember("file"); dir_method = browser.hasMember("directory"); } else { file_method = false; dir_method = false; } if (Files.exists(rootPath)) browse(browser, rootPath, 0); }
public VertxGenConverterMap(Map<String, Object> other) { for (Map.Entry<String, Object> entry: other.entrySet()) { if (entry.getValue() == null) { put(entry.getKey(), null); } else { if (!(entry.getValue() instanceof ScriptObjectMirror)) { throw new IllegalArgumentException("Array does not contain objects"); } ScriptObjectMirror mirror = (ScriptObjectMirror)entry.getValue(); if (mirror.hasMember("_jdel")) { put(entry.getKey(), mirror.getMember("_jdel")); } else { throw new IllegalArgumentException("Object in array is not @VertxGen object"); } } } } }
public VertxGenConverterList(List other) { for (Object entry: other) { if (entry == null) { add(null); } else { if (!(entry instanceof ScriptObjectMirror)) { throw new IllegalArgumentException("Array does not contain objects"); } ScriptObjectMirror mirror = (ScriptObjectMirror)entry; if (mirror.hasMember("_jdel")) { add(mirror.getMember("_jdel")); } else { throw new IllegalArgumentException("Object in array is not @VertxGen object"); } } } } }
public VertxGenConverterSet(List other) { for (Object entry: other) { if (entry == null) { add(null); } else { if (!(entry instanceof ScriptObjectMirror)) { throw new IllegalArgumentException("Array does not contain objects"); } ScriptObjectMirror mirror = (ScriptObjectMirror)entry; if (mirror.hasMember("_jdel")) { add(mirror.getMember("_jdel")); } else { throw new IllegalArgumentException("Object in array is not @VertxGen object"); } } } } }