|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.karmasphere.share.persist.IdentityType
public class IdentityType
| Nested Class Summary | |
|---|---|
static interface |
IdentityType.Discriminated
|
| Field Summary | |
|---|---|
static Charset |
CHARSET
|
static int |
DOMAIN
|
static int |
EMAIL
|
static int |
IP4
|
static int |
IP6
|
static int |
MAX_TYPES
The maximum number of type ids supported. |
static int |
OPAQUE
|
static int |
URL
|
| Constructor Summary | |
|---|---|
protected |
IdentityType(int id,
String keyname,
String name,
String description)
|
| Method Summary | ||
|---|---|---|
int |
compareTo(Object o)
Compares this IdentityType with another IdentityType. |
|
boolean |
equals(Object o)
Returns true if the argument is this IdentityType. |
|
|
filter(Set<T> in)
|
|
byte[] |
fromString(String str)
Converts a "common" human-readable version the identity data to a byte array. |
|
static IdentityType |
get(int id)
|
|
static IdentityType |
get(String name)
|
|
Condition<IdentityType.Discriminated> |
getCondition()
|
|
String |
getDescription()
Returns a short description of this IdentityType. |
|
int |
getId()
Returns the id of this IdentityType. |
|
String |
getKeyname()
Returns the keyname of this IdentityType. |
|
String |
getName()
Returns the human-readable name of this IdentityType. |
|
static Collection<IdentityType> |
getTypes()
|
|
int |
hashCode()
|
|
String |
toString()
Returns a human-readble summary of this identitytype. |
|
String |
toString(byte[] data)
Returns a human-readable version of the byte array associated with this identity type. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IP4
public static final int IP6
public static final int DOMAIN
public static final int EMAIL
public static final int URL
public static final int OPAQUE
public static final int MAX_TYPES
public static final Charset CHARSET
| Constructor Detail |
|---|
protected IdentityType(int id,
String keyname,
String name,
String description)
| Method Detail |
|---|
public static IdentityType get(int id)
public static IdentityType get(String name)
public static Collection<IdentityType> getTypes()
public final int getId()
public String getKeyname()
public String getName()
public String getDescription()
public String toString()
toString in class Objectpublic String toString(byte[] data)
public byte[] fromString(String str)
throws IdentityFormatException
IdentityFormatExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic Condition<IdentityType.Discriminated> getCondition()
public <T extends IdentityType.Discriminated> Set<T> filter(Set<T> in)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||