public class Reference extends Object
This class is immutable.
Constructor and Description |
---|
Reference(String name,
String id)
Create a new reference instance.
|
Reference(String name,
String object,
String id)
Create a new reference instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Return the ID of this reference.
|
String |
getName()
Return the name of this reference.
|
String |
getObject()
Return the object of this reference.
|
public Reference(String name, String object, String id)
name
- Name of reference. May be null.object
- Reference object. May be null.id
- ID (foreign key) of reference. Non-null.IllegalArgumentException
- If id is null.public Reference(String name, String id)
name
- Name of reference. May be null.id
- ID (forreign key) of reference. Non-null.IllegalArgumentException
- If id is null.public String getName()
public String getObject()
public String getId()
Copyright © 2023 Petroware AS - https://petroware.no