- All Implemented Interfaces:
LimsLink<ContainerType>,Linkable<ContainerType>,Locatable,Serializable
Container-type-link is a child element type of containers and provides a URI
linking to the detailed representation of a container type.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for creating a new container type link.ContainerTypeLink(ContainerType containerType) Constructor for creating a container type link from a container type object.Constructor for creating a container type link from a linkable object.ContainerTypeLink(URI uri) Constructor for creating a container type link with a specified URI.ContainerTypeLink(URI uri, String name) Constructor for creating a container type link with a specified URI and name. -
Method Summary
Modifier and TypeMethodDescriptionGet the class of the true, full LIMS entity this object links to.getName()Gets the name of the container type.getUri()Gets the URI for accessing the container type resource.voidSets the name of the container type.voidSets the URI for the container type resource.toString()Returns a string representation of this link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
uri
The URI for accessing the container type resource. -
name
The name of the container type.
-
-
Constructor Details
-
ContainerTypeLink
public ContainerTypeLink()Default constructor for creating a new container type link. -
ContainerTypeLink
Constructor for creating a container type link with a specified URI.- Parameters:
uri- The URI of the container type resource.
-
ContainerTypeLink
Constructor for creating a container type link with a specified URI and name.- Parameters:
uri- The URI of the container type resource.name- The name of the container type.
-
ContainerTypeLink
Constructor for creating a container type link from a linkable object.- Parameters:
link- A linkable object that provides the URI for the container type.- Throws:
NullPointerException- iflinkisnull.
-
ContainerTypeLink
Constructor for creating a container type link from a container type object.- Parameters:
containerType- The container type from which to extract the URI and name.- Throws:
NullPointerException- ifcontainerTypeisnull.
-
-
Method Details
-
getEntityClass
Get the class of the true, full LIMS entity this object links to.- Returns:
- The real object class.
-
getName
Gets the name of the container type.- Returns:
- The container type name.
-
setName
Sets the name of the container type.- Parameters:
name- The container type name to set.
-
getUri
Gets the URI for accessing the container type resource.- Returns:
- The container type URI.
-
setUri
Sets the URI for the container type resource.- Parameters:
uri- The container type URI to set.
-
toString
Returns a string representation of this link.- Overrides:
toStringin classLimsLinkBase<ContainerType>- Returns:
- The container type LIMS id and the name.
- See Also:
-