mn8 Language Reference | Index    

ScriptingNews

SUMMARY: NO ATTRIBUTES  ELEMENTS SUMMARY  NO CONSTRUCTORS  NO OPERATORS  METHODS SUMMARYDETAIL: NO ATTRIBUTES  ELEMENT DETAILS  NO CONSTRUCTORS  NO OPERATORS  METHOD DETAILS

Description

Usage

Version: 0.1
Authors:Antal Attila ()
Location:
Inherits: Concept

Element List

static home! TYPEOF String LABEL "home"
static diff! TYPEOF String LABEL "diff"
static file! TYPEOF String LABEL "file"
top

Method List

static ScriptingNewsgetChangedNews (String $url)
static ScriptingNewsgetNews (String $url)
static setHomeDir (String $url)
Stringenlarge (String $h, String $s, String $p, Integer $i, String $f)
StringgetItems (Integer $w)
toTXT
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI

Detailed Element Info

home

Label:home
Type:String
Is Static:true
Is Hidden:true
Is Multi:false
Show Empty:true

Hidden element to store your home directory path

top

diff

Label:diff
Type:String
Is Static:true
Is Hidden:true
Is Multi:false
Show Empty:true

Hidden element to store your diff file name and path

top

file

Label:file
Type:String
Is Static:true
Is Hidden:true
Is Multi:false
Show Empty:true

Hidden element to store your ScriptingNews file name and path

top

Detailed Method Info

static getChangedNews (String $url)
Parameters:
$url :The url string to ScriptingNews
Returns: ScriptingNews

Method to get the changed ScriptingNews. It will be stored in the .mn8/ScriptingNews directory in your home directory. Returns only the differences between de newer and the previuosly stored SciptingNews

top
static getNews (String $url)
Parameters:
$url :The url string to ScriptingNews
Returns: ScriptingNews

Method to get an ScriptingNews from url. Returns the ScritingNews

top
static setHomeDir (String $url)
Parameters:
$url :URL to home directory
Returns:

Sets the ScriptingNews file names and its locations to store

top
enlarge (String $h, String $s, String $p, Integer $i, String $f)
Parameters:
$h :Header string for starts a line
$s :The line base string
$p :Pattern character to fill the rest of line
$i :Total line width
$f :Line ending footer string
Returns: String

Helper method to enlarge the size of the line to a fix width. Make enalrging with using the pattern character to fill the rest of the line. Finally appends the header and the footer strings to this line.

top
getItems (Integer $w)
Parameters:
$w :Total line width
Returns: String

Extract the elements from concept and colect the nested informations

top
toTXT
Returns:

Creates a text representation from the concept

top