ModelPackage

ModelPackage

The class represents a Java|* Package

Constructor

new ModelPackage(pName)

Source:
Parameters:
Name Type Description
pName String

Package fullname

Members

children :Array.<Class>|Array.<ModelPackage>

Source:

Package children

Type:

meta :String

Source:

Package metadata

Type:
  • String

name :String

Source:

Package name

Type:
  • String

tags :String|Integer|Tag

Source:

Tags

Type:
  • String | Integer | Tag

Methods

addTag(pTagName)

Source:

To verify if the package is tagged or not

Parameters:
Name Type Description
pTagName String

Tag name

childAppend(pObject) → {ModelPackage}

Source:

To append a child - class or package - to the current package

Parameters:
Name Type Description
pObject Class | Package

The new child

Returns:

Current package

Type
ModelPackage

getAbsoluteSize() → {Integer}

Source:

To count recursively elements contained into the package

Returns:

Package size

Type
Integer

getSize() → {Integer}

Source:

To count children

Returns:

Count of children, class or package, into current package

Type
Integer

getTags() → {Array.<Tag>|Array.<String>}

Source:

To get tags of this package

Returns:

A list of tags

Type
Array.<Tag> | Array.<String>

hasTag(pTagName) → {Boolean}

Source:

To verify if the package is tagged or not

Parameters:
Name Type Description
pTagName String

Tag name

Returns:

TRUE if the package is tagged, else FALSE

Type
Boolean

setMetadata(pMetadata) → {ModelPackage}

Source:
Parameters:
Name Type Description
pMetadata Metadata | Object

metadata

Returns:

Current package

Type
ModelPackage

toJsonObject(pFields) → {Object}

Source:

To transform a set of access flags as a simple object ready to be serialized

Parameters:
Name Type Description
pFields Array.<Object> | Array.<String>
Returns:

Simple object containing package content

Type
Object