Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@xml/xml.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % XML helper class for helpful xml functions. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: XML is a helper class for helpful xml functions. | |
5 % | |
6 % To see the available static methods, call | |
7 % | |
8 % >> methods utils.xml | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 classdef xml | |
13 | |
14 properties (Constant = true) | |
15 WILDCARD_CVS = '(ID)'; | |
16 WILDCARD_NEWLINE = '(NL)'; | |
17 | |
18 MAX_DOUBLE_IN_ROW = 50000; | |
19 MAX_IMAG_IN_ROW = 1000; | |
20 MAX_NUM_IN_MATRIX = 2500; | |
21 | |
22 % FACTORY = javax.xml.xpath.XPathFactory.newInstance(); | |
23 % XPATH = utils.xml.FACTORY.newXPath(); | |
24 end | |
25 | |
26 %------------------------------------------------ | |
27 %--------- Declaration of Static methods -------- | |
28 %------------------------------------------------ | |
29 methods (Static) | |
30 | |
31 %------------------------------------------------------------- | |
32 % List other methods | |
33 %------------------------------------------------------------- | |
34 | |
35 % sinfo methods | |
36 varargout = read_sinfo_xml(varargin) | |
37 varargout = save_sinfo_xml(varargin) | |
38 | |
39 % xml methods | |
40 varargout = getCell(varargin) | |
41 varargout = getFromType(varargin) | |
42 varargout = getMatrix(varargin) | |
43 varargout = getNumber(varargin) | |
44 varargout = getObject(varargin) | |
45 varargout = getShape(varargin) | |
46 varargout = getString(varargin) | |
47 varargout = getStruct(varargin) | |
48 varargout = getSym(varargin) | |
49 varargout = getType(varargin) | |
50 varargout = getVector(varargin) | |
51 | |
52 % attach methods | |
53 varargout = attachCellToDom(varargin) | |
54 varargout = attachCharToDom(varargin) | |
55 varargout = attachEmptyObjectNode(varargin) | |
56 varargout = attachMatrixToDom(varargin) | |
57 varargout = attachNumberToDom(varargin) | |
58 varargout = attachStructToDom(varargin) | |
59 varargout = attachSymToDom(varargin) | |
60 varargout = attachVectorToDom(varargin) | |
61 | |
62 % get Nodes with xpath | |
63 varargout = getChildByName(varargin) | |
64 varargout = getChildrenByName(varargin) | |
65 | |
66 % misc methods | |
67 varargout = mchar(varargin) % Convert java String to MATLAB char | |
68 varargout = num2str(varargin) % Convert numbers to a string. | |
69 varargout = mat2str(varargin) % Convert a matrix or vector into a string | |
70 varargout = cellstr2str(varargin) % Convert a cell with strings into a string | |
71 | |
72 varargout = prepareVersionString(varargin) | |
73 varargout = prepareString(varargin) | |
74 varargout = recoverVersionString(varargin) | |
75 varargout = recoverString(varargin) | |
76 | |
77 varargout = getHistoryFromUUID(varargin) | |
78 | |
79 % old xml methods | |
80 values = xmlread(node, obj_name) | |
81 varargout = xmlwrite(objs, xml, parent, property_name) | |
82 | |
83 end % End static methods | |
84 | |
85 | |
86 end | |
87 |