Content deleted Content added
m WP:CHECKWIKI error fixes using AWB (10458) |
Added PHP |
||
Line 13:
In [[Java (programming language)|Java]], some developers consider that the PODS concept corresponds to a class with public data members and no methods (Java Code Conventions 10.1),[http://www.oracle.com/technetwork/java/codeconventions-137265.html#177] i.e., a [[data transfer object]].<ref>[http://www.oracle.com/technetwork/java/codeconventions-137265.html#177 "Java Language Data Structures"], Sun/Oracle Code Conventions from April 20, 1999.</ref> Others would also include [[POJO]]s (a class that has methods but only getters and setters, with no logic) and [[Java Beans]] to fall under the PODS concept if they do not use event handling and do not implement additional methods beyond getters and setters.{{Citation needed|date=February 2010}} However, [[POJO]]s and [[Java Beans]] do have encapsulation and so violate the fundamental definition of PODS.
In [[PHP]] associated arrays and stdClass objects can be considered PODS.
Other structured data representations such as [[XML]] or [[JSON]] can also be used as a PODS if no significant semantic restrictions are used.
|