com.sas.hls.type
Class Type

java.lang.Object
  extended by com.sas.hls.type.Type
All Implemented Interfaces:
Serializable

public class Type
extends Object
implements Serializable

A 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.

Since:
1.7
See Also:
TypeService.getTypeByName(String), TypeService.getTypes(), Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Type

public 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.

Parameters:
name - The name of this object type.
displayName - The display name of this object type
isFileType - If this object type represents a file object
attributeDefinitions - 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.
Method Detail

getName

public String getName()
Returns the name of this object type.

Returns:
The name of this object type.

getDisplayName

public String getDisplayName()
Returns the display name of this object type.

Returns:
The display name of this object type.

isFileType

public boolean isFileType()
Returns whether or not this object type represents a file or not.

Returns:
true if this object type is a file type, false otherwise.

getAttributeDefinitions

public List<AttributeDefinition> getAttributeDefinitions()
Returns 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.

Returns:
The attribute definitions related to this object type

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA