/** * Returns a data from a ROT13 property string. * * @param key * the property key. * * @return the {@link Byte} array data. */ public byte[] getDataProperty(String key) { return byteProperties.getDataProperty(key); }
public <T> List<T> getTypedListProperty(String key, StringToType<T> stringToType) throws ParseException { return typedProperties.getTypedListProperty(key, stringToType); }
/** * Sets the context and the properties. * * @param context * an {@link Object} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ByteContextProperties(Object context, Properties parentProperties) { super(context, parentProperties); this.byteProperties = new ByteProperties(this); }
/** * Sets the context and the properties. * * @param context * an {@link Object} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ContextProperties create(Object context, Properties parentProperties) { return new ContextProperties(context, parentProperties); }
/** * Returns a list property. * * @param key * the property key. * * @return the {@link List} from the property or an empty list if no * property with the key was found. */ public List<String> getListProperty(String key) { return getListProperty(key, listSepChars); }
@Override public TypedAllProperties create(Properties properties, String listSepChars) { return factory.create(properties, listSepChars); }
/** * Returns a time period property using the format defined in * {@link ISOPeriodFormat#standard()}. * * @param key * the property key. * * @return the {@link Period}. */ public Period getPeriodProperty(String key) { return dateProperties.getPeriodProperty(key); }
/** * @see #getProperties() */ @Override public ContextProperties get() { return getProperties(); }
/** * Returns a data from a ROT13 property string as a stream. * * @param key * the property key. * * @return the {@link InputStream} data. */ public InputStream getDataPropertyStream(String key) { return byteProperties.getDataPropertyStream(key); }
/** * Returns a time duration property using the format defined in * {@link ISOPeriodFormat#standard()}. * * @param key * the property key. * * @return the {@link Duration}. */ public Duration getDurationProperty(String key) { return dateProperties.getDurationProperty(key); }
public Character getCharProperty(String key, Character defaultValue) { return typedProperties.getCharProperty(key, defaultValue); }
/** * Sets the context and the properties. * * @param context * the context. * * @param parentProperties * the {@link Properties} that are returned. */ public DateContextProperties(String context, Properties parentProperties) { super(context, parentProperties); this.dateProperties = new DateProperties(this); }
/** * Sets the context and the properties. * * @param context * an {@link Object} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ByteContextProperties create(Object context, Properties parentProperties) { return new ByteContextProperties(context, parentProperties); }
/** * Sets the context and the properties. * * @param context * an {@link Class} that is used as the context. * * @param parentProperties * the {@link Properties} that are returned. */ public ContextProperties create(Class<?> context, Properties parentProperties) { return new ContextProperties(context, parentProperties); }
public <T> List<T> getTypedListProperty(String key, Format format, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, format, separatorChars); }
public List<String> getListProperty(String key, List<String> defaultValue, String separatorChars) { return typedProperties.getListProperty(key, defaultValue, separatorChars); }
@Override public TypedAllProperties create(Map<String, Object> properties, String listSepChars) { return factory.create(properties, listSepChars); }
public <T> List<T> getTypedListProperty(String key, StringToType<T> stringToType, List<T> defaultValue, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, stringToType, defaultValue, separatorChars); }
public <T> List<T> getTypedListProperty(String key, Format format, List<T> defaultValue, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, format, defaultValue, separatorChars); }
public <T> List<T> getTypedListProperty(String key, StringToType<T> stringToType, String separatorChars) throws ParseException { return typedProperties.getTypedListProperty(key, stringToType, separatorChars); }