org.astrogrid.desktop.modules.adqlEditor.commands
Class CopyHolder

java.lang.Object
  extended by org.astrogrid.desktop.modules.adqlEditor.commands.CopyHolder

public class CopyHolder
extends Object

CopyHolder

Author:
Jeff Lusted jl99@star.le.ac.uk Dec 25, 2006

Nested Class Summary
private  class CopyHolder.Position
           
 
Field Summary
private  boolean forEditPurposes
           
private  HashMap<String,CopyHolder.Position> openBranchesByContextPath
           
private  HashMap<String,CopyHolder.Position> openBranchesByPosition
           
private  XmlObject source
           
 
Constructor Summary
private CopyHolder()
           
private CopyHolder(AdqlNode target, boolean forEditPurposes)
           
 
Method Summary
 HashMap<String,CopyHolder.Position> getOpenBranchesByContextPath()
           
 HashMap<String,CopyHolder.Position> getOpenBranchesByPosition()
           
 XmlObject getSource()
           
static CopyHolder holderForCopyPurposes(AdqlNode target)
           
static CopyHolder holderForEditPurposes(AdqlNode target)
           
 boolean isForEditPurposes()
           
private  boolean isOpen(CopyHolder.Position position)
           
private  void openBranches(CopyHolder.Position position, AdqlNode ancestor, AdqlNode target)
           
 void openBranchesOn(AdqlNode node)
           
private  void put(CopyHolder.Position position)
           
private  void tallyOpenBranches(CopyHolder.Position position, AdqlNode ancestor, AdqlNode target)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

private XmlObject source

openBranchesByPosition

private HashMap<String,CopyHolder.Position> openBranchesByPosition

openBranchesByContextPath

private HashMap<String,CopyHolder.Position> openBranchesByContextPath

forEditPurposes

private boolean forEditPurposes
Constructor Detail

CopyHolder

private CopyHolder()

CopyHolder

private CopyHolder(AdqlNode target,
                   boolean forEditPurposes)
Method Detail

holderForCopyPurposes

public static CopyHolder holderForCopyPurposes(AdqlNode target)

holderForEditPurposes

public static CopyHolder holderForEditPurposes(AdqlNode target)

tallyOpenBranches

private void tallyOpenBranches(CopyHolder.Position position,
                               AdqlNode ancestor,
                               AdqlNode target)

put

private void put(CopyHolder.Position position)

isOpen

private boolean isOpen(CopyHolder.Position position)

getOpenBranchesByContextPath

public HashMap<String,CopyHolder.Position> getOpenBranchesByContextPath()

getOpenBranchesByPosition

public HashMap<String,CopyHolder.Position> getOpenBranchesByPosition()

getSource

public XmlObject getSource()

isForEditPurposes

public boolean isForEditPurposes()

openBranchesOn

public void openBranchesOn(AdqlNode node)

openBranches

private void openBranches(CopyHolder.Position position,
                          AdqlNode ancestor,
                          AdqlNode target)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2010 AstroGrid. All Rights Reserved.