Class ContentElementImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ContentElementImpl​(java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ContentElement getChild​(java.lang.String path)
      Get child or descendant
      java.util.Map<java.lang.String,​ContentElement> getChildren()
      Get children of current resource.
      java.lang.String getName()  
      java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      Properties of this resource.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentElementImpl

        public ContentElementImpl​(java.lang.String name,
                                  java.util.Map<java.lang.String,​java.lang.Object> properties)
        Parameters:
        name - Element name
        properties - Properties
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface ContentElement
        Returns:
        Resource name. The root resource has no name (null).
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Description copied from interface: ContentElement
        Properties of this resource.
        Specified by:
        getProperties in interface ContentElement
        Returns:
        Properties (keys, values)
      • getChildren

        public java.util.Map<java.lang.String,​ContentElement> getChildren()
        Description copied from interface: ContentElement
        Get children of current resource. The Map preserves the ordering of children.
        Specified by:
        getChildren in interface ContentElement
        Returns:
        Children (child names, child objects)
      • getChild

        public ContentElement getChild​(java.lang.String path)
        Description copied from interface: ContentElement
        Get child or descendant
        Specified by:
        getChild in interface ContentElement
        Parameters:
        path - Relative path to address child or one of it's descendants (use "/" as hierarchy separator).
        Returns:
        Child or null if no child found with this path
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object