|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AssetTypeDef
This interface defines an Asset Type definition. Definition is the metadata information about the type.
Asset type definition contains
AssetTypeDef.getAttributeDefs()AssetTypeDef.getAssociations()AssetTypeDef.getParentDefs()AssetTypeDef.getProperties()An instance of AssetTypeDef for a given asset type (and subtype, if applicable) can be obtained using AssetTypeDefManager.
| Method Summary | |
|---|---|
java.util.List<AssetAssociationDef> |
getAssociations()Gets association definitions for this asset type |
AttributeDef |
getAttributeDef(java.lang.String name, boolean isMetaAttribute)Return the attribute definition for that given name and specified user defined or not type |
java.util.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. |
java.lang.String |
getDescription()Gets the description associated with the asset type. |
java.lang.String |
getName()Gets the name of the Asset type |
java.util.List<AttributeDef> |
getParentDefs()Lists parent definitions for thsi asset type |
java.lang.String |
getPlural()Gets the plural name associated with the asset type. |
AssetTypeDefProperties |
getProperties()Returns properties associated with asset type |
java.lang.String |
getSubtype()Returns the name of subtype, if present. |
void |
setAssociations(java.util.List<AssetAssociationDef> associations)Sets the association definitions of this asset type |
void |
setAttributeDefs(java.util.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(java.lang.String desc)Sets the description of the asset type definition |
void |
setName(java.lang.String name)Sets the asset type |
void |
setParentDefs(java.util.List<AttributeDef> def)Sets the list of parent definitions |
void |
setPlural(java.lang.String pluralname)Sets the plural name of the asset type |
void |
setProperties(AssetTypeDefProperties props)Sets the properties for the asset type |
void |
setSubtype(java.lang.String subtype)Sets the asset subtype |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getSubtype()
java.lang.String getPlural()
boolean getCanBeChild()
java.util.List<AttributeDef> getAttributeDefs()
AttributeDef getAttributeDef(java.lang.String name,
boolean isMetaAttribute)
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.AssetTypeDefProperties getProperties()
java.util.List<AssetAssociationDef> getAssociations()
java.util.List<AttributeDef> getParentDefs()
void setName(java.lang.String name)
name - the name of the asset typevoid setDescription(java.lang.String desc)
desc - the descriptionvoid setSubtype(java.lang.String subtype)
subtype - the subtypevoid setPlural(java.lang.String pluralname)
pluralname - the pluralvoid setCaBeChild(boolean val)
val - true if the asset type could be child; false if notvoid setAttributeDefs(java.util.List<AttributeDef> def)
def - the list of attribute definitionsvoid setProperties(AssetTypeDefProperties props)
props - the AssetTypeDefPropertiesvoid setParentDefs(java.util.List<AttributeDef> def)
def - the list of parent defintionsvoid setAssociations(java.util.List<AssetAssociationDef> associations)
associations - the list of AssetAssocationDefs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.