org.axonframework.domain
Class StringAggregateIdentifier

java.lang.Object
  extended by org.axonframework.domain.AbstractAggregateIdentifier
      extended by org.axonframework.domain.StringAggregateIdentifier
All Implemented Interfaces:
Serializable, Comparable<AggregateIdentifier>, AggregateIdentifier
Direct Known Subclasses:
UUIDAggregateIdentifier

public class StringAggregateIdentifier
extends AbstractAggregateIdentifier

Aggregate identifier implementation that requires a String as the actual backing identifier value.

Since:
0.7
Author:
Allard Buijze
See Also:
Serialized Form

Constructor Summary
StringAggregateIdentifier(String identifier)
          Creates a String based AggregateIdentifier instance backed with the given identifier.
 
Method Summary
 String asString()
          Returns the String representation of this aggregate identifier.
 
Methods inherited from class org.axonframework.domain.AbstractAggregateIdentifier
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringAggregateIdentifier

public StringAggregateIdentifier(String identifier)
Creates a String based AggregateIdentifier instance backed with the given identifier.

Parameters:
identifier - The String representation of the identifier. May not be null.
Method Detail

asString

public String asString()
Description copied from interface: AggregateIdentifier
Returns the String representation of this aggregate identifier. May never return null.

Returns:
the non-null String representation of this aggregate identifier.


Copyright © 2011. All Rights Reserved.