1 5 6 package javax.xml.bind; 7 8 import javax.xml.bind.annotation.adapters.XmlAdapter; 9 import javax.xml.bind.attachment.AttachmentUnmarshaller; 10 import javax.xml.validation.Schema ; 11 import java.io.Reader ; 12 13 391 public interface Unmarshaller { 392 393 413 public Object unmarshal( java.io.File f ) throws JAXBException; 414 415 436 public Object unmarshal( java.io.InputStream is ) throws JAXBException; 437 438 461 public Object unmarshal( Reader reader ) throws JAXBException; 462 463 483 public Object unmarshal( java.net.URL url ) throws JAXBException; 484 485 505 public Object unmarshal( org.xml.sax.InputSource source ) throws JAXBException; 506 507 530 public Object unmarshal( org.w3c.dom.Node node ) throws JAXBException; 531 532 558 public <T> JAXBElement<T> unmarshal( org.w3c.dom.Node node, Class <T> declaredType ) throws JAXBException; 559 560 616 public Object unmarshal( javax.xml.transform.Source source ) 617 throws JAXBException; 618 619 620 647 public <T> JAXBElement<T> unmarshal( javax.xml.transform.Source source, Class <T> declaredType ) 648 throws JAXBException; 649 650 684 public Object unmarshal( javax.xml.stream.XMLStreamReader reader ) 685 throws JAXBException; 686 687 718 public <T> JAXBElement<T> unmarshal( javax.xml.stream.XMLStreamReader reader, Class <T> declaredType ) throws JAXBException; 719 720 754 public Object unmarshal( javax.xml.stream.XMLEventReader reader ) 755 throws JAXBException; 756 757 789 public <T> JAXBElement<T> unmarshal( javax.xml.stream.XMLEventReader reader, Class <T> declaredType ) throws JAXBException; 790 791 805 public UnmarshallerHandler getUnmarshallerHandler(); 806 807 834 public void setValidating( boolean validating ) 835 throws JAXBException; 836 837 856 public boolean isValidating() 857 throws JAXBException; 858 859 877 public void setEventHandler( ValidationEventHandler handler ) 878 throws JAXBException; 879 880 889 public ValidationEventHandler getEventHandler() 890 throws JAXBException; 891 892 910 public void setProperty( String name, Object value ) 911 throws PropertyException; 912 913 930 public Object getProperty( String name ) throws PropertyException; 931 932 949 public void setSchema( javax.xml.validation.Schema schema ); 950 951 973 public javax.xml.validation.Schema getSchema(); 974 975 988 public void setAdapter( XmlAdapter adapter ); 989 990 1017 public <A extends XmlAdapter> void setAdapter( Class <A> type, A adapter ); 1018 1019 1030 public <A extends XmlAdapter> A getAdapter( Class <A> type ); 1031 1032 1043 void setAttachmentUnmarshaller(AttachmentUnmarshaller au); 1044 1045 AttachmentUnmarshaller getAttachmentUnmarshaller(); 1046 1047 1068 public static abstract class Listener { 1069 1083 public void beforeUnmarshal(Object target, Object parent) { 1084 } 1085 1086 1100 public void afterUnmarshal(Object target, Object parent) { 1101 } 1102 } 1103 1104 1115 public void setListener(Listener listener); 1116 1117 1123 public Listener getListener(); 1124} 1125 | Popular Tags |