01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.corext.refactoring.reorg;
11:
12: public interface IReorgDestinationValidator {
13:
14: /**
15: * Is it possible, that destination contains valid destinations
16: * as children?
17: *
18: * @param destination the destination to verify
19: * @return true if destination can have valid destinations
20: */
21: public boolean canChildrenBeDestinations(
22: IReorgDestination destination);
23:
24: /**
25: * Is it possible, that the given kind of destination is a target for
26: * the reorg?
27: *
28: * @param destination the destination to verify
29: * @return true if possible
30: */
31: public boolean canElementBeDestination(IReorgDestination destination);
32: }
|