GNU Prolog for Java

gnu.prolog.vm.buildins.uuid
Class Predicate_uuid

java.lang.Object
  extended by gnu.prolog.vm.ExecuteOnlyCode
      extended by gnu.prolog.vm.buildins.uuid.Predicate_uuid
All Implemented Interfaces:
Installable, PrologCode
Direct Known Subclasses:
Predicate_uuid_compare, Predicate_uuid_variant, Predicate_uuid_version, Predicate_uuid3, Predicate_uuid4

public abstract class Predicate_uuid
extends ExecuteOnlyCode

Author:
Michiel Hendriks

Field Summary
static AtomTerm UUID_ATOM
           
 
Fields inherited from interface gnu.prolog.vm.PrologCode
FAIL, HALT, SUCCESS, SUCCESS_LAST
 
Constructor Summary
Predicate_uuid()
           
 
Method Summary
static UUID getUUID(Term value)
          Get the UUID from an atom term.
 
Methods inherited from class gnu.prolog.vm.ExecuteOnlyCode
execute, install, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UUID_ATOM

public static final AtomTerm UUID_ATOM
Constructor Detail

Predicate_uuid

public Predicate_uuid()
Method Detail

getUUID

public static final UUID getUUID(Term value)
                          throws PrologException
Get the UUID from an atom term. Returns null in case of an invalid UUID.

Parameters:
value -
Returns:
Throws:
PrologException

GNU Prolog for Java