Package com.sas.lsaf.core.type
Class TypeDescriptor
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.core.type.TypeDescriptor
- All Implemented Interfaces:
Identifiable,Serializable
- Direct Known Subclasses:
Type
The lightweight representation of an object type definition defined within the system. A descriptor is suitable for
lightweight access and listing operations. To work with a fully hydrated type, use
Type.- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypeDescriptor(String id, String name, String description, boolean contextType, boolean folderType, boolean sharedFolderType, boolean fileType) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the description of the type.getName()Gets the display name of the type.inthashCode()booleanIndicates whether the type is a context container type.booleanIndicates whether the type is a file type.booleanIndicate whether the type is a folder type.booleanIndicate whether the type is a shared folder type.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
TypeDescriptor
public TypeDescriptor(String id, String name, String description, boolean contextType, boolean folderType, boolean sharedFolderType, boolean fileType) It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the type descriptors 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.
-
-
Method Details
-
getName
Gets the display name of the type.- Returns:
- The display name of the type.
-
getDescription
Gets the description of the type.- Returns:
- The description of the type.
-
isContextType
public boolean isContextType()Indicates whether the type is a context container type.- Returns:
Trueif the type is a context container type,Falseotherwise.
-
isFolderType
public boolean isFolderType()Indicate whether the type is a folder type.- Returns:
Trueif the type is a folder type,Falseotherwise.
-
isFileType
public boolean isFileType()Indicates whether the type is a file type.- Returns:
Trueif thes type is a file type,Falseotherwise.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractIdentifiable
-
equals
- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-