terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.data
Class Guid

java.lang.Object
  extended by com.codemesh.terp.data.Guid
All Implemented Interfaces:
TerpSerializable, java.io.Serializable

public class Guid
extends java.lang.Object
implements TerpSerializable

A globally unique identifier type. This type is mostly used for interactions with VisualStudio, which asigns GUIDs to projects to distinguish them from each other and to track them as members of solutions.

See Also:
Serialized Form

Field Summary
protected  byte[] theBytes
           
protected  java.util.Map<java.lang.String,java.lang.Object> theData
           
protected  java.lang.String theType
           
static java.lang.String TYPE
           
static java.lang.String TYPE_MICROSOFT_VISUALSTUDIO
           
static java.lang.String VALUE
           
 
Constructor Summary
Guid()
           
 
Method Summary
 java.lang.StringBuilder appendToExpression(java.lang.StringBuilder buffer)
          Appends the object's terp expression to the buffer.
static Guid fromMap(Guid guid, java.util.Map<java.lang.String,java.lang.Object> map)
           
static Guid fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static Guid fromString(java.lang.String str)
           
 byte[] getBytes()
          Returns the byte array containing the GUID's data.
 java.lang.String getType()
          The GUID's type.
 java.lang.String toString()
          Returns a string that's properly formatted for the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

TYPE_MICROSOFT_VISUALSTUDIO

public static final java.lang.String TYPE_MICROSOFT_VISUALSTUDIO
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

theType

protected java.lang.String theType

theBytes

protected byte[] theBytes

theData

protected java.util.Map<java.lang.String,java.lang.Object> theData
Constructor Detail

Guid

public Guid()
Method Detail

fromString

public static Guid fromString(java.lang.String str)

fromMap

public static Guid fromMap(java.util.Map<java.lang.String,java.lang.Object> map)

fromMap

public static Guid fromMap(Guid guid,
                           java.util.Map<java.lang.String,java.lang.Object> map)

getType

public java.lang.String getType()
The GUID's type.

Returns:
a type string.

getBytes

public byte[] getBytes()
Returns the byte array containing the GUID's data.

Returns:
a byte array or null.

toString

public java.lang.String toString()
Returns a string that's properly formatted for the type.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the GUID.

appendToExpression

public java.lang.StringBuilder appendToExpression(java.lang.StringBuilder buffer)
Description copied from interface: TerpSerializable
Appends the object's terp expression to the buffer.

Specified by:
appendToExpression in interface TerpSerializable
Parameters:
buffer - the buffer accumulating terp expressions.
Returns:
the buffer.

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.