org.modeshape.graph.property
Interface Reference

All Superinterfaces:
Comparable<Reference>, Serializable

@Immutable
public interface Reference
extends Comparable<Reference>, Serializable

A representation of a reference to another node. Node references may not necessarily resolve to an existing node.


Method Summary
 String getString()
          Get the string form of the Reference.
 String getString(TextEncoder encoder)
          Get the encoded string form of the Reference, using the supplied encoder to encode characters in the reference.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getString

String getString()
Get the string form of the Reference. The default encoder is used to encode characters in the reference.

Returns:
the encoded string
See Also:
getString(TextEncoder)

getString

String getString(TextEncoder encoder)
Get the encoded string form of the Reference, using the supplied encoder to encode characters in the reference.

Parameters:
encoder - the encoder to use, or null if the default encoder should be used
Returns:
the encoded string
See Also:
getString()


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.