@Immutable public class Reference extends Object implements PropertyConstraint
PrimaryKey
.Constructor and Description |
---|
Reference()
Creates a default "reference" that references nothing.
|
Reference(TypeDefinition targetType)
Creates a reference to the specified type.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
getTargetType()
Returns the referenced type.
|
boolean |
isReference()
Returns whether this reference references anything.
|
public Reference()
public Reference(TypeDefinition targetType)
targetType
- the type that gets referencedpublic boolean isReference()
public TypeDefinition getTargetType()
null
if and only if
isReference()
is false.null
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a