JavaScript is disabled on your browser.
javolution.xml

Class XMLContext



  • public abstract class XMLContext
    extends FormatContext 

    A context for xml serialization/deserialization. The default xml format for any class is given by the Format inheritable annotation.

    A default xml format exists for the following predefined types:

    • java.lang.Object (value attribute parsed/formatted using TextFormat)
    • java.util.Collection
    • java.util.Map

    Version:
    6.0 December 12, 2012
    Author:
    Jean-Marie Dautelle
    • Constructor Detail

      • XMLContext

        protected XMLContext()
        Default constructor.
    • Method Detail

      • enter

        public static XMLContext enter()
        Enters and returns a new xml context instance.
      • getFormat

        public static <T> XMLFormat<T> getFormat(Class<? extends T> type)
        Returns the xml format for the specified type; if none defined the default object xml format (based on TextFormat) is returned.
      • setFormat

        public abstract <T> void setFormat(Class<? extends T> type,
         XMLFormat<T> format)
        Sets the xml format for the specified type (and its sub-types).
      • searchFormat

        protected abstract <T> XMLFormat<T> searchFormat(Class<? extends T> type)
        Searches the xml format for the specified type.

Copyright © 2005-2013 Javolution. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /