List of usage examples for java.lang Package Package
Package
From source file:org.plasma.provisioning.ProvisioningModelAssembler.java
private Package createPackage(Namespace namespace, PlasmaType type) { Package pkg = new Package(); pkg.setName(namespace.getName());/*from w w w . j a v a2 s. c o m*/ pkg.setId(UUID.randomUUID().toString()); if (namespace.findAlias() != null) { org.plasma.sdo.Alias sdoAlias = namespace.findAlias(); Alias alias = new Alias(); pkg.setAlias(alias); alias.setPhysicalName(sdoAlias.getPhysicalName()); alias.setLocalName(sdoAlias.getLocalName()); alias.setBusinessName(sdoAlias.getBusinessName()); } for (Comment cmt : namespace.getComments()) { Documentation doc = new Documentation(); doc.setType(DocumentationType.DEFINITION); Body body = new Body(); body.setValue(cmt.getBody()); doc.setBody(body); pkg.getDocumentations().add(doc); } this.model.getPackages().add(pkg); pkg.setUri(type.getURI()); return pkg; }