Methods Summary |
---|
public java.lang.Class | getDeserializer()
return ClassUtils.forName(deserializer);
|
public java.lang.String | getDeserializerName()
return deserializer;
|
protected javax.xml.namespace.QName | getElementName()
return QNAME_TYPEMAPPING;
|
public java.lang.String | getEncodingStyle()
return encodingStyle;
|
public java.lang.Class | getLanguageSpecificType()
if (typeQName != null) {
if (!URI_WSDD_JAVA.equals(typeQName.getNamespaceURI())) {
throw new ClassNotFoundException(Messages.getMessage("badTypeNamespace00",
typeQName.getNamespaceURI(),
URI_WSDD_JAVA));
}
String loadName = JavaUtils.getLoadableClassName(typeQName.getLocalPart());
if (JavaUtils.getWrapper(loadName) != null) {
Class cls = JavaUtils.getPrimitiveClassFromName(loadName);
return cls;
}
return ClassUtils.forName(loadName);
}
throw new ClassNotFoundException(Messages.getMessage("noTypeQName00"));
|
public javax.xml.namespace.QName | getQName()
return qname;
|
public java.lang.String | getRef()
return ref;
|
public java.lang.Class | getSerializer()
return ClassUtils.forName(serializer);
|
public java.lang.String | getSerializerName()
return serializer;
|
public void | setDeserializer(java.lang.Class deser)
deserializer = deser.getName();
|
public void | setDeserializer(java.lang.String deser)Set the deserializer factory name
deserializer = deser;
|
public void | setEncodingStyle(java.lang.String es)
encodingStyle = es;
|
public void | setLanguageSpecificType(java.lang.Class javaType)Set javaType (type= attribute or languageSpecificType= attribute)
String type = javaType.getName();
typeQName = new QName(URI_WSDD_JAVA, type);
|
public void | setLanguageSpecificType(java.lang.String javaType)Set javaType (type= attribute or languageSpecificType= attribute)
typeQName = new QName(URI_WSDD_JAVA, javaType);
|
public void | setQName(javax.xml.namespace.QName name)
qname = name;
|
public void | setRef(java.lang.String ref)
this.ref = ref;
|
public void | setSerializer(java.lang.Class ser)
serializer = ser.getName();
|
public void | setSerializer(java.lang.String ser)Set the serializer factory name
serializer = ser;
|
public void | writeToContext(org.apache.axis.encoding.SerializationContext context)Write this element out to a SerializationContext
AttributesImpl attrs = new AttributesImpl();
attrs.addAttribute("", ATTR_ENCSTYLE, ATTR_ENCSTYLE, "CDATA", encodingStyle);
attrs.addAttribute("", ATTR_SERIALIZER, ATTR_SERIALIZER, "CDATA", serializer);
attrs.addAttribute("", ATTR_DESERIALIZER, ATTR_DESERIALIZER, "CDATA", deserializer);
String typeStr = context.qName2String(typeQName);
// JSR 109 indicates that the name of this field is type
attrs.addAttribute("", ATTR_TYPE, ATTR_TYPE,
"CDATA", typeStr);
String qnameStr = context.attributeQName2String(qname);
attrs.addAttribute("", ATTR_QNAME, ATTR_QNAME, "CDATA", qnameStr);
context.startElement(QNAME_TYPEMAPPING, attrs);
context.endElement();
|