| @@ 34-90 (lines=57) @@ | ||
| 31 | * @link http://github.com/appserver-io/routlt |
|
| 32 | * @link http://www.appserver.io |
|
| 33 | */ |
|
| 34 | class Action extends ReflectionAnnotation |
|
| 35 | { |
|
| 36 | ||
| 37 | /** |
|
| 38 | * The annotation to define a servlets routing. |
|
| 39 | * |
|
| 40 | * @var string |
|
| 41 | */ |
|
| 42 | const ANNOTATION = 'Action'; |
|
| 43 | ||
| 44 | /** |
|
| 45 | * This method returns the class name as |
|
| 46 | * a string. |
|
| 47 | * |
|
| 48 | * @return string |
|
| 49 | */ |
|
| 50 | public static function __getClass() |
|
| 51 | { |
|
| 52 | return __CLASS__; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Returns the value of the name attribute. |
|
| 57 | * |
|
| 58 | * @return string|null The annotations name attribute |
|
| 59 | */ |
|
| 60 | public function getName() |
|
| 61 | { |
|
| 62 | if (isset($this->values['name'])) { |
|
| 63 | return $this->values['name']; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Returns the value of the name attribute. |
|
| 69 | * |
|
| 70 | * @return string|null The annotations name attribute |
|
| 71 | */ |
|
| 72 | public function getRestrictions() |
|
| 73 | { |
|
| 74 | if (isset($this->values['restrictions'])) { |
|
| 75 | return $this->values['restrictions']; |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Returns the value of the name attribute. |
|
| 81 | * |
|
| 82 | * @return string|null The annotations name attribute |
|
| 83 | */ |
|
| 84 | public function getDefaults() |
|
| 85 | { |
|
| 86 | if (isset($this->values['defaults'])) { |
|
| 87 | return $this->values['defaults']; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| @@ 34-90 (lines=57) @@ | ||
| 31 | * @link http://github.com/appserver-io/routlt |
|
| 32 | * @link http://www.appserver.io |
|
| 33 | */ |
|
| 34 | class Result extends AbstractBeanAnnotation |
|
| 35 | { |
|
| 36 | ||
| 37 | /** |
|
| 38 | * The annotation to define a servlets routing. |
|
| 39 | * |
|
| 40 | * @var string |
|
| 41 | */ |
|
| 42 | const ANNOTATION = 'Result'; |
|
| 43 | ||
| 44 | /** |
|
| 45 | * This method returns the class name as |
|
| 46 | * a string. |
|
| 47 | * |
|
| 48 | * @return string |
|
| 49 | */ |
|
| 50 | public static function __getClass() |
|
| 51 | { |
|
| 52 | return __CLASS__; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Returns the value of the type attribute. |
|
| 57 | * |
|
| 58 | * @return string|null The annotations type attribute |
|
| 59 | */ |
|
| 60 | public function getType() |
|
| 61 | { |
|
| 62 | if (isset($this->values['type'])) { |
|
| 63 | return $this->values['type']; |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Returns the value of the result attribute. |
|
| 69 | * |
|
| 70 | * @return string|null The annotations result attribute |
|
| 71 | */ |
|
| 72 | public function getResult() |
|
| 73 | { |
|
| 74 | if (isset($this->values['result'])) { |
|
| 75 | return $this->values['result']; |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Returns the value of the code attribute. |
|
| 81 | * |
|
| 82 | * @return string|null The annotations code attribute |
|
| 83 | */ |
|
| 84 | public function getCode() |
|
| 85 | { |
|
| 86 | if (isset($this->values['code'])) { |
|
| 87 | return $this->values['code']; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||