public class DNInput extends ParseAbstractInput<java.lang.String> implements ItemInput<java.lang.String,javax.naming.ldap.LdapName>
TextInput
to input Globus/LDAP DN names.
for historical reasons the canonical String
representation is the
Globus one though both forms should be accepted as input and the class provides methods to convert between the
two forms.validators
Constructor and Description |
---|
DNInput() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
convert(java.lang.Object v)
Perform any supported type conversions to to generate a value of the
target type
|
javax.naming.ldap.LdapName |
getItembyValue(java.lang.String value)
get the domain object from the Input value if defined
|
boolean |
isEmpty()
Is the input empty.
|
static java.lang.String |
makeGlobusName(javax.naming.ldap.LdapName name) |
static javax.naming.ldap.LdapName |
parseGlobusName(java.lang.String name) |
static javax.naming.ldap.LdapName |
parseLDAPName(java.lang.String name) |
java.lang.String |
parseValue(java.lang.String v)
Parse a String into the correct type for this input.
|
static javax.naming.ldap.LdapName |
reverse(javax.naming.ldap.LdapName name) |
void |
setItem(javax.naming.ldap.LdapName item)
Set the value of the input using an item
|
static boolean |
validateGlobusDN(java.lang.String globusDN) |
static boolean |
validateLdapDN(java.lang.String ldapDN) |
accept, getBoxWidth, getMaxResultLength, getSingle, setBoxWidth, setMaxResultLength, setSingle
getValue, setKey, setValue
addValidator, getKey, getPrettyString, getString, getString, removeValidator, validate, validateInner
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addValidator, getKey, getPrettyString, getString, getValue, removeValidator, setKey, setValue, validate
getString, parse
public static javax.naming.ldap.LdapName parseGlobusName(java.lang.String name) throws ParseException
ParseException
public static javax.naming.ldap.LdapName parseLDAPName(java.lang.String name) throws ParseException
ParseException
public static javax.naming.ldap.LdapName reverse(javax.naming.ldap.LdapName name)
public static java.lang.String makeGlobusName(javax.naming.ldap.LdapName name)
public static boolean validateLdapDN(java.lang.String ldapDN)
public static boolean validateGlobusDN(java.lang.String globusDN)
public java.lang.String convert(java.lang.Object v) throws TypeError
Input
public java.lang.String parseValue(java.lang.String v) throws ParseException
ParseInput
Input.getString(Object)
method.parseValue
in interface ParseInput<java.lang.String>
ParseException
public javax.naming.ldap.LdapName getItembyValue(java.lang.String value)
ItemInput
getItembyValue
in interface ItemInput<java.lang.String,javax.naming.ldap.LdapName>
value
- input Valuepublic void setItem(javax.naming.ldap.LdapName item)
ItemInput