1 5 6 package javax.xml.bind; 7 8 import javax.xml.bind.annotation.XmlRootElement; 9 import javax.xml.bind.annotation.adapters.XmlAdapter; 10 import javax.xml.bind.attachment.AttachmentMarshaller; 11 import javax.xml.validation.Schema ; 12 import java.io.File ; 13 14 299 public interface Marshaller { 300 301 305 public static final String JAXB_ENCODING = 306 "jaxb.encoding"; 307 308 312 public static final String JAXB_FORMATTED_OUTPUT = 313 "jaxb.formatted.output"; 314 315 319 public static final String JAXB_SCHEMA_LOCATION = 320 "jaxb.schemaLocation"; 321 322 327 public static final String JAXB_NO_NAMESPACE_SCHEMA_LOCATION = 328 "jaxb.noNamespaceSchemaLocation"; 329 330 334 public static final String JAXB_FRAGMENT = 335 "jaxb.fragment"; 336 337 364 public void marshal( Object jaxbElement, javax.xml.transform.Result result ) 365 throws JAXBException; 366 367 386 public void marshal( Object jaxbElement, java.io.OutputStream os ) 387 throws JAXBException; 388 389 409 public void marshal( Object jaxbElement, File output ) 410 throws JAXBException; 411 412 431 public void marshal( Object jaxbElement, java.io.Writer writer ) 432 throws JAXBException; 433 434 453 public void marshal( Object jaxbElement, org.xml.sax.ContentHandler handler ) 454 throws JAXBException; 455 456 479 public void marshal( Object jaxbElement, org.w3c.dom.Node node ) 480 throws JAXBException; 481 482 503 public void marshal( Object jaxbElement, javax.xml.stream.XMLStreamWriter writer ) 504 throws JAXBException; 505 506 527 public void marshal( Object jaxbElement, javax.xml.stream.XMLEventWriter writer ) 528 throws JAXBException; 529 530 553 public org.w3c.dom.Node getNode( java.lang.Object contentTree ) 554 throws JAXBException; 555 556 574 public void setProperty( String name, Object value ) 575 throws PropertyException; 576 577 594 public Object getProperty( String name ) throws PropertyException; 595 596 613 public void setEventHandler( ValidationEventHandler handler ) 614 throws JAXBException; 615 616 625 public ValidationEventHandler getEventHandler() 626 throws JAXBException; 627 628 629 630 643 public void setAdapter( XmlAdapter adapter ); 644 645 672 public <A extends XmlAdapter> void setAdapter( Class <A> type, A adapter ); 673 674 685 public <A extends XmlAdapter> A getAdapter( Class <A> type ); 686 687 688 697 void setAttachmentMarshaller(AttachmentMarshaller am); 698 699 AttachmentMarshaller getAttachmentMarshaller(); 700 701 718 public void setSchema( Schema schema ); 719 720 733 public Schema getSchema(); 734 735 754 public static abstract class Listener { 755 766 public void beforeMarshal(Object source) { 767 } 768 769 780 public void afterMarshal(Object source) { 781 } 782 } 783 784 795 public void setListener(Listener listener); 796 797 803 public Listener getListener(); 804 } 805 806 807 808 809 | Popular Tags |