Class NodeInfo


  • public class NodeInfo
    extends Object
    Information about a node being imported. This class is used by the XML import handlers to pass the parsed node information through the Importer interface to the actual import process.

    An instance of this class is simply a container for the node name, node identifier, and the node type information. See the PropInfo class for the related carrier of property information.

    • Constructor Summary

      Constructors 
      Constructor Description
      NodeInfo​(org.apache.jackrabbit.spi.Name name, org.apache.jackrabbit.spi.Name nodeTypeName, org.apache.jackrabbit.spi.Name[] mixinNames, NodeId id)
      Creates a node information instance.
    • Constructor Detail

      • NodeInfo

        public NodeInfo​(org.apache.jackrabbit.spi.Name name,
                        org.apache.jackrabbit.spi.Name nodeTypeName,
                        org.apache.jackrabbit.spi.Name[] mixinNames,
                        NodeId id)
        Creates a node information instance.
        Parameters:
        name - name of the node being imported
        nodeTypeName - name of the primary type of the node being imported
        mixinNames - names of the mixin types of the node being imported
        id - identifier of the node being imported
    • Method Detail

      • getName

        public org.apache.jackrabbit.spi.Name getName()
        Returns the name of the node being imported.
        Returns:
        node name
      • getNodeTypeName

        public org.apache.jackrabbit.spi.Name getNodeTypeName()
        Returns the name of the primary type of the node being imported.
        Returns:
        primary type name
      • getMixinNames

        public org.apache.jackrabbit.spi.Name[] getMixinNames()
        Returns the names of the mixin types of the node being imported.
        Returns:
        mixin type names
      • getId

        public NodeId getId()
        Returns the identifier of the node being imported.
        Returns:
        node identifier