public class MetaProperty extends Object implements CommonBean
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_NAME |
static String |
DEFAULT_VALUE |
static String |
KEY |
static String |
KNOWN_VALUE |
static String |
VETOABLE |
| Constructor and Description |
|---|
MetaProperty()
Normal starting point constructor.
|
MetaProperty(MetaProperty source)
Deep copy
|
MetaProperty(MetaProperty source,
boolean justData)
Deep copy
|
MetaProperty(String beanName)
Required parameters constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
addDefaultValue(String value) |
int |
addKnownValue(String value) |
void |
changePropertyByName(String name,
Object value) |
CommonBean[] |
childBeans(boolean recursive)
Return an array of all of the properties that are beans and are set.
|
void |
childBeans(boolean recursive,
List beans)
Put all child beans into the beans list.
|
boolean |
equals(MetaProperty inst) |
boolean |
equals(Object o) |
List |
fetchDefaultValueList() |
List |
fetchKnownValueList() |
Object |
fetchPropertyByName(String name) |
String |
getBeanName() |
String[] |
getDefaultValue() |
String |
getDefaultValue(int index) |
String[] |
getKnownValue() |
String |
getKnownValue(int index) |
int |
hashCode() |
boolean |
isKey() |
boolean |
isVetoable() |
String |
nameChild(Object childObj) |
String |
nameChild(Object childObj,
boolean returnConstName,
boolean returnSchemaName) |
String |
nameChild(Object childObj,
boolean returnConstName,
boolean returnSchemaName,
boolean returnXPathName) |
String |
nameSelf() |
void |
readNode(Node node) |
void |
readNode(Node node,
Map namespacePrefixes) |
protected void |
readNodeAttributes(Node node,
Map namespacePrefixes,
NamedNodeMap attrs) |
protected boolean |
readNodeChild(Node childNode,
String childNodeName,
String childNodeValue,
Map namespacePrefixes) |
protected void |
readNodeChildren(Node node,
Map namespacePrefixes) |
int |
removeDefaultValue(String value)
Search from the end looking for @param value, and then remove it.
|
int |
removeKnownValue(String value)
Search from the end looking for @param value, and then remove it.
|
void |
setBeanName(String value) |
void |
setDefaultValue(int index,
String value) |
void |
setDefaultValue(String[] value) |
void |
setKey(boolean value) |
void |
setKnownValue(int index,
String value) |
void |
setKnownValue(String[] value) |
void |
setVetoable(boolean value) |
int |
sizeDefaultValue() |
int |
sizeKnownValue() |
String |
toString() |
void |
validate() |
void |
writeNode(Writer out) |
void |
writeNode(Writer out,
String nodeName,
String indent) |
void |
writeNode(Writer out,
String nodeName,
String namespace,
String indent,
Map namespaceMap)
It's not recommended to call this method directly.
|
protected void |
writeNodeAttributes(Writer out,
String nodeName,
String namespace,
String indent,
Map namespaceMap) |
protected void |
writeNodeChildren(Writer out,
String nodeName,
String namespace,
String indent,
Map namespaceMap) |
public static final String BEAN_NAME
public static final String DEFAULT_VALUE
public static final String KNOWN_VALUE
public static final String KEY
public static final String VETOABLE
public MetaProperty()
public MetaProperty(String beanName)
public MetaProperty(MetaProperty source)
public MetaProperty(MetaProperty source, boolean justData)
justData - just copy the XML relevant datapublic void setBeanName(String value)
public String getBeanName()
public void setDefaultValue(String[] value)
public void setDefaultValue(int index,
String value)
public String[] getDefaultValue()
public List fetchDefaultValueList()
public String getDefaultValue(int index)
public int sizeDefaultValue()
public int addDefaultValue(String value)
public int removeDefaultValue(String value)
public void setKnownValue(String[] value)
public void setKnownValue(int index,
String value)
public String[] getKnownValue()
public List fetchKnownValueList()
public String getKnownValue(int index)
public int sizeKnownValue()
public int addKnownValue(String value)
public int removeKnownValue(String value)
public void setKey(boolean value)
public boolean isKey()
public void setVetoable(boolean value)
setVetoable in interface CommonBeanpublic boolean isVetoable()
isVetoable in interface CommonBeanpublic void writeNode(Writer out) throws IOException
writeNode in interface CommonBeanIOExceptionpublic void writeNode(Writer out, String nodeName, String indent) throws IOException
writeNode in interface CommonBeanIOExceptionpublic void writeNode(Writer out, String nodeName, String namespace, String indent, Map namespaceMap) throws IOException
IOExceptionprotected void writeNodeAttributes(Writer out, String nodeName, String namespace, String indent, Map namespaceMap) throws IOException
IOExceptionprotected void writeNodeChildren(Writer out, String nodeName, String namespace, String indent, Map namespaceMap) throws IOException
IOExceptionpublic void readNode(Node node)
readNode in interface CommonBeanpublic void readNode(Node node, Map namespacePrefixes)
readNode in interface CommonBeanprotected void readNodeAttributes(Node node, Map namespacePrefixes, NamedNodeMap attrs)
protected boolean readNodeChild(Node childNode, String childNodeName, String childNodeValue, Map namespacePrefixes)
public void validate()
throws MetaDD.ValidateException
validate in interface CommonBeanMetaDD.ValidateExceptionpublic void changePropertyByName(String name, Object value)
changePropertyByName in interface CommonBeanpublic Object fetchPropertyByName(String name)
fetchPropertyByName in interface CommonBeanpublic String nameSelf()
nameSelf in interface CommonBeanpublic String nameChild(Object childObj)
nameChild in interface CommonBeanpublic String nameChild(Object childObj, boolean returnConstName, boolean returnSchemaName)
nameChild in interface CommonBeanchildObj - The child object to search forreturnSchemaName - Whether or not the schema name should be returned or the property namepublic String nameChild(Object childObj, boolean returnConstName, boolean returnSchemaName, boolean returnXPathName)
nameChild in interface CommonBeanchildObj - The child object to search forreturnSchemaName - Whether or not the schema name should be returned or the property namepublic CommonBean[] childBeans(boolean recursive)
childBeans in interface CommonBeanpublic void childBeans(boolean recursive,
List beans)
childBeans in interface CommonBeanpublic boolean equals(Object o)
equals in interface CommonBeanequals in class Objectpublic boolean equals(MetaProperty inst)
public int hashCode()
hashCode in interface CommonBeanhashCode in class Objectpublic String toString()
toString in interface CommonBeantoString in class ObjectCopyright © 2017–2019 Eclipse Foundation. All rights reserved.