|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhhannover.inform.trust.ifmapj.identifier.Identifiers
public class Identifiers
Provides access to Identifier
associated classes.
Nested Class Summary | |
---|---|
static class |
Identifiers.Helpers
|
Method Summary | |
---|---|
static AccessRequest |
createAr(String name)
Create an access-request identifier with the given name. |
static AccessRequest |
createAr(String name,
String admDom)
Create an access-request identifier with the given name and the given administrative-domain. |
static Device |
createDev(String name)
Create a device identifier with the given name. |
static Identity |
createIdentity(IdentityType type,
String name)
Create an identity identifier with the given name and the given type. |
static Identity |
createIdentity(IdentityType type,
String name,
String admDom)
Create an identity identifier with the given parameters. |
static Identity |
createIdentity(IdentityType type,
String name,
String admDom,
String otherTypeDef)
Create an identity identifier. |
static IpAddress |
createIp(IpAddressType type,
String value,
String admDom)
Create an ip-address identifier with the given parameters. |
static IpAddress |
createIp4(String value)
Create an ip-address identifier for IPv4 with the given value. |
static IpAddress |
createIp4(String value,
String admDom)
Create an ip-address identifier for IPv4 with the given value and the given administrative-domain. |
static IpAddress |
createIp6(String value)
Create an ip-address identifier for IPv6 with the given value. |
static IpAddress |
createIp6(String value,
String admDom)
Create an ip-address identifier for IPv6 with the given parameters. |
static MacAddress |
createMac(String value)
Create a mac-address identifier with the given value. |
static MacAddress |
createMac(String value,
String admDom)
Create a mac-address identifier with the given parameters. |
static Identity |
createOtherIdentity(String name,
String admDom,
String otherTypeDef)
Create an other identity identifier. |
static Identifier |
fromElement(Element el)
|
static IdentifierHandler<? extends Identifier> |
getHandlerFor(Identifier i)
|
static IdentifierFactory |
getIdentifierFactory()
|
static void |
registerIdentifierHandler(IdentifierHandler<? extends Identifier> ih)
|
static Element |
toElement(Identifier i,
Document doc)
|
static Identifier |
tryFromElement(Element el)
|
static Element |
tryToElement(Identifier i,
Document doc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IdentifierFactory getIdentifierFactory()
public static void registerIdentifierHandler(IdentifierHandler<? extends Identifier> ih)
public static IdentifierHandler<? extends Identifier> getHandlerFor(Identifier i)
public static final Identifier tryFromElement(Element el) throws UnmarshalException
UnmarshalException
public static final Identifier fromElement(Element el) throws UnmarshalException
UnmarshalException
public static final Element tryToElement(Identifier i, Document doc)
public static final Element toElement(Identifier i, Document doc) throws MarshalException
MarshalException
public static AccessRequest createAr(String name)
IdentifierWithAd.setAdministrativeDomain(String)
too (default is left out).
name
- the name of the access-request
AccessRequest
instancepublic static AccessRequest createAr(String name, String admDom)
name
- the name of the access-requestadmDom
- the administrative-domain of the access-request
AccessRequest
instancepublic static Device createDev(String name)
name
- the name of the device identifier
Device
instancepublic static Identity createIdentity(IdentityType type, String name)
type
- the type of the identity identifiername
- the name of the identity identifier
Identity
instancepublic static Identity createIdentity(IdentityType type, String name, String admDom)
type
- the type of the identity identifiername
- the name of the identity identifieradmDom
- the administrative-domain of the identity identifier
Identity
instancepublic static Identity createOtherIdentity(String name, String admDom, String otherTypeDef)
IdentityType.other
by default.
name
- the name of the identity identifieradmDom
- the administrative-domain of the identity identifierotherTypeDef
- vendor specific String
Identity
instancepublic static Identity createIdentity(IdentityType type, String name, String admDom, String otherTypeDef)
IdentityType.other
.
type
- the type of the identity identifiername
- the name of the identity identifieradmDom
- the administrative-domain of the identity identifierotherTypeDef
- vendor specific String
Identity
instancepublic static IpAddress createIp4(String value)
value
- a String
that represents a valid IPv4 address
public static IpAddress createIp4(String value, String admDom)
value
- a String
that represents a valid IPv4 addressadmDom
- the administrative-domain
public static IpAddress createIp6(String value)
value
- a String
that represents a valid IPv6 address
public static IpAddress createIp6(String value, String admDom)
value
- a String
that represents a valid IPv4 addressadmDom
- the administrative-domain
public static IpAddress createIp(IpAddressType type, String value, String admDom)
type
- the type of the ip-address identifiervalue
- a String
that represents a valid IPv4/6 addressadmDom
- the administrative-domain
public static MacAddress createMac(String value)
value
- a String
that represents a valid MAC address (lower case)
public static MacAddress createMac(String value, String admDom)
value
- a String
that represents a valid MAC address (lower case)admDom
- the administrative-domain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |