Package com.netscape.certsrv.property
Class Descriptor
- java.lang.Object
-
- com.netscape.certsrv.property.Descriptor
-
- All Implemented Interfaces:
IDescriptor
public class Descriptor extends java.lang.Object implements IDescriptor
This interface represents a property descriptor. A descriptor includes information that describe a property.- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
mConstraint
protected java.lang.String
mDef
protected java.lang.String
mDescription
protected java.lang.String
mSyntax
-
Fields inherited from interface com.netscape.certsrv.property.IDescriptor
BOOLEAN, CERT_REQUEST, CERT_REQUEST_TYPE, CHOICE, DATE, DN, DUAL_KEYGEN_REQUEST, DUAL_KEYGEN_REQUEST_TYPE, EMAIL, ENC_KEYGEN_REQUEST, ENC_KEYGEN_REQUEST_TYPE, HIDDEN, IMAGE_URL, INTEGER, IP, KEYGEN_REQUEST, KEYGEN_REQUEST_TYPE, PASSWORD, PRETTY_PRINT, READONLY, SIGN_KEYGEN_REQUEST, SIGN_KEYGEN_REQUEST_TYPE, STRING, STRING_LIST
-
-
Constructor Summary
Constructors Constructor Description Descriptor()
Descriptor(java.lang.String syntax, java.lang.String constraint, java.lang.String defValue, java.lang.String description)
Constructs a descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getConstraint()
Constraint for the given syntax.java.lang.String
getDefaultValue()
Returns the default value of the property.java.lang.String
getDescription(java.util.Locale locale)
Retrieves the description of the property.java.lang.String
getSyntax()
Returns the syntax of the property.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Descriptor
public Descriptor()
-
Descriptor
public Descriptor(java.lang.String syntax, java.lang.String constraint, java.lang.String defValue, java.lang.String description)
Constructs a descriptor.- Parameters:
syntax
- syntaxconstraint
- constraintdefValue
- default valuedescription
- description
-
-
Method Detail
-
getSyntax
public java.lang.String getSyntax()
Returns the syntax of the property.- Specified by:
getSyntax
in interfaceIDescriptor
- Returns:
- syntax
-
getDefaultValue
public java.lang.String getDefaultValue()
Returns the default value of the property.- Specified by:
getDefaultValue
in interfaceIDescriptor
- Returns:
- default value
-
getConstraint
public java.lang.String getConstraint()
Constraint for the given syntax. For example,- number(1-5): 1-5 is the constraint, and it indicates that the number must be in the range of 1 to 5.
- choice(cert,crl): cert,crl is the constraint for choice
If null, no constraint shall be enforced.
- Specified by:
getConstraint
in interfaceIDescriptor
- Returns:
- constraint
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
Retrieves the description of the property.- Specified by:
getDescription
in interfaceIDescriptor
- Parameters:
locale
- user locale- Returns:
- description
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-