Package com.sun.xml.bind.v2.runtime
Class BridgeContextImpl
- java.lang.Object
-
- com.sun.xml.bind.api.BridgeContext
-
- com.sun.xml.bind.v2.runtime.BridgeContextImpl
-
public final class BridgeContextImpl extends BridgeContext
BridgeContextimplementation.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description MarshallerImplmarshallerUnmarshallerImplunmarshaller
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentMarshallergetAttachmentMarshaller()Gets the lastAttachmentMarshallerset throughAttachmentMarshaller.AttachmentUnmarshallergetAttachmentUnmarshaller()Gets the lastAttachmentUnmarshallerset throughAttachmentUnmarshaller.voidsetAttachmentMarshaller(AttachmentMarshaller m)Sets theAttachmentMarshaller.voidsetAttachmentUnmarshaller(AttachmentUnmarshaller u)Sets theAttachmentUnmarshaller.voidsetErrorHandler(ValidationEventHandler handler)Registers the error handler that receives unmarshalling/marshalling errors.
-
-
-
Field Detail
-
unmarshaller
public final UnmarshallerImpl unmarshaller
-
marshaller
public final MarshallerImpl marshaller
-
-
Method Detail
-
setErrorHandler
public void setErrorHandler(ValidationEventHandler handler)
Description copied from class:BridgeContextRegisters the error handler that receives unmarshalling/marshalling errors.- Specified by:
setErrorHandlerin classBridgeContext- Parameters:
handler- can be null, in which case all errors will be considered fatal.
-
setAttachmentMarshaller
public void setAttachmentMarshaller(AttachmentMarshaller m)
Description copied from class:BridgeContextSets theAttachmentMarshaller.- Specified by:
setAttachmentMarshallerin classBridgeContext
-
setAttachmentUnmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller u)
Description copied from class:BridgeContextSets theAttachmentUnmarshaller.- Specified by:
setAttachmentUnmarshallerin classBridgeContext
-
getAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()
Description copied from class:BridgeContextGets the lastAttachmentMarshallerset throughAttachmentMarshaller.- Specified by:
getAttachmentMarshallerin classBridgeContext
-
getAttachmentUnmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
Description copied from class:BridgeContextGets the lastAttachmentUnmarshallerset throughAttachmentUnmarshaller.- Specified by:
getAttachmentUnmarshallerin classBridgeContext
-
-