net.sourceforge.cilib.type
Class StringBasedDomainRegistry

java.lang.Object
  extended by net.sourceforge.cilib.type.StringBasedDomainRegistry
All Implemented Interfaces:
Serializable, DomainRegistry, Cloneable

public class StringBasedDomainRegistry
extends Object
implements DomainRegistry

Class to perform the needed mappings between a top level domain string and the built representation.

Author:
Gary Pampara
See Also:
Serialized Form

Constructor Summary
StringBasedDomainRegistry()
          Construct an instance of the DomainRegistry that will contain the needed information about the domain.
StringBasedDomainRegistry(StringBasedDomainRegistry copy)
          Copy Constructor.
 
Method Summary
 StructuredType getBuiltRepresenation()
          Get the instance of the built representation for this domain string.
 StringBasedDomainRegistry getClone()
          Create a cloned copy of the current object and return it.
 int getDimension()
          Get the dimension of the built representation of the domain string.
 String getDomainString()
          Get the string specifying the domain.
 void setBuiltRepresenation(StructuredType builtRepresenation)
          Set the representation for this domain string.
 void setDomainString(String domainString)
          Set the value of the string representing the domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBasedDomainRegistry

public StringBasedDomainRegistry()
Construct an instance of the DomainRegistry that will contain the needed information about the domain.


StringBasedDomainRegistry

public StringBasedDomainRegistry(StringBasedDomainRegistry copy)
Copy Constructor. Create a copy of the provided instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public StringBasedDomainRegistry getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface DomainRegistry
Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getDomainString

public String getDomainString()
Get the string specifying the domain.

Specified by:
getDomainString in interface DomainRegistry
Returns:
Returns the domainString.

setDomainString

public void setDomainString(String domainString)
Set the value of the string representing the domain.

Specified by:
setDomainString in interface DomainRegistry
Parameters:
domainString - The domainString to set.

getBuiltRepresenation

public StructuredType getBuiltRepresenation()
Get the instance of the built representation for this domain string.

Specified by:
getBuiltRepresenation in interface DomainRegistry
Returns:
Returns the builtRepresenation.

setBuiltRepresenation

public void setBuiltRepresenation(StructuredType builtRepresenation)
Set the representation for this domain string. This may cause an inconsistency as the built represenation and the domain string may differ, depending on the values of the objects.

Parameters:
builtRepresenation - The builtRepresenation to set.

getDimension

public int getDimension()
Get the dimension of the built representation of the domain string.

Specified by:
getDimension in interface DomainRegistry
Returns:
The dimension of the domain string.


Copyright © 2009 CIRG. All Rights Reserved.