public class RawPropertyData
extends java.lang.Object
Constructor and Description |
---|
RawPropertyData(java.lang.String name,
java.lang.String className)
Creates a raw property data item.
|
RawPropertyData(java.lang.String name,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a raw property data item, using a given property map.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String propName,
java.util.List<java.lang.String> propValue)
Adds a new property with a
List<String> value. |
void |
add(java.lang.String propName,
java.lang.String propValue)
Adds a new property with a
String value. |
boolean |
contains(java.lang.String propName)
Determines if the map already contains an entry for a property.
|
RawPropertyData |
flatten(ConfigurationManager cm)
Return a copy of this property data instance with all ${}-fields resolved.
|
java.lang.String |
getClassName() |
java.lang.String |
getGlobalProperty(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> globalProperties)
Lookup a global symbol with a given name (and resolves
|
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
void |
remove(java.lang.String propName)
Removes an existing property.
|
java.lang.String |
toString()
Provide information stored inside this Object, used mainly for debugging/testing.
|
public RawPropertyData(java.lang.String name, java.lang.String className)
name
- the name of the itemclassName
- the class name of the itempublic RawPropertyData(java.lang.String name, java.lang.String className, java.util.Map<java.lang.String,java.lang.Object> properties)
name
- the name of the itemclassName
- the class name of the itemproperties
- existing property map to usepublic void add(java.lang.String propName, java.lang.String propValue)
String
value.propName
- the name of the propertypropValue
- the value of the propertypublic void add(java.lang.String propName, java.util.List<java.lang.String> propValue)
List<String>
value.propName
- the name of the propertypropValue
- the value of the propertypublic void remove(java.lang.String propName)
propName
- the name of the propertypublic java.lang.String getClassName()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public boolean contains(java.lang.String propName)
propName
- the property of interestpublic RawPropertyData flatten(ConfigurationManager cm)
cm
- configuration managerpublic java.lang.String getGlobalProperty(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> globalProperties)
key
- the name of the propertyglobalProperties
- global propertiespublic java.lang.String toString()
toString
in class java.lang.Object