Class: Typed

composer-common. Typed

Object is an instance with a namespace and a type.

This class is abstract.


<abstract> new Typed(modelManager, ns, type)

Create an instance.


Note: Only to be called by framework code. Applications should
retrieve instances from Factory

Parameters:
Name Type Description
modelManager ModelManager

The ModelManager for this instance

ns string

The namespace this instance.

type string

The type this instance.

Source:

Methods


addArrayValue(propName, value)

Adds a value to an array property on this Resource

Parameters:
Name Type Description
propName string

the name of the field

value string

the value of the property

Source:

getFullyQualifiedType()

Get the fully-qualified type name of the instance (including namespace).

Source:
Returns:

The fully-qualified type name of this object

Type
string

getNamespace()

Get the namespace of the instance.

Source:
Returns:

The namespace of this object

Type
string

getType()

Get the type of the instance (a short name, not including namespace).

Source:
Returns:

The type of this object

Type
string

setPropertyValue(propName, value)

Sets a property on this Resource

Parameters:
Name Type Description
propName string

the name of the field

value string

the value of the property

Source: