public class Type extends Object implements Serializable
Type
represents an object type defined in the system and contains metadata representing the state
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
.TypeService.getTypeByName(String)
,
TypeService.getTypes()
,
Serialized FormConstructor and Description |
---|
Type(String name,
String displayName,
boolean isFileType,
List<AttributeDefinition> attributeDefinitions)
Initializing constructor which allocates a new
Type and sets all attributes to the specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
List<AttributeDefinition> |
getAttributeDefinitions()
Returns the attribute definitions related to this object type.
|
String |
getDisplayName()
Returns the display name of this object type.
|
String |
getName()
Returns the name of this object type.
|
int |
hashCode()
Return a hash code value for the object.
|
boolean |
isFileType()
Returns whether or not this object type represents a file or not.
|
String |
toString()
Return a string representation of the object.
|
public Type(String name, String displayName, boolean isFileType, List<AttributeDefinition> attributeDefinitions)
Type
and sets all attributes to the specified values.name
- The name of this object type.displayName
- The display name of this object typeisFileType
- If this object type represents a file objectattributeDefinitions
- The attribute definitions related to this object type. This list includes the
system-defined attribute definitions as well as the user-defined extended attribute definitions.public String getName()
public String getDisplayName()
public boolean isFileType()
true
if this object type is a file type, false
otherwise.public List<AttributeDefinition> getAttributeDefinitions()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA