Package org.apache.axis.encoding
Class AttributeSerializationContextImpl
- java.lang.Object
-
- org.apache.axis.encoding.SerializationContext
-
- org.apache.axis.encoding.AttributeSerializationContextImpl
-
- All Implemented Interfaces:
SerializationContext
public class AttributeSerializationContextImpl extends SerializationContext
Used to suppress element tag serialization when serializing simple types into attributes.- Author:
- Thomas Sandholm (sandholm@mcs.anl.gov)
-
-
Field Summary
-
Fields inherited from class org.apache.axis.encoding.SerializationContext
log, startOfDocument
-
-
Constructor Summary
Constructors Constructor Description AttributeSerializationContextImpl(java.io.Writer writer, SerializationContext parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement()Writes the end element tag for the open element.java.lang.StringqName2String(QName qname)voidstartElement(QName qName, org.xml.sax.Attributes attributes)Writes (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.-
Methods inherited from class org.apache.axis.encoding.SerializationContext
attributeQName2String, getCurrentMessage, getCurrentXMLType, getDoMultiRefs, getEncoder, getEncoding, getEncodingStyle, getItemQName, getItemType, getMessageContext, getPrefixForURI, getPrefixForURI, getPrefixForURI, getPretty, getQNameForClass, getSerializerForJavaType, getTypeMapping, getTypeMappingRegistry, getValueAsString, isEncoded, isPrimitive, outputMultiRefs, qName2String, registerPrefixForURI, serialize, serialize, serialize, serialize, serialize, serialize, setDoMultiRefs, setEncoding, setItemQName, setItemType, setPretty, setSendDecl, setTypeAttribute, setWriteXMLType, shouldSendXSIType, writeChars, writeDOMElement, writeSafeString, writeString, writeXMLDeclaration
-
-
-
-
Constructor Detail
-
AttributeSerializationContextImpl
public AttributeSerializationContextImpl(java.io.Writer writer, SerializationContext parent)
-
-
Method Detail
-
startElement
public void startElement(QName qName, org.xml.sax.Attributes attributes) throws java.io.IOException
Description copied from class:SerializationContextWrites (using the Writer) the start tag for element QName along with the indicated attributes and namespace mappings.- Overrides:
startElementin classSerializationContext- Parameters:
qName- is the name of the elementattributes- are the attributes to write- Throws:
java.io.IOException
-
endElement
public void endElement() throws java.io.IOExceptionDescription copied from class:SerializationContextWrites the end element tag for the open element.- Overrides:
endElementin classSerializationContext- Throws:
java.io.IOException
-
qName2String
public java.lang.String qName2String(QName qname)
- Overrides:
qName2Stringin classSerializationContext
-
-