Class WriteObjectInfo


  • public class WriteObjectInfo
    extends java.lang.Object
    Info for writing an object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.Object,​java.lang.String> attributes
      The attribute values.
      protected java.lang.String comment
      The comment.
      protected java.lang.String content
      The content.
      protected Tree subobjects
      The subobjects tree.
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteObjectInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.Object name, java.lang.String value)
      Add an attribute.
      void addSubobject​(QName[] pathname, java.lang.Object subobject, boolean flatten)
      Add a subobject.
      java.util.Map<java.lang.Object,​java.lang.String> getAttributes()
      Get the attributes.
      java.lang.String getComment()
      Get the comment.
      java.lang.String getContent()
      Get the content.
      protected TreeNode getOrCreateChild​(TreeNode node, QName tag, boolean flatten)
      Get or create a tree child.
      Tree getSubobjects()
      Get the subobjects.
      void setComment​(java.lang.String comment)
      Set the comment.
      void setContent​(java.lang.String content)
      Set the content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • comment

        protected java.lang.String comment
        The comment.
      • attributes

        protected java.util.Map<java.lang.Object,​java.lang.String> attributes
        The attribute values.
      • content

        protected java.lang.String content
        The content.
      • subobjects

        protected Tree subobjects
        The subobjects tree.
    • Constructor Detail

      • WriteObjectInfo

        public WriteObjectInfo()
    • Method Detail

      • getComment

        public java.lang.String getComment()
        Get the comment.
        Returns:
        The comment.
      • setComment

        public void setComment​(java.lang.String comment)
        Set the comment.
        Parameters:
        comment - The comment to set.
      • getAttributes

        public java.util.Map<java.lang.Object,​java.lang.String> getAttributes()
        Get the attributes.
        Returns:
        The attributes.
      • addAttribute

        public void addAttribute​(java.lang.Object name,
                                 java.lang.String value)
        Add an attribute.
        Parameters:
        name - The name.
        value - The value.
      • getContent

        public java.lang.String getContent()
        Get the content.
        Returns:
        The content.
      • setContent

        public void setContent​(java.lang.String content)
        Set the content.
        Parameters:
        content - The content to set.
      • getSubobjects

        public Tree getSubobjects()
        Get the subobjects.
        Returns:
        The subobjects.
      • addSubobject

        public void addSubobject​(QName[] pathname,
                                 java.lang.Object subobject,
                                 boolean flatten)
        Add a subobject.
      • getOrCreateChild

        protected TreeNode getOrCreateChild​(TreeNode node,
                                            QName tag,
                                            boolean flatten)
        Get or create a tree child.