Field definition represents a user-defined field configured in the parent
entity. It includes the name and a URI linking to the detailed representation
of the configuration of a user defined field.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for creating an empty FieldLink object.Constructor for creating a FieldLink from a Field object.Constructor for creating a FieldLink from a Linkable object.Constructor for creating a FieldLink with a URI.Constructor for creating a FieldLink with a URI and name. -
Method Summary
Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
name
The name of the field. -
uri
The URI of the field configuration.
-
-
Constructor Details
-
FieldLink
public FieldLink()Constructor for creating an empty FieldLink object. -
FieldLink
Constructor for creating a FieldLink with a URI.- Parameters:
uri- The URI of the field.
-
FieldLink
Constructor for creating a FieldLink with a URI and name.- Parameters:
uri- The URI of the field.name- The name of the field.
-
FieldLink
Constructor for creating a FieldLink from a Linkable object. Attempts to extract the name property using reflection.- Parameters:
link- The linkable object to create the link from.
-
FieldLink
Constructor for creating a FieldLink from a Field object.- Parameters:
field- The field to create the link from.
-
-
Method Details
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Field class.
-
getName
Gets the name of the field.- Returns:
- The field name.
-
setName
Sets the name of the field.- Parameters:
name- The field name.
-
getUri
Gets the URI of the field configuration.- Returns:
- The URI.
-
setUri
Sets the URI of the field configuration.- Parameters:
uri- The URI.
-
toString
Returns a string representation of this link.- Overrides:
toStringin classLimsLinkBase<Field>- Returns:
- The field LIMS id and the name.
- See Also:
-