12345678910111213141516171819202122232425 |
- <%@ page contentType="text/xml; charset=UTF-8" language="java"%>
- <%@ page
- import ="com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl,
- com.sysmodel.datamodel.xmlmodel.able.MdpClass,
- java.util.*"
- %>
- <%
- SysModel sysmodel = ModelFactory.getSysmodel();
- String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid");
-
- MdpClass MdpClass = sysmodel.getMdpClassByClassID(Integer.parseInt(classid));
- ArrayList Attributes = (ArrayList)MdpClass.getAllMdpAttributes();
-
- out.print("<root>");
- for (int i = 0; i < Attributes.size(); i++) {
- MdpAttributeImpl MdpAttributeImpl = (MdpAttributeImpl) Attributes.get(i);
- out.print("<name>"+MdpAttributeImpl.getName()+"</name>");
- out.print("<description>"+MdpAttributeImpl.getDescription()+"</description>");
- }
- out.print("</root>");
- %>
|