Class CommentSerializer


  • public class CommentSerializer
    extends Object
    Serialize comment string to an OMComment node
    • Field Detail

      • fac

        protected static final org.apache.axiom.om.OMFactory fac
      • synNS

        protected static final org.apache.axiom.om.OMNamespace synNS
      • nullNS

        protected static final org.apache.axiom.om.OMNamespace nullNS
    • Constructor Detail

      • CommentSerializer

        public CommentSerializer()
    • Method Detail

      • serializeComment

        public static org.apache.axiom.om.OMComment serializeComment​(org.apache.axiom.om.OMElement parent,
                                                                     String comment)
        Serialze comment String into a OMComment node and add to the parent OMElement
        Parameters:
        parent - OMElement of parent
        comment - String comment to be serialized
        Returns:
        Serialized OMComment node