|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.comm.ISeriesPDMPatternMatch
public class ISeriesPDMPatternMatch
This class offers PDM-like generic name pattern matching. PDM supports one wildcard character ('*") anywhere in the name, or one at the beginning and end of the name.
true to the constructor.
| Field Summary | |
|---|---|
static int |
ALL
Example: * |
static String |
Copyright
|
static char |
QUOTE
Example: Quoted name delimiter: " |
static int |
SCALAR
Example: ABC |
static char |
WILDCARD
Wildcard character: * |
static int |
WILDCARD_END
Example: ABC* |
static int |
WILDCARD_MIDDLE
Example: A*C |
static int |
WILDCARD_MIDDLE_END
|
static int |
WILDCARD_MIDDLE_MIDDLE
Example: A*C*F |
static int |
WILDCARD_START
Example: *ABC |
static int |
WILDCARD_START_END
Example: *ABC* |
static int |
WILDCARD_START_MIDDLE
Example: *A*F |
| Constructor Summary | |
|---|---|
ISeriesPDMPatternMatch(String genericName)
Constructor for traditional PDM-style only patterns, which allows for one asterisk anywhere in the name,or one asterisk each at the beginning or end of the name. |
|
ISeriesPDMPatternMatch(String genericName,
boolean advanced)
Constructor for traditional PDM-style only patterns PLUS advanced patterns ABC*DEF* and A*C*F. |
|
| Method Summary | |
|---|---|
int |
getPatternType()
What type of pattern is it? One of: SCALAR, ALL, WILDCARD_END, WILDCARD_START, WILDCARD_MIDDLE,
WILDCARD_START_END, or WILDCARD_MIDDLE_END |
boolean |
isGeneric()
Was generic name given in the constructor a valid generic name (one or 2 '*'s)? |
boolean |
isQuoted()
Was quoted name given in the constructor a quoted name like "abcDEF"? |
boolean |
isValid()
Was generic name given in the constructor a valid scalar or generic name? |
boolean |
matches(String input)
Test if a host name matches the pattern of this generic name. |
String |
toString()
For writing this object out. |
void |
writeInfo(PrintWriter stream)
For debugging/testing purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String Copyright
public static final char WILDCARD
public static final char QUOTE
public static final int SCALAR
public static final int ALL
public static final int WILDCARD_END
public static final int WILDCARD_START
public static final int WILDCARD_MIDDLE
public static final int WILDCARD_START_END
public static final int WILDCARD_MIDDLE_END
public static final int WILDCARD_START_MIDDLE
public static final int WILDCARD_MIDDLE_MIDDLE
| Constructor Detail |
|---|
public ISeriesPDMPatternMatch(String genericName)
isValid() to determine if given generic name was valid. isGeneric() to determine if given generic name had a wildcard. getPatternType() to determine which type of pattern the generic name follows. matches(String) for each host name to see if it matches this generic name pattern.
genericName - generic name to do pattern matching for (ie, ABC*DEF)
public ISeriesPDMPatternMatch(String genericName,
boolean advanced)
isValid() to determine if given generic name was valid. isGeneric() to determine if given generic name had a wildcard. getPatternType() to determine which type of pattern the generic name follows. matches(String) for each host name to see if it matches this generic name pattern.
genericName - generic name to do pattern matching for (ie, ABC*DEF)advanced - true if you want to support the advanced patterns.| Method Detail |
|---|
public boolean matches(String input)
public boolean isValid()
public boolean isGeneric()
public boolean isQuoted()
public int getPatternType()
SCALAR, ALL, WILDCARD_END, WILDCARD_START, WILDCARD_MIDDLE,
WILDCARD_START_END, or WILDCARD_MIDDLE_END
public String toString()
toString in class Objectpublic void writeInfo(PrintWriter stream)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||