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

com.enonic.xp.node.ReorderChildNodeParams Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.node;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public class ReorderChildNodeParams
{
    private final NodeId nodeId;

    private final NodeId moveBefore;

    private ReorderChildNodeParams( Builder builder )
    {
        nodeId = builder.nodeId;
        moveBefore = builder.moveBefore;
    }


    public NodeId getNodeId()
    {
        return nodeId;
    }

    public NodeId getMoveBefore()
    {
        return moveBefore;
    }

    public static Builder create()
    {
        return new Builder();
    }


    public static final class Builder
    {
        private NodeId nodeId;

        private NodeId moveBefore;

        private Builder()
        {
        }

        public Builder nodeId( NodeId nodeId )
        {
            this.nodeId = nodeId;
            return this;
        }

        public Builder moveBefore( NodeId moveBefore )
        {
            this.moveBefore = moveBefore;
            return this;
        }

        public ReorderChildNodeParams build()
        {
            return new ReorderChildNodeParams( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy