EPP RTK
for Java v 0.4.1

org.openrtk.idl.epp.domain
Class epp_DomainPeriodUnitType

java.lang.Object
  |
  +--org.openrtk.idl.epp.domain.epp_DomainPeriodUnitType
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, java.io.Serializable

public class epp_DomainPeriodUnitType
extends java.lang.Object
implements org.omg.CORBA.portable.IDLEntity

Class defining constant instances of period unit types for domains.

Used in conjunction with the epp_DomainPeriod class to indicate the domain period.

$Header: /cvsroot/epp-rtk/epp-rtk/java/src/org/openrtk/idl/epp/domain/epp_DomainPeriodUnitType.java,v 1.6 2001/12/04 22:31:06 lyin Exp $
$Revision: 1.6 $
$Date: 2001/12/04 22:31:06 $

See Also:
epp_DomainPeriod, Serialized Form

Field Summary
static int _MONTH
          Integer value representing the MONTH period unit type.
static int _YEAR
          Integer value representing the YEAR period unit type.
static epp_DomainPeriodUnitType MONTH
          Instance of epp_DomainPeriodUnitType representing the MONTH period unit type.
static epp_DomainPeriodUnitType YEAR
          Instance of epp_DomainPeriodUnitType representing the YEAR period unit type.
 
Constructor Summary
protected epp_DomainPeriodUnitType(int value)
          For internal use only.
 
Method Summary
static epp_DomainPeriodUnitType from_int(int value)
          Transform an integer into a epp_DomainPeriodUnitType constant.
 int value()
          Accessor method for the internal integer representing the unit type of period.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_YEAR

public static final int _YEAR
Integer value representing the YEAR period unit type.
See Also:
YEAR

YEAR

public static final epp_DomainPeriodUnitType YEAR
Instance of epp_DomainPeriodUnitType representing the YEAR period unit type. Used directly with epp_DomainPeriod.
See Also:
epp_DomainPeriod

_MONTH

public static final int _MONTH
Integer value representing the MONTH period unit type.
See Also:
MONTH

MONTH

public static final epp_DomainPeriodUnitType MONTH
Instance of epp_DomainPeriodUnitType representing the MONTH period unit type. Used directly with epp_DomainPeriod.
See Also:
epp_DomainPeriod
Constructor Detail

epp_DomainPeriodUnitType

protected epp_DomainPeriodUnitType(int value)
For internal use only. Initializes the internal period unit type array.
Parameters:
value - The integer value for the desired period unit type
Method Detail

value

public int value()
Accessor method for the internal integer representing the unit type of period. Would compared with _YEAR, _MONTH.
Returns:
The integer value of this domain registration period unit type

from_int

public static epp_DomainPeriodUnitType from_int(int value)
Transform an integer into a epp_DomainPeriodUnitType constant. Given the integer representation of the period unit type, returns one of the period unit type constants.
Parameters:
value - The integer value for the desired period unit type

EPP RTK
for Java v 0.4.1

Copyright © 2001 - Tucows, Inc.