Package com.sas.lsaf.core.type
Class Type
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.core.type.TypeDescriptor
com.sas.lsaf.core.type.Type
- All Implemented Interfaces:
Identifiable,Serializable
A
Type represents an object type that is defined in the system and that contains metadata that represents the state
that is maintained by instances of this type. Types are immutable. Therefore, the initialized state is not modifiable. It not
intended for these objects to be constructed. Rather, they should be retrieved using the TypeService.- Since:
- 1.7
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enumeration defines the capabilities that are available by each type. -
Constructor Summary
ConstructorsConstructorDescriptionType(String id, String name, String description, boolean contextType, boolean folderType, boolean sharedFolderType, boolean fileType, List<AttributeDefinition> attributeDefinitions, List<Type.Capability> capabilities, List<String> allowableChildTypes, long revision) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the list of allowable child types that can be created within the container type.Gets the attribute definition with the specified identifier.Gets the attribute definition with the specified name.Gets the attribute definitions that are related to the object type.Gets the capabilities that are available with the type definition.longGets the internal revision number of the object.inthashCode()toString()Methods inherited from class com.sas.lsaf.core.type.TypeDescriptor
getDescription, getName, isContextType, isFileType, isFolderType, isSharedFolderTypeMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
Type
public Type(String id, String name, String description, boolean contextType, boolean folderType, boolean sharedFolderType, boolean fileType, List<AttributeDefinition> attributeDefinitions, List<Type.Capability> capabilities, List<String> allowableChildTypes, long revision) It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the type instances returned by the API.- Parameters:
id- the unique identifier of the type.name- the display name of the type.description- the description of the type.contextType- indicates whether the type is a context.folderType- indicates whether the type is a folder.sharedFolderType- indicates whether the type is a shared folder.fileType- indicates whether the type is a file.attributeDefinitions- the attribute definitions that define the attributes that can be stored with the object type.capabilities- the capabilities that are available with the type definition.allowableChildTypes- the list of allowable child types that can be created within the container type. The list is always empty for file types.revision- the internal revision number of the object.
-
-
Method Details
-
getRevision
public long getRevision()Gets the internal revision number of the object.- Returns:
- The internal revision number of the object.
-
getAttributeDefinitions
Gets the attribute definitions that are related to the object type. The list includes the system-defined attribute definitions and the user-defined extended attribute definitions.- Returns:
- The attribute definitions that are related to the object type.
-
getAttributeDefinitionById
Gets the attribute definition with the specified identifier. Returnsnullwhen the attribute definition is not declared on the type or any super type.- Parameters:
id- the identifier of the attribute definition to find.- Returns:
- The attribute definition with the specified identifier or
null, if one does not exist for the type.
-
getAttributeDefinitionByName
Gets the attribute definition with the specified name. Returnsnullwhen the attribute definition is not declared on the type or any super type.- Parameters:
name- the name of the attribute definition to find.- Returns:
- The attribute definition with the specified name or
null, if one does not exist for the type.
-
getCapabilities
Gets the capabilities that are available with the type definition.- Returns:
- The capabilities that are available with the type definition.
-
getAllowableChildTypes
Gets the list of allowable child types that can be created within the container type. The list will is always empty for file types.- Returns:
- The list of allowable child types that can be created within the container type. The list is always empty for file types.
-
hashCode
public int hashCode()- Overrides:
hashCodein classTypeDescriptor
-
equals
- Overrides:
equalsin classTypeDescriptor
-
toString
- Overrides:
toStringin classTypeDescriptor
-