Methods Summary |
---|
public java.lang.String | getMechanismType() return Constants.AXIS_SAX;
|
public java.lang.String | getValueAsString(java.lang.Object value, org.apache.axis.encoding.SerializationContext context)
return qName2String((QName)value, context);
|
public static java.lang.String | qName2String(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context)
String str = context.qName2String(qname);
// work around for default namespace
if (str == qname.getLocalPart()) {
String namespace = qname.getNamespaceURI();
if (namespace != null && namespace.length() > 0) {
String prefix =
context.getPrefixForURI(qname.getNamespaceURI(),
null, true);
return prefix + ":" + str;
}
}
return str;
|
public void | serialize(javax.xml.namespace.QName name, org.xml.sax.Attributes attributes, java.lang.Object value, org.apache.axis.encoding.SerializationContext context)Serialize a QName.
// NOTE: getValueAsString has the side-effect of priming the context
// with the QName's namespace, so it must be called BEFORE context.startElement.
String qnameString = getValueAsString(value, context);
context.startElement(name, attributes);
context.writeString(qnameString);
context.endElement();
|
public org.w3c.dom.Element | writeSchema(java.lang.Class javaType, org.apache.axis.wsdl.fromJava.Types types)Return XML schema for the specified type, suitable for insertion into
the <types> element of a WSDL document, or underneath an
<element> or <attribute> declaration.
return null;
|