com.bea.workshop.controls.core
Class ControlsFileUtil

java.lang.Object
  extended by com.bea.workshop.controls.core.ControlsFileUtil

public class ControlsFileUtil
extends Object

Utility methods for dealing with controls files and content types.


Field Summary
static String CONTROL_EXTENSION_CONTENT_TYPE
          content type for control extension classes
static String CONTROL_IMPLEMENTATION_CONTENT_TYPE
          content type for control implementation classes
static String CONTROL_INTERFACE_CONTENT_TYPE
          content type for control interface classes
 
Constructor Summary
ControlsFileUtil()
           
 
Method Summary
static boolean isControlExtension(IFile aFile)
          Checks whether the primary type in the file is a ControlExtension as defined by the content type of the file.
static boolean isControlExtension(IType aType)
          Checks whether the given type is a ControlExtension as defined by the content type of the file.
static boolean isControlImplementation(IFile aFile)
          Checks whether the primary type in the file is a ControlImplementationas defined by the content type of the file.
static boolean isControlImplementation(IType aType)
          Checks whether the given type is a ControlImplementation as defined by the content type of the file.
static boolean isControlInterface(IFile aFile)
          Checks whether the primary type in the file is a ControlInterface as defined by the content type of the file.
static boolean isControlInterface(IType aType)
          Checks whether the given type is a ControlInterface as defined by the content type of the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_INTERFACE_CONTENT_TYPE

public static final String CONTROL_INTERFACE_CONTENT_TYPE
content type for control interface classes

See Also:
Constant Field Values

CONTROL_EXTENSION_CONTENT_TYPE

public static final String CONTROL_EXTENSION_CONTENT_TYPE
content type for control extension classes

See Also:
Constant Field Values

CONTROL_IMPLEMENTATION_CONTENT_TYPE

public static final String CONTROL_IMPLEMENTATION_CONTENT_TYPE
content type for control implementation classes

See Also:
Constant Field Values
Constructor Detail

ControlsFileUtil

public ControlsFileUtil()
Method Detail

isControlExtension

public static boolean isControlExtension(IType aType)
Checks whether the given type is a ControlExtension as defined by the content type of the file. Control Extensions are Java interfaces that have the ControlExtention annotation.


isControlExtension

public static boolean isControlExtension(IFile aFile)
Checks whether the primary type in the file is a ControlExtension as defined by the content type of the file. Control Extensions are Java interfaces that have the ControlExtention annotation.

Parameters:
aFile -

isControlImplementation

public static boolean isControlImplementation(IFile aFile)
Checks whether the primary type in the file is a ControlImplementationas defined by the content type of the file. Control Implementations are Java classes that have the ControlImplementation annotation.

Parameters:
aFile -

isControlImplementation

public static boolean isControlImplementation(IType aType)
Checks whether the given type is a ControlImplementation as defined by the content type of the file. Control Implementations are Java classes that have the ControlImplementation annotation.

Parameters:
aFile -

isControlInterface

public static boolean isControlInterface(IFile aFile)
Checks whether the primary type in the file is a ControlInterface as defined by the content type of the file. Control Interfaces are Java classes that have the ControlInterface annotation.

Parameters:
aFile -

isControlInterface

public static boolean isControlInterface(IType aType)
Checks whether the given type is a ControlInterface as defined by the content type of the file. Control Interfaces are Java classes that have the ControlInterface annotation.

Parameters:
aFile -