public abstract class CodecBase extends JAXRPCCodecBase implements CodecPropertyInfo
Modifier and Type | Field and Description |
---|---|
private static boolean |
ASSERT |
private static boolean |
DEBUG |
protected static boolean |
QUALIFIED_TOP_LEVEL_ELE_ONLY |
Constructor and Description |
---|
CodecBase() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addPrefixToMap(java.lang.String uri,
java.lang.String prefix,
SerializationContext context) |
private java.lang.String |
addXsiTypeAttribute(XMLOutputStream writer,
SerializationContext context) |
protected static java.lang.String |
checkForId(StartElement start_elem) |
protected static java.lang.String |
checkForRef(StartElement start_elem)
check for a href attribute.
|
protected static void |
checkValidityConstraint(boolean expr,
java.lang.String error_msg) |
protected static Attribute |
createIdAttribute(java.lang.String id)
creates an attribute that for given id
|
protected static Attribute |
createRefAttribute(java.lang.String id)
creates an attribute that has a ref to given id
|
protected static void |
declareNamespace(XMLName name,
XMLOutputStream writer,
SerializationContext context) |
java.lang.Object |
deserialize(XMLName name,
Attribute att,
DeserializationContext context)
Take an XML instance, create and populate the corresponding
Object.
|
java.lang.Object |
deserialize(XMLName name,
XMLInputStream reader,
DeserializationContext context)
Take an XML instance, create and populate the corresponding
Object.
|
protected static java.lang.Object |
deserializeReferredObject(java.lang.String ref_id,
Deserializer deser,
XMLName name,
XMLInputStream reader,
DeserializationContext ctx)
take ref resolve it, and return resolved object.
|
protected static java.lang.String |
fillPrefixAddToMap(weblogic.xml.schema.model.ExpName ename,
SerializationContext context) |
protected static java.lang.String |
fillPrefixDeclareNamespace(weblogic.xml.schema.model.ExpName ename,
XMLOutputStream writer,
SerializationContext context)
fill in the prefix on ename.
|
protected abstract void |
gatherContents(java.lang.Object obj,
ObjectRefTable.Entry entry,
XMLOutputStream writer,
SerializationContext context)
fill the ObjectRefTable, do not write any xml
|
protected static StartElement |
getNextStartElement(XMLInputStream reader) |
protected static StartElement |
getNextStartElement(XMLInputStream reader,
boolean eat_end_elem) |
private static boolean |
getQUALIFIED_TOP_LEVEL_ELE_ONLYProp() |
protected abstract XMLName |
getXmlType()
get the xml type that this codec is ser/deser.
|
protected boolean |
isCompleteType() |
protected static boolean |
isSoapEncoding(SerializationContext context) |
protected static boolean |
isStrictValidation(DeserializationContext context) |
protected static boolean |
isStrictValidation(SerializationContext context) |
protected static void |
removePrefixFromMap(java.lang.String uri,
SerializationContext context) |
protected void |
serialize_internal(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context) |
void |
serialize(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context)
Write the given Object to an XMLOutputSteam, using the
information described in the mapping, using the name parameter as
the name of the resulting element.
|
private void |
serializeFill(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context)
fill in this case means fill the ObjectRefTable
|
private void |
serializeFinalWrite(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context,
boolean is_top_level_elem) |
private void |
serializeInitialWrite(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context) |
private void |
serializeLiteral(java.lang.Object obj,
XMLName name,
XMLOutputStream writer,
SerializationContext context) |
protected abstract void |
writeContents(java.lang.Object obj,
ObjectRefTable.Entry entry,
XMLOutputStream writer,
SerializationContext context)
write the body of the xml.
|
protected void |
writeEndElement(XMLName name,
XMLOutputStream writer) |
protected void |
writeStartElement(XMLName name,
XMLOutputStream writer) |
private void |
writeTypeAndContents(java.lang.Object obj,
ObjectRefTable.Entry entry,
XMLOutputStream writer,
SerializationContext context) |
protected boolean |
writeXsiType(SerializationContext context)
subclasses that involve inheritance should override this to
always return true.
|
getDeserializerAs, getMechanismType, getSerializerAs, getSupportedMechanismTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyCount, getPropertyInfo
private static final boolean DEBUG
private static final boolean ASSERT
protected static final boolean QUALIFIED_TOP_LEVEL_ELE_ONLY
private static boolean getQUALIFIED_TOP_LEVEL_ELE_ONLYProp()
public java.lang.Object deserialize(XMLName name, Attribute att, DeserializationContext context) throws DeserializationException
Deserializer
deserialize
may be called recusively as
needed to build contained Objects thus building up the full
graph of contained Objects.name
- The expected name of the XML elementatt
- The attribute containing the value to deserializecontext
- The context passed to each invocationDeserializationException
- If an error occurspublic java.lang.Object deserialize(XMLName name, XMLInputStream reader, DeserializationContext context) throws DeserializationException
Deserializer
deserialize
may be called recusively as
needed to build contained Objects thus building up the full
graph of contained Objects.name
- The expected name of the XML elementreader
- The XML stream containing the XML to deserializecontext
- The context passed to each invocationDeserializationException
- If an error occursprotected static java.lang.Object deserializeReferredObject(java.lang.String ref_id, Deserializer deser, XMLName name, XMLInputStream reader, DeserializationContext ctx) throws DeserializationException, XMLStreamException
protected boolean isCompleteType()
protected abstract XMLName getXmlType()
protected abstract void gatherContents(java.lang.Object obj, ObjectRefTable.Entry entry, XMLOutputStream writer, SerializationContext context) throws SerializationException
SerializationException
protected abstract void writeContents(java.lang.Object obj, ObjectRefTable.Entry entry, XMLOutputStream writer, SerializationContext context) throws SerializationException, XMLStreamException
public void serialize(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context) throws SerializationException
Serializer
SerializationException
protected void serialize_internal(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context) throws SerializationException
SerializationException
private void serializeFill(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context) throws SerializationException
SerializationException
private void serializeLiteral(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context) throws SerializationException
SerializationException
protected void writeStartElement(XMLName name, XMLOutputStream writer) throws XMLStreamException
XMLStreamException
protected void writeEndElement(XMLName name, XMLOutputStream writer) throws XMLStreamException
XMLStreamException
private void serializeInitialWrite(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context) throws SerializationException
SerializationException
private void writeTypeAndContents(java.lang.Object obj, ObjectRefTable.Entry entry, XMLOutputStream writer, SerializationContext context) throws SerializationException, XMLStreamException
private void serializeFinalWrite(java.lang.Object obj, XMLName name, XMLOutputStream writer, SerializationContext context, boolean is_top_level_elem) throws SerializationException
SerializationException
private java.lang.String addXsiTypeAttribute(XMLOutputStream writer, SerializationContext context) throws XMLStreamException
XMLStreamException
protected static java.lang.String checkForRef(StartElement start_elem) throws DeserializationException
DeserializationException
protected static java.lang.String checkForId(StartElement start_elem) throws DeserializationException
DeserializationException
protected static Attribute createIdAttribute(java.lang.String id)
protected static Attribute createRefAttribute(java.lang.String id)
protected static boolean isSoapEncoding(SerializationContext context)
protected static boolean isStrictValidation(SerializationContext context)
protected static boolean isStrictValidation(DeserializationContext context)
protected static void checkValidityConstraint(boolean expr, java.lang.String error_msg) throws DeserializationException
DeserializationException
protected boolean writeXsiType(SerializationContext context)
protected static void addPrefixToMap(java.lang.String uri, java.lang.String prefix, SerializationContext context)
protected static void removePrefixFromMap(java.lang.String uri, SerializationContext context)
protected static java.lang.String fillPrefixAddToMap(weblogic.xml.schema.model.ExpName ename, SerializationContext context) throws XMLStreamException
XMLStreamException
protected static void declareNamespace(XMLName name, XMLOutputStream writer, SerializationContext context) throws XMLStreamException
XMLStreamException
protected static java.lang.String fillPrefixDeclareNamespace(weblogic.xml.schema.model.ExpName ename, XMLOutputStream writer, SerializationContext context) throws XMLStreamException
XMLStreamException
protected static StartElement getNextStartElement(XMLInputStream reader) throws XMLStreamException
XMLStreamException
protected static StartElement getNextStartElement(XMLInputStream reader, boolean eat_end_elem) throws XMLStreamException
XMLStreamException