Interface Property<BeanT>

    • Method Detail

      • serializeBody

        void serializeBody​(BeanT beanT,
                           XMLSerializer target,
                           java.lang.Object outerPeer)
                    throws org.xml.sax.SAXException,
                           AccessorException,
                           java.io.IOException,
                           javax.xml.stream.XMLStreamException
        Parameters:
        outerPeer - used when this property is expected to print out an element and that should be associated with this outer peer. normally null. this is only used for JaxBeanInfo for JAXBElements.
        Throws:
        AccessorException - If thrown, caught by the caller and reported.
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.stream.XMLStreamException
        See Also:
        JaxBeanInfo.serializeBody(Object, XMLSerializer)
      • getIdValue

        java.lang.String getIdValue​(BeanT bean)
                             throws AccessorException,
                                    org.xml.sax.SAXException
        Gets the value of the property. This method is only used when the corresponding PropertyInfo.id() is ID.ID, and therefore the return type is fixed to String.
        Throws:
        AccessorException
        org.xml.sax.SAXException
      • getKind

        PropertyKind getKind()
        Gets the Kind of property
        Returns:
        always non-null.
      • getElementPropertyAccessor

        Accessor getElementPropertyAccessor​(java.lang.String nsUri,
                                            java.lang.String localName)
        If this property is mapped to the specified element, return an accessor to it.
        Returns:
        null if the property is not mapped to the specified element.
      • wrapUp

        void wrapUp()
        Called at the end of the JAXBContext initialization phase to clean up any unnecessary references.
      • isHiddenByOverride

        boolean isHiddenByOverride()
      • setHiddenByOverride

        void setHiddenByOverride​(boolean hidden)
      • getFieldName

        java.lang.String getFieldName()