public class TypeMapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeMapper.PartialArrayException |
| Modifier and Type | Field and Description |
|---|---|
boolean |
writeFieldXsiType |
| Constructor and Description |
|---|
TypeMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeEndTag(XmlInputStream in) |
void |
consumeStartTag(XmlInputStream in) |
Object |
deserialize(String value,
QName type) |
boolean |
generateInterfaces() |
String |
getInterfacePackagePrefix() |
String |
getJavaClassName(QName xmltype,
Types types,
boolean nillable)
returns java class name for the specified xml complex type
|
String |
getPackagePrefix() |
static String |
getPrefix(String xsiType) |
static String |
getType(String xsiType) |
QName |
getXmlType(String javaType) |
QName |
getXsiType(XmlInputStream in) |
boolean |
isElement(XmlInputStream in,
TypeInfo info) |
boolean |
isKeyWord(String token) |
boolean |
isSObject(String namespace,
String name) |
boolean |
isWellKnownType(String namespace,
String name)
is this a well know type.
|
double |
parseDouble(String strValue) |
boolean |
readBoolean(XmlInputStream in,
TypeInfo info,
Class<?> type) |
double |
readDouble(XmlInputStream in,
TypeInfo info,
Class<?> type) |
float |
readFloat(XmlInputStream in,
TypeInfo info,
Class<?> type) |
int |
readInt(XmlInputStream in,
TypeInfo info,
Class<?> type) |
long |
readLong(XmlInputStream in,
TypeInfo info,
Class<?> type) |
Object |
readObject(XmlInputStream in,
TypeInfo info,
Class<?> type) |
Object |
readPartialArray(XmlInputStream in,
TypeInfo result__typeInfo,
Class<?> type) |
String |
readString(XmlInputStream in,
TypeInfo info,
Class<?> type) |
void |
setConfig(ConnectorConfig config) |
void |
setGenerateInterfaces(boolean generateInterfaces) |
void |
setInterfacePackagePrefix(String interfacePackagePrefix) |
void |
setPackagePrefix(String packagePrefix) |
boolean |
verifyElement(XmlInputStream in,
TypeInfo info) |
void |
verifyTag(String namespace1,
String name1,
String namespace2,
String name2) |
void |
writeBoolean(XmlOutputStream out,
TypeInfo info,
boolean value,
boolean isSet) |
String |
writeDouble(double value) |
void |
writeDouble(XmlOutputStream out,
TypeInfo info,
double value,
boolean isSet) |
void |
writeFieldXsiType(boolean flag) |
void |
writeFloat(XmlOutputStream out,
TypeInfo info,
float value,
boolean isSet) |
void |
writeInt(XmlOutputStream out,
TypeInfo info,
int value,
boolean isSet) |
void |
writeLong(XmlOutputStream out,
TypeInfo info,
long value,
boolean isSet) |
void |
writeObject(XmlOutputStream out,
TypeInfo info,
Object value,
boolean isSet) |
void |
writeString(XmlOutputStream out,
TypeInfo info,
String value,
boolean isSet) |
void |
writeXsiType(XmlOutputStream out,
String typeNS,
String type)
write xsi type.
|
public void writeFieldXsiType(boolean flag)
public void setPackagePrefix(String packagePrefix)
public String getPackagePrefix()
public String getInterfacePackagePrefix()
public void setInterfacePackagePrefix(String interfacePackagePrefix)
public boolean isKeyWord(String token)
public void setConfig(ConnectorConfig config)
public boolean isWellKnownType(String namespace, String name)
namespace - namespace of the typename - name of the typepublic String getJavaClassName(QName xmltype, Types types, boolean nillable)
xmltype - xml complex typetypes - typesnillable - nillablepublic void writeXsiType(XmlOutputStream out, String typeNS, String type) throws IOException
out - xml out put streamtypeNS - namespace of the typetype - name of the typeIOException - failed to writepublic void writeString(XmlOutputStream out, TypeInfo info, String value, boolean isSet) throws IOException
IOExceptionpublic void writeBoolean(XmlOutputStream out, TypeInfo info, boolean value, boolean isSet) throws IOException
IOExceptionpublic void writeInt(XmlOutputStream out, TypeInfo info, int value, boolean isSet) throws IOException
IOExceptionpublic void writeLong(XmlOutputStream out, TypeInfo info, long value, boolean isSet) throws IOException
IOExceptionpublic void writeFloat(XmlOutputStream out, TypeInfo info, float value, boolean isSet) throws IOException
IOExceptionpublic void writeDouble(XmlOutputStream out, TypeInfo info, double value, boolean isSet) throws IOException
IOExceptionpublic String writeDouble(double value)
public void writeObject(XmlOutputStream out, TypeInfo info, Object value, boolean isSet) throws IOException
IOExceptionpublic void verifyTag(String namespace1, String name1, String namespace2, String name2) throws ConnectionException
ConnectionExceptionpublic void consumeStartTag(XmlInputStream in) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic void consumeEndTag(XmlInputStream in) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic boolean verifyElement(XmlInputStream in, TypeInfo info) throws ConnectionException
ConnectionExceptionpublic boolean isElement(XmlInputStream in, TypeInfo info) throws ConnectionException
ConnectionExceptionpublic String readString(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic int readInt(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic long readLong(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic float readFloat(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic boolean readBoolean(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic double readDouble(XmlInputStream in, TypeInfo info, Class<?> type) throws IOException, ConnectionException
IOExceptionConnectionExceptionpublic double parseDouble(String strValue)
public Object readObject(XmlInputStream in, TypeInfo info, Class<?> type) throws ConnectionException, IOException
ConnectionExceptionIOExceptionpublic Object readPartialArray(XmlInputStream in, TypeInfo result__typeInfo, Class<?> type) throws ConnectionException, IOException
ConnectionExceptionIOExceptionpublic QName getXsiType(XmlInputStream in)
public void setGenerateInterfaces(boolean generateInterfaces)
public boolean generateInterfaces()
Copyright © 2015. All Rights Reserved.