List of usage examples for java.lang Class Class
Class
From source file:org.plasma.provisioning.ProvisioningModelAssembler.java
private Class createClass(Package pkg, PlasmaType plasmaType) { Class clss = new Class(); pkg.getClazzs().add(clss);/*from ww w . j ava 2 s. c o m*/ clss.setId(UUID.randomUUID().toString()); clss.setName(plasmaType.getName()); clss.setUri(plasmaType.getURI()); clss.setAbstract(plasmaType.isAbstract()); if (plasmaType.getPhysicalName() != null) { Alias alias = new Alias(); clss.setAlias(alias); alias.setPhysicalName(plasmaType.getPhysicalName()); } if (plasmaType.getAlias() != null) { org.plasma.sdo.Alias sdoAlias = plasmaType.getAlias(); Alias alias = new Alias(); clss.setAlias(alias); alias.setPhysicalName(sdoAlias.getPhysicalName()); alias.setLocalName(sdoAlias.getLocalName()); alias.setBusinessName(sdoAlias.getBusinessName()); } for (commonj.sdo.Type baseType : plasmaType.getBaseTypes()) { ClassRef ref = new ClassRef(); ref.setName(baseType.getName()); ref.setUri(baseType.getURI()); clss.getSuperClasses().add(ref); } if (plasmaType.getDescription() != null && plasmaType.getDescription().size() > 0) { for (Comment comment : plasmaType.getDescription()) { Documentation documentation = new Documentation(); documentation.setType(DocumentationType.DEFINITION); Body body = new Body(); body.setValue(comment.getBody()); documentation.setBody(body); clss.getDocumentations().add(documentation); } } return clss; }