public final class AssetTypeDefImpl extends Object implements AssetTypeDef
Constructor and Description |
---|
AssetTypeDefImpl() |
Modifier and Type | Method and Description |
---|---|
List<AssetAssociationDef> |
getAssociations()
Gets association definitions for this asset type
|
AttributeDef |
getAttributeDef(String name, boolean isMetaAttribute)
Return the attribute definition for that given name and specified user defined or not type
|
List<AttributeDef> |
getAttributeDefs()
Returns all attribute definitions that make up this asset type definition
|
boolean |
getCanBeChild()
Indicates if instances of this asset type can be a child of instances of other asset types.
|
String |
getDescription()
Gets the description associated with the asset type.
|
String |
getName()
Gets the name of the Asset type
|
List<AttributeDef> |
getParentDefs()
Lists parent definitions for thsi asset type
|
String |
getPlural()
Gets the plural name associated with the asset type.
|
AssetTypeDefProperties |
getProperties()
Returns properties associated with asset type
|
String |
getSubtype()
Returns the name of subtype, if present.
|
void |
setAssociations(List<AssetAssociationDef> associations)
Sets the association definitions of this asset type
|
void |
setAttributeDefs(List<AttributeDef> def)
Sets the list of attribute definitions that the asset type contains
|
void |
setCaBeChild(boolean val)
Sets whether the asset type could be child asset type of other asset types or not
|
void |
setDescription(String descr)
Sets the description of the asset type definition
|
void |
setName(String name)
Sets the asset type
|
void |
setParentDefs(List<AttributeDef> def)
Sets the list of parent definitions
|
void |
setPlural(String pluralname)
Sets the plural name of the asset type
|
void |
setProperties(AssetTypeDefProperties props)
Sets the properties for the asset type
|
void |
setSubtype(String subtype)
Sets the asset subtype
|
String |
toString() |
public String getName()
AssetTypeDef
getName
in interface AssetTypeDef
public String getDescription()
AssetTypeDef
getDescription
in interface AssetTypeDef
public String getSubtype()
AssetTypeDef
getSubtype
in interface AssetTypeDef
public String getPlural()
AssetTypeDef
getPlural
in interface AssetTypeDef
public boolean getCanBeChild()
AssetTypeDef
getCanBeChild
in interface AssetTypeDef
public List<AttributeDef> getAttributeDefs()
AssetTypeDef
getAttributeDefs
in interface AssetTypeDef
public AttributeDef getAttributeDef(String name, boolean isMetaAttribute)
AssetTypeDef
getAttributeDef
in interface AssetTypeDef
name
- the name of the attributeisMetaAttribute
- whether the attribute is user defined or system, true
indicates it is user defined, false
indicates it is system attributenull
if no attribute defintion found.public AssetTypeDefProperties getProperties()
AssetTypeDef
getProperties
in interface AssetTypeDef
public List<AssetAssociationDef> getAssociations()
AssetTypeDef
getAssociations
in interface AssetTypeDef
public List<AttributeDef> getParentDefs()
AssetTypeDef
getParentDefs
in interface AssetTypeDef
public void setName(String name)
AssetTypeDef
setName
in interface AssetTypeDef
name
- the name of the asset typepublic void setDescription(String descr)
AssetTypeDef
setDescription
in interface AssetTypeDef
descr
- the descriptionpublic void setSubtype(String subtype)
AssetTypeDef
setSubtype
in interface AssetTypeDef
subtype
- the subtypepublic void setPlural(String pluralname)
AssetTypeDef
setPlural
in interface AssetTypeDef
pluralname
- the pluralpublic void setCaBeChild(boolean val)
AssetTypeDef
setCaBeChild
in interface AssetTypeDef
val
- true if the asset type could be child; false if notpublic void setAttributeDefs(List<AttributeDef> def)
AssetTypeDef
setAttributeDefs
in interface AssetTypeDef
def
- the list of attribute definitionspublic void setProperties(AssetTypeDefProperties props)
AssetTypeDef
setProperties
in interface AssetTypeDef
props
- the AssetTypeDefPropertiespublic void setParentDefs(List<AttributeDef> def)
AssetTypeDef
setParentDefs
in interface AssetTypeDef
def
- the list of parent defintionspublic void setAssociations(List<AssetAssociationDef> associations)
AssetTypeDef
setAssociations
in interface AssetTypeDef
associations
- the list of AssetAssocationDefs