Changeset 12105 for lang/actionscript/as3atompub
- Timestamp:
- 05/21/08 15:55:43 (5 years ago)
- Location:
- lang/actionscript/as3atompub/src/org/coderepos/xml/atom
- Files:
-
- 4 modified
-
AtomCategories.as (modified) (5 diffs)
-
AtomCategory.as (modified) (4 diffs)
-
AtomControl.as (modified) (1 diff)
-
AtomNamespace.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/as3atompub/src/org/coderepos/xml/atom/AtomCategories.as
r11461 r12105 15 15 import com.adobe.net.URI; 16 16 17 /** 18 * Class represents atom categories 19 */ 17 20 public class AtomCategories extends AtomElement { 18 21 22 /** 23 * Constructor 24 * 25 * @param source 26 * @langversion ActionScript 3.0 27 * @playerversion 9.0 28 */ 19 29 public function AtomCategories(source:XML=null) { 20 30 super(source); 21 31 } 22 32 33 /** 34 * get element name 35 * 36 * @returns elementName 37 * @langversion ActionScript 3.0 38 * @playerversion 9.0 39 */ 23 40 override public function get elementName():String { 24 41 return "categories"; 25 42 } 26 43 44 /** 45 * get default namespace 46 * 47 * @returns namespace 48 * @langversion ActionScript 3.0 49 * @playerversion 9.0 50 */ 27 51 override public function get defaultNamespace():Namespace { 28 52 return AtomNamespace.APP_WITHOUT_PREFIX; 29 53 } 30 54 55 /** 56 * get categories, synonym of getCategories method 57 * 58 * @returns categories array 59 * @langversion ActionScript 3.0 60 * @playerversion 9.0 61 */ 31 62 public function get categories():Array { 32 63 return getCategories(); 33 64 } 34 65 66 /** 67 * get categories 68 * 69 * @returns categories array 70 * @langversion ActionScript 3.0 71 * @playerversion 9.0 72 */ 35 73 public function getCategories():Array { 36 74 var elementList:XMLList = getElementList(AtomNamespace.ATOM, "category"); … … 43 81 } 44 82 83 /** 84 * set category, synonym of the setCategory 85 * 86 * @param category 87 * @langversion ActionScript 3.0 88 * @playerversion 9.0 89 */ 45 90 public function set category(_category:AtomCategory):void { 46 91 setCategory(_category); 47 92 } 48 93 94 /** 95 * set category 96 * 97 * @param categorie 98 * @langversion ActionScript 3.0 99 * @playerversion 9.0 100 */ 49 101 public function setCategory(_category:AtomCategory):void { 50 102 setAtomElement(AtomNamespace.ATOM, "category", _category); 51 103 } 52 104 105 /** 106 * add category 107 * 108 * @param categorie 109 * @langversion ActionScript 3.0 110 * @playerversion 9.0 111 */ 53 112 public function addCategory(_category:AtomCategory):void { 54 113 addAtomElement(AtomNamespace.ATOM, "category", _category); 55 114 } 56 115 116 /** 117 * get href uri, synonym of getHref method 118 * 119 * @returns href uri 120 * @langversion ActionScript 3.0 121 * @playerversion 9.0 122 */ 57 123 public function get href():URI { 58 124 return getHref(); 59 125 } 60 126 127 /** 128 * get href uri 129 * 130 * @returns href uri 131 * @langversion ActionScript 3.0 132 * @playerversion 9.0 133 */ 61 134 public function getHref():URI { 62 135 if (_src.hasOwnProperty("@href")) { … … 67 140 } 68 141 142 /** 143 * set href uri, setHref 144 * 145 * @param href uri 146 * @langversion ActionScript 3.0 147 * @playerversion 9.0 148 */ 69 149 public function set href(_href:URI):void { 70 150 setHref(_href); 71 151 } 72 152 153 /** 154 * set href uri 155 * 156 * @param href uri 157 * @langversion ActionScript 3.0 158 * @playerversion 9.0 159 */ 73 160 public function setHref(_href:URI):void { 74 161 _src.@href = _href.toString(); 75 162 } 76 163 164 /** 165 * get scheme, synonym of getScheme method 166 * 167 * @returns scheme 168 * @langversion ActionScript 3.0 169 * @playerversion 9.0 170 */ 77 171 public function get scheme():String { 78 172 return getScheme(); 79 173 } 80 174 175 /** 176 * get scheme 177 * 178 * @returns scheme 179 * @langversion ActionScript 3.0 180 * @playerversion 9.0 181 */ 81 182 public function getScheme():String { 82 183 if (_src.hasOwnProperty("@scheme")) { … … 87 188 } 88 189 190 /** 191 * set scheme, synonym of setScheme method 192 * 193 * @param scheme 194 * @langversion ActionScript 3.0 195 * @playerversion 9.0 196 */ 89 197 public function set scheme(_scheme:String):void { 90 198 setScheme(_scheme); 91 199 } 92 200 201 /** 202 * set scheme 203 * 204 * @param scheme 205 * @langversion ActionScript 3.0 206 * @playerversion 9.0 207 */ 93 208 public function setScheme(_scheme:String):void { 94 209 _src.@scheme = _scheme; 95 210 } 96 211 212 /** 213 * get boolean that shows if it fixed or not 214 * synonym of getFixed method 215 * 216 * @returns boolean that shows fixed or not 217 * @langversion ActionScript 3.0 218 * @playerversion 9.0 219 */ 97 220 public function get fixed():Boolean { 98 221 return getFixed(); 99 222 } 100 223 224 /** 225 * get boolean that shows if it fixed or not 226 * 227 * @returns boolean that shows fixed or not 228 * @langversion ActionScript 3.0 229 * @playerversion 9.0 230 */ 101 231 public function getFixed():Boolean { 102 232 if (_src.hasOwnProperty("@fixed")) { … … 107 237 } 108 238 239 /** 240 * set boolean that shows if it fixed or not 241 * synonym of setFixed method 242 * 243 * @param boolean that shows fixed or not 244 * @langversion ActionScript 3.0 245 * @playerversion 9.0 246 */ 109 247 public function set fixed(_fixed:Boolean):void { 110 248 setFixed(_fixed); 111 249 } 112 250 251 /** 252 * set boolean that shows if it fixed or not 253 * 254 * @param boolean that shows fixed or not 255 * @langversion ActionScript 3.0 256 * @playerversion 9.0 257 */ 113 258 public function setFixed(_fixed:Boolean):void { 114 259 if (_fixed) { -
lang/actionscript/as3atompub/src/org/coderepos/xml/atom/AtomCategory.as
r11461 r12105 13 13 package org.coderepos.xml.atom { 14 14 15 /** 16 * Class represents atom category 17 */ 15 18 public class AtomCategory extends AtomElement { 16 19 20 /** 21 * Constructor 22 * 23 * @param source XML object 24 * @langversion ActionScript 3.0 25 * @playerversion 9.0 26 */ 17 27 public function AtomCategory(source:XML=null) { 18 28 super(source); 19 29 } 20 30 31 /** 32 * get element name 33 * 34 * @returns elementName 35 * @langversion ActionScript 3.0 36 * @playerversion 9.0 37 */ 21 38 override public function get elementName():String { 22 39 return "category"; 23 40 } 24 41 42 /** 43 * get term, synonym of getTerm method 44 * 45 * @returns term 46 * @langversion ActionScript 3.0 47 * @playerversion 9.0 48 */ 25 49 public function get term():String { 26 50 return getTerm(); 27 51 } 28 52 53 /** 54 * get term 55 * 56 * @returns term 57 * @langversion ActionScript 3.0 58 * @playerversion 9.0 59 */ 29 60 public function getTerm():String { 30 61 if (_src.hasOwnProperty("@term")) { … … 35 66 } 36 67 68 /** 69 * set term, synonym of setTerm method 70 * 71 * @param term 72 * @langversion ActionScript 3.0 73 * @playerversion 9.0 74 */ 37 75 public function set term(_term:String):void { 38 76 setTerm(_term); 39 77 } 40 78 79 /** 80 * set term 81 * 82 * @param term 83 * @langversion ActionScript 3.0 84 * @playerversion 9.0 85 */ 41 86 public function setTerm(_term:String):void { 42 87 _src.@term = _term; 43 88 } 44 89 90 /** 91 * get label, synonym of getLabel method 92 * 93 * @returns label 94 * @langversion ActionScript 3.0 95 * @playerversion 9.0 96 */ 45 97 public function get label():String { 46 98 return getLabel(); 47 99 } 48 100 101 /** 102 * get label 103 * 104 * @returns label 105 * @langversion ActionScript 3.0 106 * @playerversion 9.0 107 */ 49 108 public function getLabel():String { 50 109 if (_src.hasOwnProperty("@label")) { … … 55 114 } 56 115 116 /** 117 * set label, synonym of setLabel method 118 * 119 * @param label 120 * @langversion ActionScript 3.0 121 * @playerversion 9.0 122 */ 57 123 public function set label(_label:String):void { 58 124 return setLabel(_label); 59 125 } 60 126 127 /** 128 * set label 129 * 130 * @param label 131 * @langversion ActionScript 3.0 132 * @playerversion 9.0 133 */ 61 134 public function setLabel(_label:String):void { 62 135 _src.@label = _label; 63 136 } 64 137 138 /** 139 * get scheme, synonym of getScheme method 140 * 141 * @returns scheme 142 * @langversion ActionScript 3.0 143 * @playerversion 9.0 144 */ 65 145 public function get scheme():String { 66 146 return getScheme(); 67 147 } 68 148 149 /** 150 * get scheme 151 * 152 * @returns scheme 153 * @langversion ActionScript 3.0 154 * @playerversion 9.0 155 */ 69 156 public function getScheme():String { 70 157 if (_src.hasOwnProperty("@scheme")) { … … 75 162 } 76 163 164 /** 165 * set scheme, synonym of setScehem method 166 * 167 * @param scheme 168 * @langversion ActionScript 3.0 169 * @playerversion 9.0 170 */ 77 171 public function set scheme(_scheme:String):void { 78 172 setScheme(_scheme); 79 173 } 80 174 175 /** 176 * set scheme 177 * 178 * @param scheme 179 * @langversion ActionScript 3.0 180 * @playerversion 9.0 181 */ 81 182 public function setScheme(_scheme:String):void { 82 183 _src.@scheme = _scheme; -
lang/actionscript/as3atompub/src/org/coderepos/xml/atom/AtomControl.as
r11461 r12105 47 47 48 48 } 49 -
lang/actionscript/as3atompub/src/org/coderepos/xml/atom/AtomNamespace.as
r11461 r12105 13 13 package org.coderepos.xml.atom { 14 14 15 /** 16 * Class stores namespaces that used in atompub protocols often. 17 */ 15 18 public class AtomNamespace { 16 19 20 /** 21 * atom namespace with prefix 22 */ 17 23 public static const ATOM:Namespace = new Namespace('atom', 'http://www.w3.org/2005/Atom'); 24 /** 25 * atom namespace without prefix 26 */ 18 27 public static const ATOM_WITHOUT_PREFIX:Namespace = new Namespace('http://www.w3.org/2005/Atom'); 28 /** 29 * app namespace with prefix 30 */ 19 31 public static const APP:Namespace = new Namespace('app', 'http://www.w3.org/2007/app'); 32 /** 33 * app namespace without prefix 34 */ 20 35 public static const APP_WITHOUT_PREFIX:Namespace = new Namespace('http://www.w3.org/2007/app'); 36 /** 37 * open search namespace 38 */ 21 39 public static const OPEN_SEARCH:Namespace = new Namespace('openSearch', 'http://a9.com/-/spec/opensearchrss/1.1/'); 40 /** 41 * dubline core namespace 42 */ 22 43 public static const DC:Namespace = new Namespace('dc', 'http://purl.org/dc/elements/1.1/'); 44 /** 45 * friend of a friend namespace 46 */ 23 47 public static const FOAF:Namespace = new Namespace('foaf', 'http://xmlns.com/foaf/0.1'); 48 /** 49 * atom threading namespace 50 */ 24 51 public static const THR:Namespace = new Namespace('thr', 'http://purl.org/syndication/thread/1.0'); 25 52
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)