mn8 Language Reference | Index    

OPML

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 OPML use the folowing:

          $x = OPML.getOPML( $url )

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

          $x = OPML.getChangedOPML( $url )

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

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

OPML:outlinediffs (OPML:outline $h, OPML:outline $t)
diffs (OPML:body $h, OPML:body $t)
static ScriptingNewsgetChangedOPML (String $url)
static OPMLgetOPML (String $url)
static setHomeDir (String $url)
static setHomeDir (String $url)
Stringenlarge (String $h, String $s, String $p, Integer $i, String $f)
StringgetItems (Integer $w, Concept $s, String $tab)
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 OPML file name and path

top

Detailed Method Info

diffs (OPML:outline $h, OPML:outline $t)
Parameters:
$h :An outline element from an older OPML concept
$t :An outline element from a newer OPML concept
Returns: OPML:outline

Calculate differences between two OPML outline element

top
diffs (OPML:body $h, OPML:body $t)
Parameters:
$h :An older OPML concept
$t :A newer OMPL concept
Returns:

Calculate differences between two OPML concept

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

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

top
static getOPML (String $url)
Parameters:
$url :The url string to OPML
Returns: OPML

Method to get an OPNL from url. Returns the OPML

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

Sets the OPML file names and its locations to store

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, Concept $s, String $tab)
Parameters:
$w :Total line width
$s :Concept to help separate algorithms for recursivity
$tab :Tabs, incrased in the recursive loop
Returns: String

Extract the elements from concept and colect the nested informations

top
toTXT
Returns:

Creates a text representation from the concept

top