public interface Marshaller
marshal
メソッドは最初のパラメーターとして java.lang.Object
を受け入れますが、ほとんどの Marshaller
実装は任意の Object
を処理できません。代わりに、オブジェクトクラスはマーシャラーに登録するか、共通の基本クラスを持つ必要があります。
Unmarshaller
boolean supports(ClassSE<?> clazz)
clazz
- このマーシャラーがマーシャリングできるかどうか尋ねられているクラス true
。それ以外の場合は false
void marshal(ObjectSE graph, ResultSE result) throws IOExceptionSE, XmlMappingException
Result
SE にマーシャリングします。graph
- マーシャリングするオブジェクトグラフのルート result
- マーシャリングする結果 IOExceptionSE
- I/O エラーが発生した場合 XmlMappingException
- 指定されたオブジェクトを結果に整列化できない場合