Class FilterTransducer<T>

    • Constructor Detail

      • FilterTransducer

        protected FilterTransducer​(Transducer<T> core)
    • Method Detail

      • print

        @NotNull
        public java.lang.CharSequence print​(@NotNull
                                            T o)
                                     throws AccessorException
        Description copied from interface: Transducer
        Converts the given value to its lexical representation.
        Specified by:
        print in interface Transducer<T>
        Parameters:
        o - never be null.
        Returns:
        always non-null valid lexical representation.
        Throws:
        AccessorException
      • parse

        public T parse​(java.lang.CharSequence lexical)
                throws AccessorException,
                       org.xml.sax.SAXException
        Description copied from interface: Transducer
        Converts the lexical representation to a value object.
        Specified by:
        parse in interface Transducer<T>
        Parameters:
        lexical - never be null.
        Throws:
        AccessorException - if the transducer is used to parse an user bean that uses XmlValue, then this exception may occur when it tries to set the leaf value to the bean.
        org.xml.sax.SAXException - if the lexical form is incorrect, the error should be reported and SAXException may thrown (or it can return null to recover.)
      • getTypeName

        public javax.xml.namespace.QName getTypeName​(T instance)
        Description copied from interface: Transducer
        Transducers implicitly work against a single XML type, but sometimes (most notably XMLGregorianCalendar, an instance may choose different XML types.
        Specified by:
        getTypeName in interface Transducer<T>
        Returns:
        return non-null from this method allows transducers to specify the type it wants to marshal to. Most of the time this method returns null, in which case the implicitly associated type will be used.