public class MetaElement extends Object implements CommonBean
| Type | Property and Description |
|---|---|
MetaProperty |
newMeta
Create a new bean using it's default constructor.
|
int |
sizeMeta |
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_CLASS |
static String |
BEAN_INTERFACE_EXTENDS |
static String |
BEAN_NAME |
static String |
CAN_BE_EMPTY |
static String |
COMPARATOR_CLASS |
static String |
DEFAULT_VALUE |
static String |
DELEGATOR_EXTENDS |
static String |
DELEGATOR_NAME |
static String |
DTD_NAME |
static String |
EXTENDS |
static String |
IMPLEMENTS |
static String |
IMPORT |
static String |
KNOWN_VALUE |
static String |
META_PROPERTY |
static String |
NAMESPACE |
static String |
SKIP_GENERATION |
static String |
USER_CODE |
static String |
VETOABLE |
static String |
WRAPPER_CLASS |
| Constructor and Description |
|---|
MetaElement()
Normal starting point constructor.
|
MetaElement(MetaElement source)
Deep copy
|
MetaElement(MetaElement source,
boolean justData)
Deep copy
|
MetaElement(String dtdName)
Required parameters constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
addComparatorClass(String value) |
int |
addDefaultValue(String value) |
int |
addImport(String value) |
int |
addKnownValue(String value) |
int |
addMetaProperty(MetaProperty 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(MetaElement inst) |
boolean |
equals(Object o) |
List |
fetchComparatorClassList() |
List |
fetchDefaultValueList() |
List |
fetchImportList() |
List |
fetchKnownValueList() |
List |
fetchMetaPropertyList() |
Object |
fetchPropertyByName(String name) |
String |
getBeanClass() |
String |
getBeanInterfaceExtends() |
String |
getBeanName() |
String[] |
getComparatorClass() |
String |
getComparatorClass(int index) |
String[] |
getDefaultValue() |
String |
getDefaultValue(int index) |
String |
getDelegatorExtends() |
String |
getDelegatorName() |
String |
getDtdName() |
String |
getExtends() |
String |
getImplements() |
String[] |
getImport() |
String |
getImport(int index) |
String[] |
getKnownValue() |
String |
getKnownValue(int index) |
MetaProperty[] |
getMetaProperty() |
MetaProperty |
getMetaProperty(int index) |
String |
getNamespace() |
String |
getUserCode() |
String |
getWrapperClass() |
int |
hashCode() |
boolean |
isCanBeEmpty() |
boolean |
isSkipGeneration() |
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() |
MetaProperty |
newMetaProperty()
Create a new bean using it's default constructor.
|
MetaProperty |
newMetaProperty(MetaProperty source,
boolean justData)
Create a new bean, copying from another one.
|
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 |
removeComparatorClass(String value)
Search from the end looking for @param value, and then remove it.
|
int |
removeDefaultValue(String value)
Search from the end looking for @param value, and then remove it.
|
int |
removeImport(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.
|
int |
removeMetaProperty(MetaProperty value)
Search from the end looking for @param value, and then remove it.
|
void |
setBeanClass(String value) |
void |
setBeanInterfaceExtends(String value) |
void |
setBeanName(String value) |
void |
setCanBeEmpty(boolean value) |
void |
setComparatorClass(int index,
String value) |
void |
setComparatorClass(String[] value) |
void |
setDefaultValue(int index,
String value) |
void |
setDefaultValue(String[] value) |
void |
setDelegatorExtends(String value) |
void |
setDelegatorName(String value) |
void |
setDtdName(String value) |
void |
setExtends(String value) |
void |
setImplements(String value) |
void |
setImport(int index,
String value) |
void |
setImport(String[] value) |
void |
setKnownValue(int index,
String value) |
void |
setKnownValue(String[] value) |
void |
setMetaProperty(int index,
MetaProperty value) |
void |
setMetaProperty(MetaProperty[] value) |
void |
setNamespace(String value) |
void |
setSkipGeneration(boolean value) |
void |
setUserCode(String value) |
void |
setVetoable(boolean value) |
void |
setWrapperClass(String value) |
int |
sizeComparatorClass() |
int |
sizeDefaultValue() |
int |
sizeImport() |
int |
sizeKnownValue() |
int |
sizeMetaProperty() |
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 int sizeMetaProperty
public MetaProperty newMetaProperty
public static final String DTD_NAME
public static final String NAMESPACE
public static final String BEAN_NAME
public static final String BEAN_CLASS
public static final String WRAPPER_CLASS
public static final String DEFAULT_VALUE
public static final String KNOWN_VALUE
public static final String META_PROPERTY
public static final String COMPARATOR_CLASS
public static final String IMPLEMENTS
public static final String EXTENDS
public static final String IMPORT
public static final String USER_CODE
public static final String VETOABLE
public static final String SKIP_GENERATION
public static final String DELEGATOR_NAME
public static final String DELEGATOR_EXTENDS
public static final String BEAN_INTERFACE_EXTENDS
public static final String CAN_BE_EMPTY
public MetaElement()
public MetaElement(String dtdName)
public MetaElement(MetaElement source)
public MetaElement(MetaElement source, boolean justData)
justData - just copy the XML relevant datapublic void setDtdName(String value)
public String getDtdName()
public void setNamespace(String value)
public String getNamespace()
public void setBeanName(String value)
public String getBeanName()
public void setBeanClass(String value)
public String getBeanClass()
public void setWrapperClass(String value)
public String getWrapperClass()
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 setMetaProperty(MetaProperty[] value)
public void setMetaProperty(int index,
MetaProperty value)
public MetaProperty[] getMetaProperty()
public List fetchMetaPropertyList()
public MetaProperty getMetaProperty(int index)
public int sizeMetaProperty()
public int addMetaProperty(MetaProperty value)
public int removeMetaProperty(MetaProperty value)
public void setComparatorClass(String[] value)
public void setComparatorClass(int index,
String value)
public String[] getComparatorClass()
public List fetchComparatorClassList()
public String getComparatorClass(int index)
public int sizeComparatorClass()
public int addComparatorClass(String value)
public int removeComparatorClass(String value)
public void setImplements(String value)
public String getImplements()
public void setExtends(String value)
public String getExtends()
public void setImport(String[] value)
public void setImport(int index,
String value)
public String[] getImport()
public List fetchImportList()
public String getImport(int index)
public int sizeImport()
public int addImport(String value)
public int removeImport(String value)
public void setUserCode(String value)
public String getUserCode()
public void setVetoable(boolean value)
setVetoable in interface CommonBeanpublic boolean isVetoable()
isVetoable in interface CommonBeanpublic void setSkipGeneration(boolean value)
public boolean isSkipGeneration()
public void setDelegatorName(String value)
public String getDelegatorName()
public void setDelegatorExtends(String value)
public String getDelegatorExtends()
public void setBeanInterfaceExtends(String value)
public String getBeanInterfaceExtends()
public void setCanBeEmpty(boolean value)
public boolean isCanBeEmpty()
public MetaProperty newMetaProperty()
public MetaProperty newMetaProperty(MetaProperty source, boolean justData)
public 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(MetaElement inst)
public int hashCode()
hashCode in interface CommonBeanhashCode in class Objectpublic String toString()
toString in interface CommonBeantoString in class ObjectCopyright © 2017. All Rights Reserved.