net.rim.device.api.util
Class StringPattern.Match

java.lang.Object
  extended by net.rim.device.api.util.StringPattern.Match
Enclosing class:
StringPattern

public static class StringPattern.Match
extends Object

Holds the results of a successful match examination within a string-pattern.

Since:
BlackBerry API 4.0.0

Field Summary
 int beginIndex
          First character of the matched sub-string within the string examined.
 int endIndex
          One character past the last character of the matched sub-string within the string examined.
 long id
          Type identifier for this sub-string match.
 int prefixLength
          Prefix-character length in matched substring (for example, "tel:888-2323" has a prefix length of 4).
 
Constructor Summary
StringPattern.Match()
          Creates a new Match object.
 
Method Summary
 void setMatch(StringPattern.Match match)
          Sets parameters for this match from provided match.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

beginIndex

public int beginIndex
First character of the matched sub-string within the string examined.

Since:
BlackBerry API 4.0.0

endIndex

public int endIndex
One character past the last character of the matched sub-string within the string examined.

Since:
BlackBerry API 4.0.0

id

public long id
Type identifier for this sub-string match.

Since:
BlackBerry API 4.0.0

prefixLength

public int prefixLength
Prefix-character length in matched substring (for example, "tel:888-2323" has a prefix length of 4).

Since:
BlackBerry API 4.0.0


Constructor Detail

StringPattern.Match

public StringPattern.Match()
Creates a new Match object.

Since:
BlackBerry API 4.0.0


Method Detail

setMatch

public void setMatch(StringPattern.Match match)
Sets parameters for this match from provided match.

Parameters:
match - Match object from which to copy the match parameters.
Since:
BlackBerry API 4.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.