Java UUID Create generateAttributeId()

Here you can find the source of generateAttributeId()

Description

generate Attribute Id

License

Open Source License

Declaration

public static String generateAttributeId() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.UUID;

public class Main {
    public static String generateAttributeId() {
        return getAttributeIdPrefix() + generateUniqueId();
    }/*from   w ww. j  a  v  a  2  s . c  om*/

    public static String getAttributeIdPrefix() {
        return "a_";
    }

    public static String generateUniqueId() {
        return UUID.randomUUID().toString().replace('-', '_');
    }
}

Related

  1. generate()
  2. generate()
  3. generate()
  4. generateApiAccesskeyId()
  5. generateAppIds(int noOfAppIdsToGenerate)
  6. generateBoundary(final String value)
  7. generateClientId()
  8. generateConnectionId()
  9. generateConsumerName(String serverInstanceId)