public class SchemaTypeMappingType extends Object implements CommonBean
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN |
static String |
CAN_BE_EMPTY |
static String |
JAVA_TYPE |
static String |
ROOT |
static String |
SCHEMA_TYPE_NAME |
static String |
SCHEMA_TYPE_NAMESPACE |
| Constructor and Description |
|---|
SchemaTypeMappingType()
Normal starting point constructor.
|
SchemaTypeMappingType(SchemaTypeMappingType source)
Deep copy
|
SchemaTypeMappingType(SchemaTypeMappingType source,
boolean justData)
Deep copy
|
SchemaTypeMappingType(String schemaTypeName,
String javaType)
Required parameters constructor
|
| Modifier and Type | Method and Description |
|---|---|
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(Object o) |
boolean |
equals(SchemaTypeMappingType inst) |
Object |
fetchPropertyByName(String name) |
String |
getJavaType() |
String |
getSchemaTypeName() |
String |
getSchemaTypeNamespace() |
int |
hashCode() |
boolean |
isBean() |
boolean |
isCanBeEmpty() |
boolean |
isRoot() |
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) |
void |
setBean(boolean value) |
void |
setCanBeEmpty(boolean value) |
void |
setJavaType(String value) |
void |
setRoot(boolean value) |
void |
setSchemaTypeName(String value) |
void |
setSchemaTypeNamespace(String value) |
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 SCHEMA_TYPE_NAMESPACE
public static final String SCHEMA_TYPE_NAME
public static final String JAVA_TYPE
public static final String ROOT
public static final String BEAN
public static final String CAN_BE_EMPTY
public SchemaTypeMappingType()
public SchemaTypeMappingType(String schemaTypeName, String javaType)
public SchemaTypeMappingType(SchemaTypeMappingType source)
public SchemaTypeMappingType(SchemaTypeMappingType source, boolean justData)
justData - just copy the XML relevant datapublic void setSchemaTypeNamespace(String value)
public String getSchemaTypeNamespace()
public void setSchemaTypeName(String value)
public String getSchemaTypeName()
public void setJavaType(String value)
public String getJavaType()
public void setRoot(boolean value)
public boolean isRoot()
public void setBean(boolean value)
public boolean isBean()
public void setCanBeEmpty(boolean value)
public boolean isCanBeEmpty()
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 BeanGraph.ValidateException
validate in interface CommonBeanBeanGraph.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(SchemaTypeMappingType 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.