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
BridgeContext
implementation.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description MarshallerImpl
marshaller
UnmarshallerImpl
unmarshaller
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentMarshaller
getAttachmentMarshaller()
Gets the lastAttachmentMarshaller
set throughAttachmentMarshaller
.AttachmentUnmarshaller
getAttachmentUnmarshaller()
Gets the lastAttachmentUnmarshaller
set throughAttachmentUnmarshaller
.void
setAttachmentMarshaller(AttachmentMarshaller m)
Sets theAttachmentMarshaller
.void
setAttachmentUnmarshaller(AttachmentUnmarshaller u)
Sets theAttachmentUnmarshaller
.void
setErrorHandler(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:BridgeContext
Registers the error handler that receives unmarshalling/marshalling errors.- Specified by:
setErrorHandler
in 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:BridgeContext
Sets theAttachmentMarshaller
.- Specified by:
setAttachmentMarshaller
in classBridgeContext
-
setAttachmentUnmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller u)
Description copied from class:BridgeContext
Sets theAttachmentUnmarshaller
.- Specified by:
setAttachmentUnmarshaller
in classBridgeContext
-
getAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()
Description copied from class:BridgeContext
Gets the lastAttachmentMarshaller
set throughAttachmentMarshaller
.- Specified by:
getAttachmentMarshaller
in classBridgeContext
-
getAttachmentUnmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
Description copied from class:BridgeContext
Gets the lastAttachmentUnmarshaller
set throughAttachmentUnmarshaller
.- Specified by:
getAttachmentUnmarshaller
in classBridgeContext
-
-