Interface AttributeMarshallers


  • public interface AttributeMarshallers
    Author:
    Tomaz Cerar (c) 2015 Red Hat Inc.
    • Field Detail

      • SIMPLE_ELEMENT

        static final AttributeMarshaller SIMPLE_ELEMENT
        marshalls attributes to element where element name is attribute name and its content is value of attribute
      • SIMPLE_ELEMENT_UNWRAP

        static final AttributeMarshaller SIMPLE_ELEMENT_UNWRAP
        marshalls attributes to element where element name is attribute name and its content is value of resourceModel
      • STRING_LIST_COMMA_DELIMITED

        static final AttributeMarshaller STRING_LIST_COMMA_DELIMITED
        comma delimited list marshaller
      • STRING_LIST_NAMED_ELEMENT

        static final AttributeMarshaller STRING_LIST_NAMED_ELEMENT
        String list marshaller that marshalls to named element list example, name of element is attribute.getXmlName()
      • OBJECT_ELEMENT_ONLY

        static final AttributeMarshaller OBJECT_ELEMENT_ONLY
        Marshaller for ObjectTypeAttributeDefinition. The object and all its attributes will be marshalled as element only.
      • OBJECT_ATTRIBUTE

        static final AttributeMarshaller OBJECT_ATTRIBUTE
        Marshaller for ObjectTypeAttributeDefinition. The object and all its complex types descendants will get marshalled as elements whereas simple types will get marshalled as attributes.
    • Method Detail

      • getObjectMapAttributeMarshaller

        static AttributeMarshaller getObjectMapAttributeMarshaller​(String elementName,
                                                                   String keyElementName,
                                                                   boolean wrapElement)
      • getObjectMapAttributeMarshaller

        static AttributeMarshaller getObjectMapAttributeMarshaller​(String elementName,
                                                                   boolean wrapElement)
      • getObjectMapAttributeMarshaller

        static AttributeMarshaller getObjectMapAttributeMarshaller​(String wrapperElementName,
                                                                   boolean wrapElement,
                                                                   String elementName,
                                                                   String keyElementName)
      • getSimpleListMarshaller

        static AttributeMarshaller getSimpleListMarshaller​(boolean wrapper)