Examples of XMLSerializationManager


Examples of org.openquark.util.xml.XMLSerializationManager

     * Loads the attribute set from the specified XML element.
     * @param attributesElem  the root XML element for the attribute set data
     * @return a new attribute set
     */
    public static AttributeSet Load (Element attributesElem) {
        XMLSerializationManager serializer = XMLSerializationManager.getDefaultInstance();
        return (AttributeSet) serializer.loadFromElement(attributesElem,
                XMLSerializationManager.getAttributeSetSerializer());
    }
View Full Code Here

Examples of org.openquark.util.xml.XMLSerializationManager

    /**
     * Stores the attribute set into the specified XML element.
     * @param attributesElem  the XML element into which the attribute set will be saved
     */
    public void store (Element attributesElem) {
        XMLSerializationManager serializer = XMLSerializationManager.getDefaultInstance();
        serializer.storeToElement(attributesElem, this,
                XMLSerializationManager.getAttributeSetSerializer());
    }
View Full Code Here

Examples of org.openquark.util.xml.XMLSerializationManager

     * @param valueClass  the class of a value
     * @return boolean <code>true</code> if the value type can be stored as an attribute value
     */
    protected boolean isSupportedAttributeType(Class<?> valueClass) {
        // The supported attribute type is primarily determined by the serializer
        XMLSerializationManager serializer = XMLSerializationManager.getDefaultInstance();
        return serializer.getSupportedValueClasses().contains(valueClass);
    }
View Full Code Here

Examples of org.openquark.util.xml.XMLSerializationManager

     * Load the attribute from the specified XML element.
     * @param attrElement  the root element for the attribute XML data
     * @return the new attribute created by loading it from the XML element
     */
    public static Attribute Load (Element attrElement) {
        XMLSerializationManager serializer = XMLSerializationManager.getDefaultInstance();
        return (Attribute) serializer.loadFromElement(attrElement,
                XMLSerializationManager.getAttributeSerializer());
    }
View Full Code Here

Examples of org.openquark.util.xml.XMLSerializationManager

    /**
     * Store the attribute in the specified XML element.
     * @param parentElem  the parent XML element under which the attribute data will be stored
     */
    public void store (Element parentElem) {
        XMLSerializationManager serializer = XMLSerializationManager.getDefaultInstance();
        serializer.storeToElement(parentElem, this,
                XMLSerializationManager.getAttributeSerializer());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.