Packagecom.almirun.common.util.loremipsum
Classpublic class LoremIpsumGenerator
InheritanceLoremIpsumGenerator Inheritance flash.events.EventDispatcher

LoremIpsum generates Lorem Ipsum paragraphs. This class uses lorem ipsum REST interface in http://www.lipsum.com



Public Properties
 PropertyDefined by
  generatedBytes : int
[read-only] Number of bytes generated in the last call to getParagraphs(), getBytes() or getWords() method.
LoremIpsumGenerator
  generatedParagraphs : int
[read-only] Number of paragraphs generated in the last call to getParagraphs(), getBytes() or getWords() method.
LoremIpsumGenerator
  generatedWords : int
[read-only] Return number of words generated in the last call to getParagraphs(), getBytes() or getWords() method.
LoremIpsumGenerator
  startWithLoremIpsum : Boolean
LoremIpsumGenerator
Public Methods
 MethodDefined by
  
LoremIpsumGenerator
  
getBytes(howMany:int):Array
Get Lorem Ipsum bytes.
LoremIpsumGenerator
  
getParagraphs(howMany:int):Array
Get Lorem Ipsum paragraphs.
LoremIpsumGenerator
  
getWords(howMany:int):Array
Get Lorem Ipsum words.
LoremIpsumGenerator
Property detail
generatedBytesproperty
generatedBytes:int  [read-only]

Number of bytes generated in the last call to getParagraphs(), getBytes() or getWords() method.

Implementation
    public function get generatedBytes():int
generatedParagraphsproperty 
generatedParagraphs:int  [read-only]

Number of paragraphs generated in the last call to getParagraphs(), getBytes() or getWords() method.

Implementation
    public function get generatedParagraphs():int
generatedWordsproperty 
generatedWords:int  [read-only]

Return number of words generated in the last call to getParagraphs(), getBytes() or getWords() method.

Implementation
    public function get generatedWords():int
startWithLoremIpsumproperty 
startWithLoremIpsum:Boolean  [read-write]Implementation
    public function get startWithLoremIpsum():Boolean
    public function set startWithLoremIpsum(value:Boolean):void
Constructor detail
LoremIpsumGenerator()constructor
public function LoremIpsumGenerator()
Method detail
getBytes()method
public function getBytes(howMany:int):Array

Get Lorem Ipsum bytes.

Parameters
howMany:int — Number of lorem ipsum bytes.

Returns
Array — Array of lorem ipsum paragraphs that contain lorem ipsum words.
getParagraphs()method 
public function getParagraphs(howMany:int):Array

Get Lorem Ipsum paragraphs.

Parameters
howMany:int — Number of lorem ipsum paragraphs.

Returns
Array — Array of lorem ipsum paragraphs.
getWords()method 
public function getWords(howMany:int):Array

Get Lorem Ipsum words.

Parameters
howMany:int — Number of lorem ipsum words.

Returns
Array — Array of lorem ipsum words.