/** * Retrieves the element addressed by the URL. * * @param url * The URL of the element to retrieve. * <br>If <jk>null</jk> or blank, returns the root. * @return The addressed element, or <jk>null</jk> if that element does not exist in the tree. */ public Object get(String url) { return getWithDefault(url, null); }
/** * Retrieves the element addressed by the URL. * * @param url * The URL of the element to retrieve. * <br>If <jk>null</jk> or blank, returns the root. * @return The addressed element, or <jk>null</jk> if that element does not exist in the tree. */ public Object get(String url) { return getWithDefault(url, null); }
/** * Returns the specified entry value converted to an {@link Integer}. * * <p> * Shortcut for <code>get(Integer.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Integer getInt(String url, Integer defVal) { return getWithDefault(url, defVal, Integer.class); }
/** * Returns the specified entry value converted to a {@link ObjectMap}. * * <p> * Shortcut for <code>get(ObjectMap.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public ObjectMap getObjectMap(String url, ObjectMap defVal) { return getWithDefault(url, defVal, ObjectMap.class); }
/** * Retrieves the element addressed by the URL. * * @param url * The URL of the element to retrieve. * <br>If <jk>null</jk> or blank, returns the root. * @return The addressed element, or <jk>null</jk> if that element does not exist in the tree. */ public Object get(String url) { return getWithDefault(url, null); }
/** * Returns the specified entry value converted to a {@link String}. * * <p> * Shortcut for <code>get(String.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. */ public String getString(String url, String defVal) { return getWithDefault(url, defVal, String.class); }
/** * Returns the specified entry value converted to a {@link String}. * * <p> * Shortcut for <code>get(String.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. */ public String getString(String url, String defVal) { return getWithDefault(url, defVal, String.class); }
/** * Returns the specified entry value converted to a {@link String}. * * <p> * Shortcut for <code>get(String.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. */ public String getString(String url, String defVal) { return getWithDefault(url, defVal, String.class); }
/** * Returns the specified entry value converted to a {@link Long}. * * <p> * Shortcut for <code>get(Long.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Long getLong(String url, Long defVal) { return getWithDefault(url, defVal, Long.class); }
/** * Returns the specified entry value converted to a {@link List}. * * <p> * Shortcut for <code>get(List.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public List<?> getList(String url, List<?> defVal) { return getWithDefault(url, defVal, List.class); }
/** * Returns the specified entry value converted to a {@link ObjectList}. * * <p> * Shortcut for <code>get(ObjectList.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public ObjectList getObjectList(String url, ObjectList defVal) { return getWithDefault(url, defVal, ObjectList.class); }
/** * Returns the specified entry value converted to an {@link Integer}. * * <p> * Shortcut for <code>get(Integer.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Integer getInt(String url, Integer defVal) { return getWithDefault(url, defVal, Integer.class); }
/** * Returns the specified entry value converted to a {@link ObjectMap}. * * <p> * Shortcut for <code>get(ObjectMap.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public ObjectMap getObjectMap(String url, ObjectMap defVal) { return getWithDefault(url, defVal, ObjectMap.class); }
/** * Returns the specified entry value converted to a {@link Boolean}. * * <p> * Shortcut for <code>get(Boolean.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Boolean getBoolean(String url, Boolean defVal) { return getWithDefault(url, defVal, Boolean.class); }
/** * Returns the specified entry value converted to a {@link Map}. * * <p> * Shortcut for <code>get(Map.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Map<?,?> getMap(String url, Map<?,?> defVal) { return getWithDefault(url, defVal, Map.class); }
/** * Returns the specified entry value converted to a {@link Long}. * * <p> * Shortcut for <code>get(Long.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Long getLong(String url, Long defVal) { return getWithDefault(url, defVal, Long.class); }
/** * Returns the specified entry value converted to a {@link Map}. * * <p> * Shortcut for <code>get(Map.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Map<?,?> getMap(String url, Map<?,?> defVal) { return getWithDefault(url, defVal, Map.class); }
/** * Returns the specified entry value converted to a {@link Long}. * * <p> * Shortcut for <code>get(Long.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Long getLong(String url, Long defVal) { return getWithDefault(url, defVal, Long.class); }
/** * Returns the specified entry value converted to a {@link Map}. * * <p> * Shortcut for <code>get(Map.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public Map<?,?> getMap(String url, Map<?,?> defVal) { return getWithDefault(url, defVal, Map.class); }
/** * Returns the specified entry value converted to a {@link ObjectMap}. * * <p> * Shortcut for <code>get(ObjectMap.<jk>class</jk>, key, defVal)</code>. * * @param url The key. * @param defVal The default value if the map doesn't contain the specified mapping. * @return The converted value, or the default value if the map contains no mapping for this key. * @throws InvalidDataConversionException If value cannot be converted. */ public ObjectMap getObjectMap(String url, ObjectMap defVal) { return getWithDefault(url, defVal, ObjectMap.class); }