org.hibernate.search.util.configuration.impl
public class MaskedProperty extends Properties implements Serializable
Properties, to restrict the availability of values to only those which have a key
beginning with a given masking string.
Supported methods to enumerate the list of properties are:
defaults| Constructor and Description |
|---|
MaskedProperty(Properties propsToMask,
String mask)
Provides a view to the provided Properties hiding
all keys not starting with some [mask.].
|
MaskedProperty(Properties propsToMask,
String mask,
Properties propsFallBack)
Provides a view to the provided Properties hiding
all keys not starting with some [mask.].
|
load, store, stringPropertyNamespublic MaskedProperty(Properties propsToMask, String mask)
propsToMask - the Properties containing the values.mask - a String object.public MaskedProperty(Properties propsToMask, String mask, Properties propsFallBack)
propsToMask - mask - propsFallBack - public String getProperty(String key)
getProperty in class Propertiespublic boolean containsKey(Object key)
containsKey in interface Map<Object,Object>containsKey in class Hashtable<Object,Object>IllegalArgumentException - if the key is not a String instancepublic String getProperty(String key, String defaultValue)
getProperty in class Propertiespublic void list(PrintStream out)
list in class PropertiesUnsupportedOperationExceptionpublic void list(PrintWriter out)
list in class PropertiesUnsupportedOperationExceptionpublic void load(InputStream inStream) throws IOException
load in class PropertiesUnsupportedOperationExceptionIOExceptionpublic void loadFromXML(InputStream in) throws IOException
loadFromXML in class PropertiesUnsupportedOperationExceptionIOExceptionpublic Enumeration<?> propertyNames()
propertyNames in class Propertiespublic void save(OutputStream out, String comments)
save in class PropertiesUnsupportedOperationExceptionpublic Object setProperty(String key, String value)
setProperty in class PropertiesUnsupportedOperationExceptionpublic void store(OutputStream out, String comments) throws IOException
store in class PropertiesUnsupportedOperationExceptionIOExceptionpublic void storeToXML(OutputStream os, String comment, String encoding) throws IOException
storeToXML in class PropertiesUnsupportedOperationExceptionIOExceptionpublic void storeToXML(OutputStream os, String comment) throws IOException
storeToXML in class PropertiesUnsupportedOperationExceptionIOExceptionpublic void clear()
public Object clone()
clone in class Hashtable<Object,Object>UnsupportedOperationExceptionpublic boolean contains(Object value)
public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>containsValue in class Hashtable<Object,Object>UnsupportedOperationExceptionpublic Enumeration<Object> elements()
elements in class Hashtable<Object,Object>UnsupportedOperationExceptionpublic boolean isEmpty()
public Enumeration<Object> keys()
keys in class Hashtable<Object,Object>UnsupportedOperationExceptionprotected void rehash()
rehash in class Hashtable<Object,Object>UnsupportedOperationExceptionpublic int size()
public Collection<Object> values()
public int hashCode()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved