mn8 Language Reference | Index    

RSS

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

Description

Usage

        If you only want to get an RSS use the folowing:

          $x = RSS.getRSS( $url )

        for obtaining the xml use the toXML method ( $x.toXML )
        To get the changed RSS use this:

          $x = RSS.getChangedRSS( $url )

        in this case in the variable $x will return only the differencies between the concepts
        the changed RSS will be stored in your home directory

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

Element List

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

Method List

static RSSgetChangedRSS (String $url)
static RSSgetRSS (String $url)
static setHomeDir (String $url)
Stringenlarge (String $h, String $s, String $p, Integer $i, String $f)
StringgetItems (Integer $w, String $ver)
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

version

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

Hidden element to store the version info

top

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 RSS file name and path

top

Detailed Method Info

static getChangedRSS (String $url)
Parameters:
$url :The url string to RSS
Returns: RSS

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

top
static getRSS (String $url)
Parameters:
$url :The url string to RSS
Returns: RSS

Method to get an RSS from url. Returns the RSS

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

Sets the RSS 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, String $ver)
Parameters:
$w :Total line width
$ver :Version number to separate the version dependent algorithms
Returns: String

Extract the elements from concept and colect the nested informations

top
toTXT
Returns:

Creates a text representation from the concept

top