Class RegistryHandler.RegistryZone
- java.lang.Object
-
- com.verisign.epp.serverstub.registry.v02.RegistryHandler.RegistryZone
-
- Enclosing class:
- RegistryHandler
public static class RegistryHandler.RegistryZone extends java.lang.ObjectRegistryZonerepresents an in-memory version of a Registry Zone with the base zone information along with all policy extensions.
-
-
Constructor Summary
Constructors Constructor Description RegistryZone()Default constructor.RegistryZone(EPPRegistryZone aZoneInfo)RegistryZoneconstructor that takes the required zone information.RegistryZone(EPPRegistryZone aZoneInfo, java.util.List<EPPRegistryZoneInterface> aExtensions)RegistryZoneconstructor that takes both attributes (zone information and extensions).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(EPPRegistryZoneInterface aExtension)Adds a policy extension to the list of extensions.EPPRegistryZoneInterfacegetExtension(java.lang.Class aExtClass)Gets the policy extension byClass.java.util.List<EPPRegistryZoneInterface>getExtensions()Gets the extensions list.EPPRegistryZonegetZoneInfo()Gets the zone information as defined indraft-gould-carney-regext-registry.booleanhasExtensions()Is the extensions list defined?booleanhasZoneInfo()Is the zone information defined?voidsetExtension(EPPRegistryZoneInterface aExtension)Sets an policy extension in the list of extensions.voidsetExtensions(java.util.List<EPPRegistryZoneInterface> aExtensions)Sets the extensions list.voidsetZoneInfo(EPPRegistryZone aZoneInfo)Sets the zone information as defined indraft-gould-carney-regext-registry.java.lang.StringtoString()Convert theRegistryZoneinto aStringfor printing.
-
-
-
Constructor Detail
-
RegistryZone
public RegistryZone()
Default constructor. The zone information and the extensions should be set.
-
RegistryZone
public RegistryZone(EPPRegistryZone aZoneInfo)
RegistryZoneconstructor that takes the required zone information.- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.
-
RegistryZone
public RegistryZone(EPPRegistryZone aZoneInfo, java.util.List<EPPRegistryZoneInterface> aExtensions)
RegistryZoneconstructor that takes both attributes (zone information and extensions).- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.aExtensions- Policy extensions included in the command
-
-
Method Detail
-
hasZoneInfo
public boolean hasZoneInfo()
Is the zone information defined?- Returns:
trueif the zone information is defined;falseotherwise.
-
getZoneInfo
public EPPRegistryZone getZoneInfo()
Gets the zone information as defined indraft-gould-carney-regext-registry.- Returns:
- Zone information if defined;
nullotherwise.
-
setZoneInfo
public void setZoneInfo(EPPRegistryZone aZoneInfo)
Sets the zone information as defined indraft-gould-carney-regext-registry.- Parameters:
aZoneInfo- Zone information as defined indraft-gould-carney-regext-registry.
-
hasExtensions
public boolean hasExtensions()
Is the extensions list defined?- Returns:
trueif the extensions list is defined;falseotherwise.
-
getExtensions
public java.util.List<EPPRegistryZoneInterface> getExtensions()
Gets the extensions list.- Returns:
- Extensions list if defined;
nullotherwise.
-
setExtensions
public void setExtensions(java.util.List<EPPRegistryZoneInterface> aExtensions)
Sets the extensions list.- Parameters:
aExtensions- Policy extensions included with the command. Set tonullif undefined.
-
setExtension
public void setExtension(EPPRegistryZoneInterface aExtension)
Sets an policy extension in the list of extensions. If the policy extension is already defined based on the policy extension class, it will be replaced; otherwise it will be added.- Parameters:
aExtension- The policy extension to set (add or replace)
-
getExtension
public EPPRegistryZoneInterface getExtension(java.lang.Class aExtClass)
Gets the policy extension byClass.- Parameters:
aExtClass- The policy extensionClassto look for- Returns:
- Policy extension if found;
nullotherwise
-
addExtension
public void addExtension(EPPRegistryZoneInterface aExtension)
Adds a policy extension to the list of extensions.- Parameters:
aExtension- Policy extension to add
-
toString
public java.lang.String toString()
Convert theRegistryZoneinto aStringfor printing.- Overrides:
toStringin classjava.lang.Object- Returns:
- Encoded
RegistryZoneinstance as aString.
-
-