public class ConfigOverlay extends Object implements MapSerializable
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
NOT_EDITABLE |
static String |
RESOURCE_NAME |
static String |
ZNODEVER |
Constructor and Description |
---|
ConfigOverlay(Map<String,Object> jsonObj,
int znodeVersion) |
Modifier and Type | Method and Description |
---|---|
ConfigOverlay |
addNamedPlugin(Map<String,Object> info,
String typ) |
static Class |
checkEditable(String path,
boolean isXpath,
List<String> hierarchy) |
ConfigOverlay |
deleteNamedPlugin(String name,
String typ) |
Map<String,String> |
getEditableSubProperties(String xpath) |
Map<String,Map> |
getNamedPlugins(String typ) |
Map<String,Object> |
getUserProps() |
Object |
getXPathProperty(String xpath) |
Object |
getXPathProperty(String xpath,
boolean onlyPrimitive) |
int |
getZnodeVersion() |
static boolean |
isEditableProp(String path,
boolean isXpath,
List<String> hierarchy) |
static void |
main(String[] args) |
ConfigOverlay |
setProperty(String name,
Object val) |
ConfigOverlay |
setUserProperty(String key,
Object val) |
byte[] |
toByteArray() |
Map<String,Object> |
toMap(Map<String,Object> map) |
String |
toString() |
ConfigOverlay |
unsetProperty(String name) |
ConfigOverlay |
unsetUserProperty(String key) |
public static final String NOT_EDITABLE
public static final String RESOURCE_NAME
public static final String ZNODEVER
public static final String NAME
public ConfigOverlay setUserProperty(String key, Object val)
public ConfigOverlay unsetUserProperty(String key)
public ConfigOverlay setProperty(String name, Object val)
public ConfigOverlay unsetProperty(String name)
public byte[] toByteArray()
public int getZnodeVersion()
public static boolean isEditableProp(String path, boolean isXpath, List<String> hierarchy)
public static Class checkEditable(String path, boolean isXpath, List<String> hierarchy)
public Map<String,Object> toMap(Map<String,Object> map)
toMap
in interface MapSerializable
public ConfigOverlay addNamedPlugin(Map<String,Object> info, String typ)
public ConfigOverlay deleteNamedPlugin(String name, String typ)
public static void main(String[] args)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.