All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.analysis.tree.impl.TreeImpl.html Maven / Gradle / Ivy






TreeImpl (h5jan API)












org.eclipse.dawnsci.analysis.tree.impl

Class TreeImpl

  • java.lang.Object
    • org.eclipse.dawnsci.analysis.tree.impl.TreeImpl
  • All Implemented Interfaces:
    java.io.Serializable, Tree
    Direct Known Subclasses:
    TreeFileImpl


    public class TreeImpl
    extends java.lang.Object
    implements Tree, java.io.Serializable
    A tree has a link to the top group node
    See Also:
    Serialized Form
    • Field Detail

      • source

        protected final java.net.URI source
      • host

        protected java.lang.String host
    • Constructor Detail

      • TreeImpl

        public TreeImpl(long oid,
                        java.net.URI uri)
        Construct a tree with given object ID and URI
        Parameters:
        oid - object ID
        uri - (can be null)
    • Method Detail

      • getSourceURI

        public java.net.URI getSourceURI()
        Specified by:
        getSourceURI in interface Tree
        Returns:
        source URI
      • setHostname

        public void setHostname(java.lang.String hostname)
        Description copied from interface: Tree
        Set name of host that holds file
        Specified by:
        setHostname in interface Tree
      • getHostname

        public java.lang.String getHostname()
        Specified by:
        getHostname in interface Tree
        Returns:
        hostname (can be null for localhost)
      • getID

        public long getID()
        Specified by:
        getID in interface Tree
        Returns:
        ID
      • setGroupNode

        public void setGroupNode(GroupNode g)
        Description copied from interface: Tree
        Set root group node
        Specified by:
        setGroupNode in interface Tree
      • getNodeLink

        public NodeLink getNodeLink()
        Specified by:
        getNodeLink in interface Tree
        Returns:
        link to root group
      • toString

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

        public NodeLink findNodeLink(java.lang.String pathname)
        Specified by:
        findNodeLink in interface Tree
        Returns:
        node link to given path (needs to be absolute) or null if not found
      • canonicalizePath

        public static java.lang.String canonicalizePath(java.lang.String pathname)
        Remove ".." and "." from pathname
        Parameters:
        pathname -
        Returns:
        canonical form of pathname




© 2015 - 2024 Weber Informatics LLC | Privacy Policy