public class MetaDD extends Object implements CommonBean
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MetaDD.ReadState |
static class |
MetaDD.ValidateException |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENDS |
static String |
FINDER |
static String |
IMPLEMENTS |
static String |
IMPORT |
static String |
META_ELEMENT |
static String |
SCHEMALOCATION |
static String |
THROW_EXCEPTIONS |
static String |
VETOABLE |
| Constructor and Description |
|---|
MetaDD()
Normal starting point constructor.
|
MetaDD(MetaDD source)
Deep copy
|
MetaDD(MetaDD source,
boolean justData)
Deep copy
|
| Modifier and Type | Method and Description |
|---|---|
String |
_getSchemaLocation() |
void |
_setSchemaLocation(String location) |
int |
addFinder(String value) |
int |
addImport(String value) |
int |
addMetaElement(MetaElement 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(MetaDD inst) |
boolean |
equals(Object o) |
List |
fetchFinderList() |
List |
fetchImportList() |
List |
fetchMetaElementList() |
Object |
fetchPropertyByName(String name) |
String |
getExtends() |
String[] |
getFinder() |
String |
getFinder(int index) |
String |
getImplements() |
String[] |
getImport() |
String |
getImport(int index) |
MetaElement[] |
getMetaElement() |
MetaElement |
getMetaElement(int index) |
String |
getSchemaLocation() |
int |
hashCode() |
boolean |
isThrowExceptions() |
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() |
MetaElement |
newMetaElement()
Create a new bean using it's default constructor.
|
MetaElement |
newMetaElement(MetaElement source,
boolean justData)
Create a new bean, copying from another one.
|
static MetaDD |
read(Document document) |
static MetaDD |
read(File f) |
static MetaDD |
read(InputSource in,
boolean validate,
EntityResolver er,
ErrorHandler eh) |
static MetaDD |
read(InputStream in) |
protected void |
readFromDocument(Document document) |
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) |
static MetaDD |
readNoEntityResolver(InputStream in)
Warning: in readNoEntityResolver character and entity references will
not be read from any DTD in the XML source.
|
int |
removeFinder(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 |
removeMetaElement(MetaElement value)
Search from the end looking for @param value, and then remove it.
|
void |
setExtends(String value) |
void |
setFinder(int index,
String value) |
void |
setFinder(String[] value) |
void |
setImplements(String value) |
void |
setImport(int index,
String value) |
void |
setImport(String[] value) |
void |
setMetaElement(int index,
MetaElement value) |
void |
setMetaElement(MetaElement[] value) |
void |
setSchemaLocation(String value) |
void |
setThrowExceptions(boolean value) |
void |
setVetoable(boolean value) |
int |
sizeFinder() |
int |
sizeImport() |
int |
sizeMetaElement() |
String |
toString() |
void |
validate() |
void |
write(File f) |
void |
write(OutputStream out) |
void |
write(OutputStream out,
String encoding) |
void |
write(Writer out,
String encoding)
Print this Java Bean to @param out including an XML header.
|
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) |
static void |
writeXML(Writer out,
char msg,
boolean attribute) |
static void |
writeXML(Writer out,
String msg)
Takes some text to be printed into an XML stream and escapes any
characters that might make it invalid XML (like '<').
|
static void |
writeXML(Writer out,
String msg,
boolean attribute) |
public static final String META_ELEMENT
public static final String IMPLEMENTS
public static final String EXTENDS
public static final String IMPORT
public static final String VETOABLE
public static final String THROW_EXCEPTIONS
public static final String SCHEMALOCATION
public static final String FINDER
public MetaDD()
public MetaDD(MetaDD source)
public MetaDD(MetaDD source, boolean justData)
justData - just copy the XML relevant datapublic void setMetaElement(MetaElement[] value)
public void setMetaElement(int index,
MetaElement value)
public MetaElement[] getMetaElement()
public List fetchMetaElementList()
public MetaElement getMetaElement(int index)
public int sizeMetaElement()
public int addMetaElement(MetaElement value)
public int removeMetaElement(MetaElement 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 setVetoable(boolean value)
setVetoable in interface CommonBeanpublic boolean isVetoable()
isVetoable in interface CommonBeanpublic void setThrowExceptions(boolean value)
public boolean isThrowExceptions()
public void setSchemaLocation(String value)
public String getSchemaLocation()
public void setFinder(String[] value)
public void setFinder(int index,
String value)
public String[] getFinder()
public List fetchFinderList()
public String getFinder(int index)
public int sizeFinder()
public int addFinder(String value)
public int removeFinder(String value)
public void _setSchemaLocation(String location)
public String _getSchemaLocation()
public MetaElement newMetaElement()
public MetaElement newMetaElement(MetaElement source, boolean justData)
public void write(File f) throws IOException
IOExceptionpublic void write(OutputStream out) throws IOException
IOExceptionpublic void write(OutputStream out, String encoding) throws IOException
IOExceptionpublic void write(Writer out, String encoding) throws IOException
encoding - is the encoding style that @param out was opened with.IOExceptionpublic 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 static MetaDD read(File f) throws ParserConfigurationException, SAXException, IOException
public static MetaDD read(InputStream in) throws ParserConfigurationException, SAXException, IOException
public static MetaDD readNoEntityResolver(InputStream in) throws ParserConfigurationException, SAXException, IOException
public static MetaDD read(InputSource in, boolean validate, EntityResolver er, ErrorHandler eh) throws ParserConfigurationException, SAXException, IOException
protected void readFromDocument(Document document)
public 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 static void writeXML(Writer out, String msg) throws IOException
IOExceptionpublic static void writeXML(Writer out, String msg, boolean attribute) throws IOException
IOExceptionpublic static void writeXML(Writer out, char msg, boolean attribute) throws IOException
IOExceptionpublic 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(MetaDD 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.