com.cisco.provisioning.cpe.api.search
Class NodeNamePattern

java.lang.Object
  extended by com.cisco.provisioning.cpe.api.search.Pattern
      extended by com.cisco.provisioning.cpe.api.search.NodeNamePattern
All Implemented Interfaces:
Serializable

public final class NodeNamePattern
extends Pattern

Pattern for matching Node names

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
static String WILDCARD
           
 
Constructor Summary
NodeNamePattern(String pattern)
          Use this constructor to create a new NodeNamePattern A valid pattern is a non-null String that begins with a one or more characters of the part of the node to match and end with single asterisk (*).
 
Method Summary
 boolean equals(Object obj)
          Determines if this object is equal to the specified object.
 int hashCode()
          The hash code of this object.
 
Methods inherited from class com.cisco.provisioning.cpe.api.search.Pattern
getPattern
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

WILDCARD

public static final String WILDCARD
See Also:
Constant Field Values
Constructor Detail

NodeNamePattern

public NodeNamePattern(String pattern)
Use this constructor to create a new NodeNamePattern

A valid pattern is a non-null String that begins with a one or more characters of the part of the node to match and end with single asterisk (*).

The following are VALID Node Name patterns:

The following are INVALID Node name patterns:

Parameters:
pattern - The String to which Node names will be matched. Cannot be specified as null. Wildcard can appear only at the end of the pattern. If specified as null, 0 length, non ASCII String, or wildcard not at end of pattern, the runtime exception APIArgumentException will be thrown.
Throws:
APIArgumentException - if pattern is null or invalid.
Method Detail

hashCode

public int hashCode()
The hash code of this object. See Object.hashCode() for more information

Overrides:
hashCode in class Pattern
Returns:
the hashcode of this object

equals

public boolean equals(Object obj)
Determines if this object is equal to the specified object.

Overrides:
equals in class Pattern
Returns:
True if the specified object is equal to this object. False if the objects are not equal.