If you only want to get an OCS use the folowing:
$x = OCS.getOCS( $url )
for obtaining the xml use the toXML method ( $x.toXML )
To get the changed OCS use this:
$x = OCS.getChangedOCS( $url )
in this case in the variable $x will return only the differencies between the concepts
the changed OCS will be stored in your home directory
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 |
|
Label: | home |
Type: | String |
Is Static: | true |
Is Hidden: | true |
Is Multi: | false |
Show Empty: | true |
Hidden element to store the home directory info
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
Label: | file |
Type: | String |
Is Static: | true |
Is Hidden: | true |
Is Multi: | false |
Show Empty: | true |
Hidden element to store your OCS file name and path
Parameters: |
$h : | Previuosly stored OCS concept |
$t : | Newer OCS concept |
|
Calculate differeces between two OCS concept
Parameters: |
$h : | Channel element from the previuosly stored OCS Concept |
$t : | Channel element from the newer OCS concept |
|
Calculate differences between two OCS channel element
Parameters: |
$url : | The url string to OCS |
|
Method to get the changed OCS. It will be stored in the .mn8/OCS
directory in your home directory. Returns only the differences between
de newer and the previuosly stored OCS
Parameters: |
$url : | The url string to OCS |
|
Method to get an OCS from url. Returns the OCS
Parameters: |
$url : | URL to home directory |
|
Sets the OCS file names and its locations to store
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 |
|
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.
Parameters: |
$c : | Channel concept with header |
$w : | Total line width |
$s : | String to identify a header |
$line : | Simple line string to separate other lines |
|
Gets header informations from the OCS concept
Creates a text representation from the OCS concept