org.eclipse.actf.util.vocab
Class AbstractTerms

java.lang.Object
  extended by org.eclipse.actf.util.vocab.AbstractTerms
Direct Known Subclasses:
DelegationTerms

public abstract class AbstractTerms
extends Object

AbstractTerms is the default term definition. All methods return false. Each class extends AbstractTerms should implements methods which used in itself.

See Also:
Vocabulary

Constructor Summary
AbstractTerms()
           
 
Method Summary
 boolean find(String str, boolean caseSensitive, IEvalTarget node)
           
 boolean hasContent(IEvalTarget target)
           
 boolean hasReadingContent(IEvalTarget node)
           
 boolean isAccessKey(char key, IEvalTarget node)
           
 boolean isAlterable(IEvalTarget target)
           
 boolean isBlockJumpPointB(IEvalTarget node)
           
 boolean isBlockJumpPointF(IEvalTarget node)
           
 boolean isButton(IEvalTarget target)
           
 boolean isCheckbox(IEvalTarget target)
           
 boolean isChecked(IEvalTarget node)
           
 boolean isClickable(IEvalTarget target)
           
 boolean isCombobox(IEvalTarget target)
           
 boolean isConnectable(IEvalTarget node)
           
 boolean isEditable(IEvalTarget target)
           
 boolean isEmbeddedObject(IEvalTarget target)
           
 boolean isEnabled(IEvalTarget target)
           
 boolean isFileEdit(IEvalTarget node)
           
 boolean isFlashLastNode(IEvalTarget node)
           
 boolean isFlashTopNode(IEvalTarget node)
           
 boolean isHeading(int level, IEvalTarget node)
           
 boolean isHeadingJumpPoint(IEvalTarget node)
           
 boolean isImage(IEvalTarget target)
           
 boolean isInputable(IEvalTarget target)
           
 boolean isLabel(IEvalTarget target)
           
 boolean isLink(IEvalTarget target)
           
 boolean isListItem(IEvalTarget node)
           
 boolean isListItemJumpPoint(IEvalTarget node)
           
 boolean isListTop(IEvalTarget node)
           
 boolean isMedia(IEvalTarget node)
           
 boolean isMSAAFlash(IEvalTarget node)
           
 boolean isMultilineEdit(IEvalTarget node)
           
 boolean isMultiSelectable(IEvalTarget node)
           
 boolean isPassword(IEvalTarget target)
           
 boolean isRadio(IEvalTarget target)
           
 boolean isReachable(IEvalTarget node, Node target)
           
 boolean isReducible(IEvalTarget node)
           
 boolean isSelectable(IEvalTarget target)
           
 boolean isSelectOption(IEvalTarget node)
           
 boolean isSubmit(IEvalTarget target)
           
 boolean isTextarea(IEvalTarget target)
           
 boolean isTextbox(IEvalTarget target)
           
 boolean isValidNode(IEvalTarget target)
           
 boolean isVisibleNode(IEvalTarget target)
           
 boolean isVisitedLink(IEvalTarget node)
           
 boolean nodeLocation(Node refNode, boolean backward, IEvalTarget node)
           
 boolean startsWith(String str, boolean exact, IEvalTarget node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTerms

public AbstractTerms()
Method Detail

isClickable

public boolean isClickable(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isClickable()

isEditable

public boolean isEditable(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isEditable()

hasContent

public boolean hasContent(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.hasContent()

isEnabled

public boolean isEnabled(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition

isInputable

public boolean isInputable(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isInputable()

isSelectable

public boolean isSelectable(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isSelectable()

isButton

public boolean isButton(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isButton()

isCheckbox

public boolean isCheckbox(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isCheckbox()

isLabel

public boolean isLabel(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isLabel()

isLink

public boolean isLink(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isLink()

isRadio

public boolean isRadio(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isRadio()

isCombobox

public boolean isCombobox(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isCombobox()

isSubmit

public boolean isSubmit(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isSubmit()

isTextarea

public boolean isTextarea(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isTextarea()

isTextbox

public boolean isTextbox(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isTextbox()

isPassword

public boolean isPassword(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isPassword()

isValidNode

public boolean isValidNode(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isValidNode()

isVisibleNode

public boolean isVisibleNode(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isVisibleNode()

isEmbeddedObject

public boolean isEmbeddedObject(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isEmbeddedObject()

isImage

public boolean isImage(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isImage()

isMultilineEdit

public boolean isMultilineEdit(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isMultilineEdit()

isReducible

public boolean isReducible(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isReducible()

isConnectable

public boolean isConnectable(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isConnectable()

find

public boolean find(String str,
                    boolean caseSensitive,
                    IEvalTarget node)
Parameters:
str - the str to be searched in the text of the node
caseSensitive - whether the matching is case sensitive or not
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.find(String, boolean)

startsWith

public boolean startsWith(String str,
                          boolean exact,
                          IEvalTarget node)
Parameters:
str - the str to be checked in the text of the node
caseSensitive - whether the matching is case sensitive or not
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.startsWith(String, boolean)

isHeading

public boolean isHeading(int level,
                         IEvalTarget node)
Parameters:
level - the level of the heading
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isHeading()

nodeLocation

public boolean nodeLocation(Node refNode,
                            boolean backward,
                            IEvalTarget node)
Parameters:
refNode - the reference node for the evaluation
backward - the direction of the evaluation
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.nodeLocation(Node, boolean)

isHeadingJumpPoint

public boolean isHeadingJumpPoint(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition

hasReadingContent

public boolean hasReadingContent(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.hasReadingContent()

isListItemJumpPoint

public boolean isListItemJumpPoint(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition

isBlockJumpPointF

public boolean isBlockJumpPointF(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isBlockJumpPointF()

isBlockJumpPointB

public boolean isBlockJumpPointB(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isBlockJumpPointB()

isFileEdit

public boolean isFileEdit(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isFileEdit()

isChecked

public boolean isChecked(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isChecked()

isListItem

public boolean isListItem(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isListItem()

isListTop

public boolean isListTop(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isListTop()

isSelectOption

public boolean isSelectOption(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isSelectOption()

isVisitedLink

public boolean isVisitedLink(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isVisitedLink()

isMultiSelectable

public boolean isMultiSelectable(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isMultiSelectable()

isAccessKey

public boolean isAccessKey(char key,
                           IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isAccessKey(char)

isMedia

public boolean isMedia(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isMedia()

isFlashTopNode

public boolean isFlashTopNode(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isFlashTopNode()

isFlashLastNode

public boolean isFlashLastNode(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isFlashLastNode()

isMSAAFlash

public boolean isMSAAFlash(IEvalTarget node)
Parameters:
node - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isMSAAFlash()

isReachable

public boolean isReachable(IEvalTarget node,
                           Node target)
Parameters:
node - the node to be evaluated
target - the target node for the evaluation of reaching
Returns:
whether the node matches the condition
See Also:
Vocabulary.isReachable(Node)

isAlterable

public boolean isAlterable(IEvalTarget target)
Parameters:
target - the node to be evaluated
Returns:
whether the node matches the condition
See Also:
Vocabulary.isAlterable()