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

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

public final class FQDNPattern
extends DeviceIDPattern
implements Serializable

Pattern for matching FQDNs

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
FQDNPattern(String pattern)
          Use this constructor to create a new FQDNPattern.
 
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.DeviceIDPattern
toString
 
Methods inherited from class com.cisco.provisioning.cpe.api.search.Pattern
getPattern
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FQDNPattern

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

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

The following are VALID FQDN patterns:

The following are INVALID FQDN patterns:

Parameters:
pattern - a String to which FQDNs are matched. This value cannot be specified as null. If specified as null or an invalid FQDN 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 DeviceIDPattern
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 DeviceIDPattern
Returns:
true if the specified object is equal to this object. false if the objects are not equal.