Type-definition provides a URI linking to the user defined type associated
with the user-defined field, if applicable.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for creating an empty TypeDefinition object.TypeDefinition(Type type) Constructor for creating a TypeDefinition from a Type object.TypeDefinition(Linkable<Type> type) Constructor for creating a TypeDefinition from a Linkable object.TypeDefinition(URI uri) Constructor for creating a TypeDefinition with a URI.TypeDefinition(URI uri, String name) Constructor for creating a TypeDefinition with a URI and name. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for this type definition.getName()Gets the name of the type.getUri()Gets the URI of the type definition.voidSets the name of the type.voidSets the URI of the type definition.toString()Returns a string representation of this type definition.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
name
The name of the type. -
uri
The URI of the type definition.
-
-
Constructor Details
-
TypeDefinition
public TypeDefinition()Constructor for creating an empty TypeDefinition object. -
TypeDefinition
Constructor for creating a TypeDefinition with a URI.- Parameters:
uri- The URI of the type.
-
TypeDefinition
Constructor for creating a TypeDefinition with a URI and name.- Parameters:
uri- The URI of the type.name- The name of the type.
-
TypeDefinition
Constructor for creating a TypeDefinition from a Linkable object. Attempts to extract the name property using reflection.- Parameters:
type- The linkable type object.
-
TypeDefinition
Constructor for creating a TypeDefinition from a Type object.- Parameters:
type- The type object.
-
-
Method Details
-
getEntityClass
Gets the entity class for this type definition.- Returns:
- The Type class.
-
getName
Gets the name of the type.- Returns:
- The type name.
-
setName
Sets the name of the type.- Parameters:
name- The type name.
-
getUri
Gets the URI of the type definition.- Returns:
- The URI.
-
setUri
Sets the URI of the type definition.- Parameters:
uri- The URI.
-
toString
Returns a string representation of this type definition.- Overrides:
toStringin classLimsLinkBase<Type>- Returns:
- The field URI and name.
- See Also:
-