Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * =====================================================
   *   _____                _     ____  _   _       _   _
   *  |_   _|_ __ _   _ ___| |_  / __ \| | | | ___ | | | |
   *    | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| |
   *    | | | |  | |_| \__ \ |_| | (_| |  _  |\__ \|  _  |
   *    |_| |_|   \__,_|___/\__|\ \__,_|_| |_||___/|_| |_|
   *                             \____/
  * 
  * =====================================================
  * 
  * Hochschule Hannover
  * (University of Applied Sciences and Arts, Hannover)
  * Faculty IV, Dept. of Computer Science
  * Ricklinger Stadtweg 118, 30459 Hannover, Germany
  * 
  * Email: trust@f4-i.fh-hannover.de
  * Website: http://trust.f4.hs-hannover.de/
  * 
  * This file is part of ifmapj, version 2.2.1, implemented by the Trust@HsH
  * research group at the Hochschule Hannover.
  * %%
  * Copyright (C) 2010 - 2015 Trust@HsH
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  *      http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package de.hshannover.f4.trust.ifmapj.identifier;
 
 
Factory to create different types of Identifier implementations.

Deprecated:
Identifiers class should be used to construct standard identifiers.
Author(s):
aw
 
 public interface IdentifierFactory {

Create an access-request identifier. You MUST set the name with AccessRequest.setName(java.lang.String) afterwards! You may optionally set the administrative-domain with IdentifierWithAd.setAdministrativeDomain(java.lang.String) too (default is left out). transformAndAddIdentifier

Returns:
the new AccessRequest instance
 
Create an access-request identifier with the given name. You may optionally set the administrative-domain with IdentifierWithAd.setAdministrativeDomain(java.lang.String) too (default is left out).

Parameters:
name the name of the access-request
Returns:
the new AccessRequest instance
 
Create an access-request identifier with the given name and the given administrative-domain.

Parameters:
name the name of the access-request
admDom the administrative-domain of the access-request
Returns:
the new AccessRequest instance
 
 	AccessRequest createAr(String nameString admDom);


Create a device identifier. You MUST set the name with Device.setName(java.lang.String) afterwards!

Returns:
the new Device instance
 
Create a device identifier with the given name.

Parameters:
name the name of the device identifier
Returns:
the new Device instance
Create an identity identifier. You MUST set its name and type by using Identity.setName(java.lang.String) and Identity.setType(de.hshannover.f4.trust.ifmapj.identifier.IdentityType) afterwards!

Returns:
the new Identity instance
Create an identity identifier with the given name and the given type.

Parameters:
type the type of the identity identifier
name the name of the identity identifier
Returns:
the new Identity instance
Create an identity identifier with the given parameters.

Parameters:
type the type of the identity identifier
name the name of the identity identifier
admDom the administrative-domain of the identity identifier
Returns:
the new Identity instance
	Identity createIdentity(IdentityType typeString nameString admDom);


Create an identity identifier.

Note: otherTypeDef != null should imply type IdentityType.other.

Parameters:
type the type of the identity identifier
name the name of the identity identifier
admDom the administrative-domain of the identity identifier
otherTypeDef vendor specific java.lang.String
Returns:
the new Identity instance
			String otherTypeDef);

Create an identity identifier. Note: The type is set to IdentityType.other by default.

Parameters:
name the name of the identity identifier
admDom the administrative-domain of the identity identifier
otherTypeDef vendor specific java.lang.String
Returns:
the new Identity instance
	Identity createIdentity(String nameString admDomString otherTypeDef);

Create an extended identity identifier.

Parameters:
extendedIdentifier the extended identifier
Returns:
the new Identity instance
Throws:
de.hshannover.f4.trust.ifmapj.exception.MarshalException if the document can't be handled
	Identity createIdentity(Document extendedIdentifierthrows MarshalException;

Create an ip-address identifier for IPv4. You MUST set its value with IpAddress.setValue(java.lang.String) afterwards!

Returns:
the new ip-address identifier
Create an ip-address identifier for IPv4 with the given value.

Parameters:
value a java.lang.String that represents a valid IPv4 address
Returns:
the new ip-address identifier
Create an ip-address identifier for IPv4 with the given value and the given administrative-domain.

Parameters:
value a java.lang.String that represents a valid IPv4 address
admDom the administrative-domain
Returns:
the new ip-address identifier
	IpAddress createIp4(String valueString admDom);

Create an ip-address identifier for IPv6. You MUST set its value with IpAddress.setValue(java.lang.String) afterwards!

Returns:
the new ip-address identifier
Create an ip-address identifier for IPv6 with the given value.

Parameters:
value a java.lang.String that represents a valid IPv6 address
Returns:
the new ip-address identifier
Create an ip-address identifier for IPv6 with the given parameters.

Parameters:
value a java.lang.String that represents a valid IPv4 address
admDom the administrative-domain
Returns:
the new ip-address identifier
	IpAddress createIp6(String valueString admDom);


Create an ip-address identifier with the given parameters.

Parameters:
type the type of the ip-address identifier
value a java.lang.String that represents a valid IPv4/6 address
admDom the administrative-domain
Returns:
the new ip-address identifier
	IpAddress createIp(IpAddressType typeString valueString admDom);


Create a mac-address identifier. You MUST set its value with MacAddress.setValue(java.lang.String) afterwards!

Returns:
the new mac-address identifier
Create a mac-address identifier with the given value.

Parameters:
value a java.lang.String that represents a valid MAC address (lower case)
Returns:
the new mac-address identifier
Create a mac-address identifier with the given parameters.

Parameters:
value a java.lang.String that represents a valid MAC address (lower case)
admDom the administrative-domain
Returns:
the new mac-address identifier
	MacAddress createMac(String valueString admDom);
New to GrepCode? Check out our FAQ X