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

java.lang.Object
  |
  +--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:
JDE 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:
JDE 4.0.0

endIndex

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

id

public long id
Type identifier for this sub-string match.
Since:
JDE 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:
JDE 4.0.0
Constructor Detail

StringPattern.Match

public StringPattern.Match()
Creates a new Match object.
Since:
JDE 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:
JDE 4.0.0



Copyright 1999-2009 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.