public abstract class AbstractPropertiesHolder extends Object implements Extensible
Constructor and Description |
---|
AbstractPropertiesHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addExtensionAttribute(QName name,
Object attr) |
void |
addExtensor(Object el) |
boolean |
containsExtensor(Object el) |
protected static boolean |
equals(Object o1,
Object o2) |
String |
getDocumentation() |
Object |
getExtensionAttribute(QName name) |
Map<QName,Object> |
getExtensionAttributes() |
<T> T |
getExtensor(Class<T> cls) |
AtomicReference<Object[]> |
getExtensors() |
<T> List<T> |
getExtensors(Class<T> cls) |
Map<String,Object> |
getProperties() |
Object |
getProperty(String name) |
<T> T |
getProperty(String name,
Class<T> cls) |
<T> T |
getTraversedExtensor(T defaultValue,
Class<T> type)
Lookup a configuration value.
|
boolean |
hasProperty(String name) |
Object |
removeProperty(String name) |
void |
setDelegate(AbstractPropertiesHolder p,
boolean props) |
void |
setDocumentation(String s) |
void |
setExtensionAttributes(Map<QName,Object> attrs) |
void |
setProperty(String name,
Object v) |
public final void setDelegate(AbstractPropertiesHolder p, boolean props)
public String getDocumentation()
public void setDocumentation(String s)
public boolean hasProperty(String name)
public boolean containsExtensor(Object el)
public void addExtensor(Object el)
addExtensor
in interface Extensible
public <T> T getExtensor(Class<T> cls)
getExtensor
in interface Extensible
public <T> List<T> getExtensors(Class<T> cls)
getExtensors
in interface Extensible
public AtomicReference<Object[]> getExtensors()
public Object getExtensionAttribute(QName name)
getExtensionAttribute
in interface Extensible
public Map<QName,Object> getExtensionAttributes()
getExtensionAttributes
in interface Extensible
public void addExtensionAttribute(QName name, Object attr)
addExtensionAttribute
in interface Extensible
public void setExtensionAttributes(Map<QName,Object> attrs)
setExtensionAttributes
in interface Extensible
public <T> T getTraversedExtensor(T defaultValue, Class<T> type)
defaultValue
- the default valuetype
- the extensor typeCopyright © 2017 JBoss by Red Hat. All rights reserved.