java.lang.Object
com.genologics.ri.configuration.Type
- All Implemented Interfaces:
Batch<FieldLink>,Linkable<Type>,Locatable,Serializable,Iterable<FieldLink>
The detailed representation of the configuration of a user defined type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe category this user defined type is attached to.protected StringThe name of the entity type this user defined type is attached to.The list of field definitions for this type.protected StringThe name of this type.protected URIThe URI of this type configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the category this user defined type is attached to.Gets the name of the entity type this user defined type is attached to.Gets the list of field definitions for this type.getLink()Get a concrete link object to thisLinkablething.getList()Gets the list of field definitions as required by the Batch interface.getName()Gets the name of this type.intgetSize()Gets the number of field definitions.getUri()Gets the URI of this type configuration.voidsetAttachToCategory(String value) Sets the category this user defined type is attached to.voidsetAttachToName(String value) Sets the name of the entity type this user defined type is attached to.voidSets the name of this type.voidSets the URI of this type configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
fieldDefinitions
The list of field definitions for this type. -
attachToName
The name of the entity type this user defined type is attached to. -
attachToCategory
The category this user defined type is attached to. -
name
The name of this type. -
uri
The URI of this type configuration.
-
-
Constructor Details
-
Type
public Type()Constructor for creating an empty Type object. -
Type
Constructor for creating a Type with a name.- Parameters:
name- The name of the type.
-
Type
Constructor for creating a Type with a name and URI.- Parameters:
name- The name of the type.uri- The URI of the type.
-
-
Method Details
-
getFieldDefinitions
Gets the list of field definitions for this type. Creates a new list if one doesn't exist.- Returns:
- The list of field definitions.
-
getList
Gets the list of field definitions as required by the Batch interface. -
getSize
public int getSize()Gets the number of field definitions. -
getAttachToName
Gets the name of the entity type this user defined type is attached to.- Returns:
- The entity type name.
-
setAttachToName
Sets the name of the entity type this user defined type is attached to.- Parameters:
value- The entity type name.
-
getAttachToCategory
Gets the category this user defined type is attached to.- Returns:
- The category name.
-
setAttachToCategory
Sets the category this user defined type is attached to.- Parameters:
value- The category name.
-
getName
Gets the name of this type.- Returns:
- The type name.
-
setName
Sets the name of this type.- Parameters:
value- The type name.
-
getUri
Gets the URI of this type configuration. -
setUri
Sets the URI of this type configuration. -
getLink
Get a concrete link object to thisLinkablething.
-