Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.activities
Interface IActivityPatternBinding

All Superinterfaces:
Comparable

public interface IActivityPatternBinding
extends Comparable

An instance of this interface represents a binding between an activity and a regular expression pattern. It's typically unnecessary to use this interface directly. Rather, clients wishing to test strings against activity patterns should use instances of IIdentifier.

This interface is not intended to be extended or implemented by clients.

Since:
3.0
See Also:
IActivity, IIdentifier, IActivityManager.getIdentifier(String)
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  String getActivityId ()
          Returns the identifier of the activity represented in this binding.
  Pattern getPattern ()
          Returns the pattern represented in this binding.
  String getString ()
          If isEqualityPattern() is true this will return the raw pattern string.
 boolean isEqualityPattern ()
          Answers whether or not the pattern should be treated as a regular string or a regular expression.
 
Methods inherited from interface java.lang. Comparable
compareTo
 

Method Detail

getActivityId

String getActivityId()
Returns the identifier of the activity represented in this binding.

Returns:
the identifier of the activity represented in this binding. Guaranteed not to be null.

getPattern

Pattern getPattern()
Returns the pattern represented in this binding. This pattern should conform to the regular expression syntax described by the java.util.regex.Pattern class. If isEqualityPattern() is true a Pattern will be generated based on the escaped version of the String returned by getString().

Returns:
the pattern. Guaranteed not to be null.

getString

String getString()
If isEqualityPattern() is true this will return the raw pattern string. Otherwise it will return the string version of the compiled pattern.

Returns:
The raw pattern string, or the string version of the compiled pattern, depending on isEqualityPattern().
Since:
3.4

isEqualityPattern

boolean isEqualityPattern()
Answers whether or not the pattern should be treated as a regular string or a regular expression. If true, this pattern binding will represent an equality match between the pattern and a target ID rather than a regular expression match.

Returns:
whether the pattern should be treated as regular string
Since:
3.4

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire