/** * Precondition: The specified key string is the path to a SoyMapData object. Gets the SoyMapData * at the specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyMapData at the specified key string, or null if no data is stored there. */ public SoyMapData getMapData(String keyStr) { return (SoyMapData) get(keyStr); }
/** * Precondition: The specified key string is the path to a SoyListData object. Gets the * SoyListData at the specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyListData at the specified key string, or null if no data is stored there. */ public SoyListData getListData(String keyStr) { return (SoyListData) get(keyStr); }
/** * Precondition: The specified key string is the path to a SoyMapData object. * Gets the SoyMapData at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyMapData at the specified key string, or null if no data is stored there. */ public SoyMapData getMapData(String keyStr) { return (SoyMapData) get(keyStr); }
/** * Precondition: The specified key string is the path to a SoyMapData object. Gets the SoyMapData * at the specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyMapData at the specified key string, or null if no data is stored there. */ public SoyMapData getMapData(String keyStr) { return (SoyMapData) get(keyStr); }
/** * Precondition: The specified key string is the path to a SoyListData object. Gets the * SoyListData at the specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyListData at the specified key string, or null if no data is stored there. */ public SoyListData getListData(String keyStr) { return (SoyListData) get(keyStr); }
/** * Precondition: The specified key string is the path to a SoyListData object. * Gets the SoyListData at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The SoyListData at the specified key string, or null if no data is stored there. */ public SoyListData getListData(String keyStr) { return (SoyListData) get(keyStr); }
public static SoyData $$getData(SoyData collectionData, String keyStr) { SoyData value = ((CollectionData) collectionData).get(keyStr); return (value != null) ? value : UndefinedData.INSTANCE; }
/** * Precondition: The specified key string is the path to a float. * Gets the float at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The float at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public double getFloat(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.floatValue(); }
/** * Precondition: The specified key string is the path to a boolean. Gets the boolean at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The boolean at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public boolean getBoolean(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.booleanValue(); }
/** * Precondition: The specified key string is the path to a float. Gets the float at the specified * key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The float at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public double getFloat(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.floatValue(); }
/** * Precondition: The specified key string is the path to a boolean. Gets the boolean at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The boolean at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public boolean getBoolean(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.booleanValue(); }
/** * Precondition: The specified key string is the path to a string. * Gets the string at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The string at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public String getString(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.stringValue(); }
/** * Precondition: The specified key string is the path to a long. Gets the long at the specified * key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The long at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public long getLong(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.longValue(); }
/** * Precondition: The specified key string is the path to a string. Gets the string at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The string at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public String getString(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.stringValue(); }
/** * Precondition: The specified key string is the path to a boolean. * Gets the boolean at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The boolean at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public boolean getBoolean(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.booleanValue(); }
/** * Precondition: The specified key string is the path to an integer. Gets the integer at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The integer at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public int getInteger(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.integerValue(); }
/** * Precondition: The specified key string is the path to an integer. Gets the integer at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The integer at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public int getInteger(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.integerValue(); }
/** * Precondition: The specified key string is the path to an integer. * Gets the integer at the specified key string. * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The integer at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public int getInteger(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.integerValue(); }
/** * Precondition: The specified key string is the path to a string. Gets the string at the * specified key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The string at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public String getString(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.stringValue(); }
/** * Precondition: The specified key string is the path to a float. Gets the float at the specified * key string. * * @param keyStr One or more map keys and/or list indices (separated by '.' if multiple parts). * Indicates the path to the location within this data tree. * @return The float at the specified key string. * @throws IllegalArgumentException If no data is stored at the specified key. */ public double getFloat(String keyStr) { SoyData valueData = get(keyStr); if (valueData == null) { throw new IllegalArgumentException("Missing key: " + keyStr); } return valueData.floatValue(); }