Package org.exquery.serialization.annotation

Examples of org.exquery.serialization.annotation.AbstractYesNoSerializationAnnotation


            } else if(serializationAnnotation instanceof MediaTypeAnnotation) {
               
                //serialization media type
                mediaType = ((MediaTypeAnnotation)serializationAnnotation).getMediaType();
            } else if(serializationAnnotation instanceof AbstractYesNoSerializationAnnotation) {
                final AbstractYesNoSerializationAnnotation yesNoSerializationAnnotation = (AbstractYesNoSerializationAnnotation)serializationAnnotation;
               
                if(yesNoSerializationAnnotation instanceof IndentAnnotation) {
                   
                    //serialization indent
                    serializationProperties.put(SerializationProperty.INDENT, yesNoSerializationAnnotation.getStringValue());
                } else if(yesNoSerializationAnnotation instanceof OmitXmlDeclarationAnnotation) {
                   
                    //serialization omit xml declaration
                    serializationProperties.put(SerializationProperty.OMIT_XML_DECLARATION, yesNoSerializationAnnotation.getStringValue());
                }
               
            }
        }
View Full Code Here

TOP

Related Classes of org.exquery.serialization.annotation.AbstractYesNoSerializationAnnotation

Copyright © 2018 www.massapicom. 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.