CPD Results

The following document contains the results of PMD's CPD 4.2.5.

Duplications

FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway943
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1813
                            if (ctSequence != null) {//Change made on 25-1-2010
                                Iterator containedObjectsIter = ctSequence.getItems().getIterator();
                                while (containedObjectsIter.hasNext()) {
                                    Object obj1 = containedObjectsIter.next();
                                    if (obj1.getClass().getName().contains("XmlSchemaElement")) {
                                        org.apache.ws.commons.schema.XmlSchemaElement objectXMLSchemaElement =
                                                (XmlSchemaElement) obj1;

                                        if (objectXMLSchemaElement.getSchemaType() != null) {
                                            boolean typeParsed = false;
                                            if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                NativeObject no1 = new NativeObject();
                                                no1.setObjectName(objectXMLSchemaElement.getQName());
                                                ComplexObject unionCO = SimpleTypesParser.parseSimpleType(objectXMLSchemaElement, null, no1, theDefinition, service);
                                                if (unionCO != null) {
                                                    if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasComplexObjects().add(unionCO);
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasComplexObjects().add(unionCO);
                                                    }
                                                    System.out.println();
                                                } else {
                                                    typeParsed = true;
                                                    if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);

                                                            ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                            noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                            noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO_ListNO.setIsArrayType(true);
                                                            noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                            noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                            noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            noArrayCO.setIsOptional(no1.isIsOptional());
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                        }
                                                    } else {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();

                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            co.getHasNativeObjects().add(no1);
                                                        }
                                                    }
                                                }
                                            } else if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {

                                                ComplexObject co1 = new ComplexObject();
                                                parseComplexType(service, objectXMLSchemaElement, null, co1, theDefinition, calledFromAbstractTypeParser);
                                                typeParsed = true;
                                                co.getHasComplexObjects().add(co1);

                                            } else {
                                                System.out.println();
                                            }

                                            if (!typeParsed) {
                                                theDefinition.getContainingErrors().add("ERROR 1!! ERROR @ line ~523!!!");
                                                System.out.println("ERROR 1!! ERROR @ line ~523!!!");
                                                //-System.exit(-1);
                                            }
                                        } else {
                                            System.out.println(objectXMLSchemaElement.getName());
                                            if (objectXMLSchemaElement.getSchemaTypeName() != null) {
                                                org.apache.ws.commons.schema.XmlSchemaType xmlSchemaType1 = null;
                                                xmlSchemaType1 = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaType(service, objectXMLSchemaElement.getSchemaTypeName());

                                                if (xmlSchemaType1 == null) {
                                                    xmlSchemaType1 = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaElement(service, objectXMLSchemaElement.getSchemaTypeName());
                                                }

                                                if (xmlSchemaType1 == null) {
                                                    //failedDueToAxisCreation=true;
                                                    //return null;
                                                    System.out.println("ERROR @line ~524... Rpc/Encoded strange IMPORT!!!");
                                                    continue;
                                                } else {
                                                    if (xmlSchemaType1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                        XmlSchemaSimpleTypeContent content1 = ((XmlSchemaSimpleType) xmlSchemaType1).getContent();
                                                        if (content1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction")) {
                                                            System.out.println("123");
                                                            org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction restr =
                                                                    (org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction) content1;
                                                            XmlSchemaObjectCollection facetsCol = (XmlSchemaObjectCollection) restr.getFacets();
                                                            NativeObject no = new NativeObject();
                                                            no.setObjectName(objectXMLSchemaElement.getQName());
                                                            no.setObjectType(restr.getBaseTypeName());
                                                            //no.setNamespaceURI(restr.getBaseTypeName().getNamespaceURI());
                                                            //no.setAdditionalInfo(restr.getBaseTypeName().getNamespaceURI()+"       ");

                                                            if (facetsCol != null && facetsCol.getCount() > 0) {
                                                                Iterator iter1 = facetsCol.getIterator();
                                                                while (iter1.hasNext()) {
                                                                    org.apache.ws.commons.schema.XmlSchemaEnumerationFacet facet =
                                                                            (org.apache.ws.commons.schema.XmlSchemaEnumerationFacet) iter1.next();
                                                                    no.setAdditionalInfo(no.getAdditionalInfo() + facet.getValue() + "   ");
                                                                    no.getHasAllowedValues().add(facet.getValue());
                                                                }
                                                            }

                                                            co.getHasNativeObjects().add(no);
                                                        } else {
                                                        }
                                                        //System.out.println(xmlSchemaType1.getBaseSchemaType().getClass().getName());
                                                    } else if (xmlSchemaType1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                        System.out.println();
                                                    }
                                                }
                                            }
                                        }
                                    } else if (obj1.getClass().getName().contains("XmlSchemaAny")) {
                                        System.out.println();
                                        //EINAI XmlSchemaAny
                                        org.apache.ws.commons.schema.XmlSchemaAny newSimpleOrComplexObjectElement =
                                                (org.apache.ws.commons.schema.XmlSchemaAny) obj1;


                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(new QName("any"));
                                        co1.setObjectType(new QName("Object"));

                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType().getLocalPart()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");
                                    } else if (obj1.getClass().getName().contains("XmlSchemaChoice")) {

                                        org.apache.ws.commons.schema.XmlSchemaChoice newSimpleOrComplexObjectElement =
                                                (org.apache.ws.commons.schema.XmlSchemaChoice) obj1;


                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                        co1.setObjectType(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                        co1.setIsAbstract(true);

                                        AdditionalTypesParser.parseXMLSchemaChoiceElement(service, newSimpleOrComplexObjectElement, co1,
                                                theDefinition, calledFromAbstractTypeParser);


                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");

                                    } else if (obj1.getClass().getName().contains("XmlSchemaGroupRef")) {
                                        System.out.println();
                                        ComplexObject co1 = new ComplexObject();
                                        AdditionalTypesParser.parseXmlSchemaGroupRefElement(service,
                                                (org.apache.ws.commons.schema.XmlSchemaGroupRef) obj1, co1, theDefinition);

                                        if (co1 != null) {
                                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                            }
                                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                            }
                                        } else {
                                            System.out.println();
                                        }
                                        System.out.println();
                                    } else {
                                        System.out.println();
                                    }
                                }
                            }
                        } catch (Exception e) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway104
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway105
					}
				}
			}
		}
		for (int i = 0; i < vec.size(); i++) {
			theParsedOperation.getHasOutput().getHasNativeOrComplexObjects()
					.add(vec.get(i));
		}
		theResult.responseHasNativeOrComplexObjects = parsedOperationOutputsVector;
		return theResult;
	}

	private static void setComplexObjectValues(ComplexObject co,
			OMElementImpl omElement) {
		if (omElement == null || co == null) {
			return;
		}

		if (!co.isIsArrayType()) {
			if (co.getHasComplexObjects() != null
					&& co.getHasComplexObjects().size() > 0) {
				Iterator cosIter = co.getHasComplexObjects().iterator();
				while (cosIter.hasNext()) {
					ComplexObject co1 = (ComplexObject) cosIter.next();

					if (!co1.isIsArrayType()) {
						OMElementImpl omElement1 = findTheComplexObjectNodeInOMElement(
								omElement, co1);
						setComplexObjectValues(co1, omElement1);
					} else {
						setArrayObjectValues(co1, omElement);
					}
				}
			}

			if (co.getHasNativeObjects() != null
					&& co.getHasNativeObjects().size() > 0) {
				Iterator nosIter = co.getHasNativeObjects().iterator();
				while (nosIter.hasNext()) {
					NativeObject no1 = (NativeObject) nosIter.next();
					OMElementImpl omElement1 = findTheNativeObjectNodeInOMElement(
							omElement, no1);
					setNativeObjectValue(no1, omElement1);
				}
			}
			if (co.getHasNativeObjects() != null
					&& co.getHasNativeObjects().size() == 0
					&& co.getHasComplexObjects() != null
					&& co.getHasComplexObjects().size() == 0) {
				Iterator iter = omElement.getChildren();
				while (iter.hasNext()) {
					OMElementImpl omElement2 = (OMElementImpl) iter.next();
					Iterator iter2 = omElement2.getChildren();
					boolean hasChildren = false;
					while (iter2.hasNext()) {
						hasChildren = true;
						break;
					}
					if (hasChildren) {
						ComplexObject co1 = new ComplexObject();
						co1.setHasParent(co);
						co1.setObjectName(new QName(omElement2.getLocalName()));
						createNodesAmongChildren(omElement2, co1);
						co1.setObjectType(new QName(getComplexObjectType(co1)));
						co.getHasComplexObjects().add(co1);
					} else {
						NativeObject no = new NativeObject();
						no.setObjectName(new QName(omElement2.getLocalName()));
						no.setHasParent(co);
						no.setObjectType(new QName("String"));

						no.setHasValue(omElement2.getText());
						co.getHasNativeObjects().add(no);
					}
				}
			}
		} else {
			setArrayObjectValues(co, omElement);
		}
	}

	private static String getComplexObjectType(ComplexObject co) {
		if (co.getHasComplexObjects().size() == 0
				&& co.getHasNativeObjects().size() != 0) {
			return co.getObjectName().getLocalPart();
		} else if (co.getHasComplexObjects().size() != 0) {
			if (!checkIfComplexObjectIsArrayType(co).equals("")) {
				co.setIsArrayType(true);
				return checkIfComplexObjectIsArrayType(co);
			} else {
				co.setIsArrayType(false);
				return co.getObjectName().getLocalPart();
			}
		}
		return "";
	}

	private static String checkIfComplexObjectIsArrayType(ComplexObject co) {
		Vector vec = co.getHasComplexObjects();
		if (vec.size() != 0) {
			if (vec.get(0) instanceof ComplexObject) {
				String name = ((ComplexObject) vec.get(0)).getObjectName()
						.getLocalPart();
				for (int i = 1; i < vec.size(); i++) {
					if (!name.equals(((ComplexObject) vec.get(i))
							.getObjectName().getLocalPart())) {
						return co.getObjectName().getLocalPart();
					}
				}
				return name + "[]";
			}
		} else {
			vec = co.getHasNativeObjects();
			if (vec.size() != 0) {
				String name = ((NativeObject) vec.get(0)).getObjectName()
						.getLocalPart();
				for (int i = 1; i < vec.size(); i++) {
					if (!name.equals(((NativeObject) vec.get(i))
							.getObjectName().getLocalPart())) {
						return co.getObjectName().getLocalPart();
					}
				}
				return name + "[]";
			}
		}
		return "";

	}

	private static void createNodesAmongChildren(OMElementImpl omElement2,
			ComplexObject co) {
		Iterator iter2 = omElement2.getChildren();
		while (iter2.hasNext()) {
			try {
				Object obj = iter2.next();
				if (obj instanceof OMElementImpl) {
					OMElementImpl omElement = (OMElementImpl) obj;
					Iterator iter = omElement.getChildren();
					boolean hasChildren = false;
					while (iter.hasNext()) {
						hasChildren = true;
						break;
					}
					if (hasChildren) {
						ComplexObject co1 = new ComplexObject();
						co1.setHasParent(co);
						co1.setObjectName(new QName(omElement.getLocalName()));
						createNodesAmongChildren(omElement, co1);
						co1.setObjectType(new QName(getComplexObjectType(co1)));
						co.getHasComplexObjects().add(co1);

					} else {
						NativeObject no = new NativeObject();
						no.setObjectName(new QName(omElement.getLocalName()));
						no.setHasParent(co);
						no.setHasValue(omElement.getText());
						no.setObjectType(new QName("String"));

						co.getHasNativeObjects().add(no);
					}
				} else {
					OMTextImpl omElement = (OMTextImpl) obj;
					NativeObject no = new NativeObject();
					no.setObjectName(new QName(omElement.getText()));
					no.setHasParent(co);
					no.setObjectType(new QName("String"));
					no.setHasValue(omElement.getText());

					co.getHasNativeObjects().add(no);
				}
			} catch (Exception ex) {
			}
		}
		return;
	}

	private static void setArrayObjectValues(ComplexObject co,
			OMElementImpl omElement) {
		try {
			if (co.getHasNativeObjects() != null
					&& co.getHasNativeObjects().size() > 0) {
				NativeObject no1 = (NativeObject) co.getHasNativeObjects().get(
						0);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway495
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway739
					System.out.println(containedElement.getClass().getName());

					if (containedElement.getMaxOccursIsUnbounded()
							&& definedType.getContainedElements().size() == 1) {
						// Array Type
						System.out.println("\tARRAY:   "
								+ containedElement.getQName().getLocalPart());
						if (containedElement.getType() != null
								&& containedElement.getType().getRefType() != null) {
							System.out.println(containedElement.getType()
									.getQName().getLocalPart());// Type tou CO

							if (containedElement.getType().getQName()
									.getLocalPart() != null
									&& containedElement.getType().getQName()
											.getLocalPart().contains("[")) {
								co.setObjectType(containedElement.getType()
										.getQName());
							} else {
								co.setObjectType(new QName(
										containedElement.getType().getQName()
												.getNamespaceURI(),
										containedElement.getType().getQName()
												.getLocalPart()
												+ "[]", containedElement
												.getType().getQName()
												.getPrefix()));
							}
							System.out.println(containedElement.getType()
									.getRefType().isBaseType());// apo dw tha
																// katalavw an
																// einai
																// nativeObject
																// i Complex
							// co.setAdditionalInfo(containedElement.getType().getRefType().getQName().getNamespaceURI());//Namespace
							// tou CO
							// co.setNamespaceURI(containedElement.getType().getQName().getNamespaceURI());

							if (containedElement.getType().getRefType()
									.isBaseType()) {
								// NativeObject
								NativeObject no1 = new NativeObject();
								// no1.objectName="elementOfArray";
								no1.setObjectType(containedElement.getType()
										.getRefType().getQName());
								// no1.setNamespaceURI(containedElement.getType().getRefType().getQName().getNamespaceURI());
								no1.setObjectName(no1.getObjectType());
								co.getHasNativeObjects().add(no1);
								co.setIsArrayType(true);
							} else {
								// ComplexObject
								ComplexObject co1 = new ComplexObject();
								// co1.objectName="elementOfArray";
								DefinedType containedElementType = (DefinedType) containedElement
										.getType().getRefType();
								co1.setObjectType(containedElementType
										.getQName());

								// co1.setNamespaceURI(containedElementType.getQName().getNamespaceURI());
								parseComplexType(containedElementType,
										theSymbolTable, co1,
										theParsedDefinition);
								co1.setObjectName(co1.getObjectType());
								co.getHasComplexObjects().add(co1);
								co.setIsArrayType(true);
								System.out.println();
							}
							System.out.println();

						} else {
							System.out.println("ERROR 1234!!! @line ~299");
							theParsedDefinition.getContainingErrors().add(
									"ERROR 1234!!! @line ~299");
						}

					} else {

						System.out.println("\tNOT ARRAY:    "
								+ containedElement.getQName().getLocalPart());
						// Gia kathe containedElement ftiaxnw kainourgio
						// ComplexObject i NO kai to vazw mesa sto CO
						if (containedElement.getType() != null) {
							if (containedElement.getType().isBaseType()) {
								System.out.println(containedElement.getType()
										.getClass().getName());
								// NativeObject
								NativeObject no1 = new NativeObject();
								no1.setObjectName(new QName(
										containedElement.getQName()
												.getNamespaceURI(),
										containedElement
												.getQName()
												.getLocalPart()
												.substring(
														containedElement
																.getQName()
																.getLocalPart()
																.indexOf(">") + 1),
										containedElement.getQName().getPrefix()));
								System.out.println(containedElement.getType()
										.getQName().getLocalPart());// Type tou
																	// CO1
								// no1.setObjectType(containedElement.getType().getQName().getLocalPart());
								System.out.println(containedElement.getType()
										.isBaseType());// apo dw tha katalavw an
														// einai nativeObject i
														// Complex
								// no1.setNamespaceURI(containedElement.getType().getQName().getNamespaceURI());
								no1.setObjectType(containedElement.getType()
										.getQName());
								if (containedElement.getMinOccursIs0()
										|| containedElement.getNillable()
										|| containedElement.getOptional()) {
									no1.setIsOptional(true);
								}
								// no1.isOptional=containedElement.getMinOccursIs0();

								// no1.setAdditionalInfo(containedElement.getType().getQName().getNamespaceURI());//Namespace
								// tou CO1
								Node n1 = definedType.getNode();

								/*
								 * if(definedType.getQName().getLocalPart().equals
								 * ("GeoPlaceType")){ System.out.println(""); }
								 */

								// try to find allowed values
								if (n1.getChildNodes() != null) {
									System.out.println(n1.getChildNodes()
											.getLength());
									for (int i = 0; i < n1.getChildNodes()
											.getLength(); i++) {
										Node childNode = n1.getChildNodes()
												.item(i);
										System.out.println(childNode
												.getNodeName());
										if (childNode.getNodeName() != null
												&& childNode
														.getNodeName()
														.contains("restriction")) {
											if (childNode.getChildNodes() != null) {
												System.out.println(childNode
														.getChildNodes()
														.getLength());
												for (int i1 = 0; i1 < childNode
														.getChildNodes()
														.getLength(); i1++) {
													Node restrictionNode = childNode
															.getChildNodes()
															.item(i1);
													if (restrictionNode != null
															&& restrictionNode
																	.getNodeName() != null
															&& restrictionNode
																	.getNodeName()
																	.contains(
																			"enumeration")) {
														if (restrictionNode
																.getAttributes() != null
																&& restrictionNode
																		.getAttributes()
																		.getNamedItem(
																				"value") != null) {
															System.out
																	.println(restrictionNode
																			.getAttributes()
																			.getNamedItem(
																					"value"));
															no1.getHasAllowedValues()
																	.add(restrictionNode
																			.getAttributes()
																			.getNamedItem(
																					"value"));
														}
													}
												}
											}
										}
									}
								}

								// DefinedType
								// containedElementType=(DefinedType)containedElement.getType();
								// parseComplexType(containedElementType,
								// theSymbolTable, co1);
								co.getHasNativeObjects().add(no1);

							} else {
								// ComplexObject

								ComplexObject co1 = new ComplexObject();
								co1.setObjectName(new QName(
										containedElement.getQName()
												.getNamespaceURI(),
										containedElement
												.getQName()
												.getLocalPart()
												.substring(
														containedElement
																.getQName()
																.getLocalPart()
																.indexOf(">") + 1),
										containedElement.getQName().getPrefix()));
								// co1.setObjectName(containedElement.getQName().getLocalPart().substring(
								// containedElement.getQName().getLocalPart().indexOf(">")+1));
								System.out.println(containedElement.getType()
										.getQName().getLocalPart());// Type tou
																	// CO1
								// co1.setObjectType(containedElement.getType().getQName().getLocalPart());
								System.out.println(containedElement.getType()
										.isBaseType());// apo dw tha katalavw an
														// einai nativeObject i
														// Complex
								// co1.setNamespaceURI(containedElement.getType().getQName().getNamespaceURI());
								// co1.setAdditionalInfo(containedElement.getType().getQName().getNamespaceURI());//Namespace
								// tou CO1
								co1.setObjectType(containedElement.getType()
										.getQName());

								if (containedElement.getMinOccursIs0()
										|| containedElement.getNillable()
										|| containedElement.getOptional()) {
									co1.setIsOptional(true);
								}
								// co1.isOptional=containedElement.getMinOccursIs0();

								DefinedType containedElementType = (DefinedType) containedElement
										.getType();
								parseComplexType(containedElementType,
										theSymbolTable, co1,
										theParsedDefinition);
								co.getHasComplexObjects().add(co1);
								System.out.println();
							}

						} else {
							System.out.println("ERROR 12345678910!!!");
							theParsedDefinition.getContainingErrors().add(
									"ERROR 12345678910!!! @line ~341");
						}
					}
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway314
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway319
				}
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	private static void clearValues(ComplexObject co) {

		for (int i = 0; i < co.getHasComplexObjects().size(); i++) {
			ComplexObject co1 = (ComplexObject) co.getHasComplexObjects()
					.get(i);
			if (co1.isIsArrayType()) {
				if (co1.getHasComplexObjects().size() != 1) {
					for (int j = co1.getHasComplexObjects().size() - 1; j > 0; j--) {
						ComplexObject co2 = (ComplexObject) co1
								.getHasComplexObjects().get(j);
						clearValues(co2);
					}
				}
				if (co1.getHasNativeObjects().size() != 1) {
					for (int j = co1.getHasNativeObjects().size() - 1; j > 0; j--) {
						NativeObject no2 = (NativeObject) co1
								.getHasNativeObjects().get(j);
						no2.setHasValue("");
					}
				}

			}
			for (int j = 0; j < co.getHasComplexObjects().size(); j++) {
				clearArrayTypes((ComplexObject) co.getHasComplexObjects()
						.get(j));
			}
		}
		for (int i = 0; i < co.getHasNativeObjects().size(); i++) {
			NativeObject no = (NativeObject) co.getHasNativeObjects().get(i);
			no.setHasValue("");
		}
	}

	private static void clearArrayTypes(ComplexObject co) {

		for (int i = 0; i < co.getHasComplexObjects().size(); i++) {
			ComplexObject co1 = (ComplexObject) co.getHasComplexObjects()
					.get(i);
			if (co1.isIsArrayType()) {
				if (co1.getHasComplexObjects().size() != 1) {
					for (int j = co1.getHasComplexObjects().size() - 1; j > 0; j--) {
						ComplexObject co2 = (ComplexObject) co1
								.getHasComplexObjects().get(j);
						co1.getHasComplexObjects().remove(co2);
					}
				}
				if (co1.getHasNativeObjects().size() != 1) {
					for (int j = co1.getHasNativeObjects().size() - 1; j > 0; j--) {
						NativeObject no2 = (NativeObject) co1
								.getHasNativeObjects().get(j);
						co1.getHasNativeObjects().remove(no2);
					}
				}

			}
			for (int j = 0; j < co.getHasComplexObjects().size(); j++) {
				clearArrayTypes((ComplexObject) co.getHasComplexObjects()
						.get(j));
			}
		}
	}

	private static void setNativeObjectValue(NativeObject no,
			OMElementImpl omElement) {
		if (omElement == null || no == null) {
			return;
		}
		no.setHasValue(omElement.getText());
	}

	private static OMElementImpl findTheNativeObjectNodeInTheResponseBody(
			MessageContext inMsgCtx, NativeObject no) {

		if (inMsgCtx == null || inMsgCtx.getEnvelope() == null
				|| inMsgCtx.getEnvelope().getBody() == null) {
			return null;
		}
		SOAPEnvelope response = inMsgCtx.getEnvelope();
		// System.out.println(response);
		SOAPBody body = response.getBody();
		QName objectQName = null;
		objectQName = no.getObjectName();

		Iterator iter1 = body.getChildren();
		while (iter1.hasNext()) {
			org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) iter1
					.next();
			Iterator it2 = childOMElement.getChildren();
			while (it2.hasNext()) {
				OMElementImpl childOMElement2 = (OMElementImpl) it2.next();
				if (childOMElement2.getQName().getLocalPart()
						.equals(objectQName.getLocalPart())) {
					return childOMElement2;
				}
			}
		}
		return null;
	}

	private static OMElementImpl findTheNativeObjectNodeInOMElement(
			OMElementImpl omElement, NativeObject no) {
		QName objectQName = null;
		objectQName = no.getObjectName();
		Iterator iter1 = omElement.getChildrenWithName(objectQName);
		while (iter1.hasNext()) {

			org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) iter1
					.next();
			return childOMElement;
		}
		return null;
	}

	private static OMElementImpl findTheComplexObjectNodeInTheResponseBody(
			MessageContext inMsgCtx, ComplexObject co) {
		if (inMsgCtx == null || inMsgCtx.getEnvelope() == null
				|| inMsgCtx.getEnvelope().getBody() == null) {
			return null;
		}
		SOAPEnvelope response = inMsgCtx.getEnvelope();
		// System.out.println(response);
		SOAPBody body = response.getBody();
		QName objectQName = null;
		if (co != null) {
			objectQName = co.getObjectName();
		}

		Iterator iter1 = body.getChildren();
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1360
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1805
                            org.apache.ws.commons.schema.XmlSchemaSequence ctSequence = (XmlSchemaSequence) restriction.getParticle();
                            //-System.out.prinln("AAA");

                            if (co.getObjectType() == null && co.getObjectName() != null) {
                                co.setObjectType(co.getObjectName());
                            }


                            if (ctSequence != null) {//Change made on 25-1-2010
                                Iterator containedObjectsIter = ctSequence.getItems().getIterator();
                                while (containedObjectsIter.hasNext()) {
                                    Object obj1 = containedObjectsIter.next();
                                    if (obj1.getClass().getName().contains("XmlSchemaElement")) {
                                        org.apache.ws.commons.schema.XmlSchemaElement objectXMLSchemaElement =
                                                (XmlSchemaElement) obj1;

                                        if (objectXMLSchemaElement.getSchemaType() != null) {
                                            boolean typeParsed = false;
                                            if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                NativeObject no1 = new NativeObject();
                                                no1.setObjectName(objectXMLSchemaElement.getQName());
                                                ComplexObject unionCO = SimpleTypesParser.parseSimpleType(objectXMLSchemaElement, null, no1, theDefinition, service);
                                                if (unionCO != null) {
                                                    if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasComplexObjects().add(unionCO);
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasComplexObjects().add(unionCO);
                                                    }
                                                    System.out.println();
                                                } else {
                                                    typeParsed = true;
                                                    if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);

                                                            ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                            noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                            noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO_ListNO.setIsArrayType(true);
                                                            noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                            noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                            noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            noArrayCO.setIsOptional(no1.isIsOptional());
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                        }
                                                    } else {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();

                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            co.getHasNativeObjects().add(no1);
                                                        }
                                                    }
                                                }
                                            } else if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {

                                                ComplexObject co1 = new ComplexObject();
                                                parseComplexType(service, objectXMLSchemaElement, null, co1, theDefinition, calledFromAbstractTypeParser);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway943
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1368
                    if (ctSequence != null) {//Change made on 25-1-2010
                        Iterator containedObjectsIter = ctSequence.getItems().getIterator();
                        while (containedObjectsIter.hasNext()) {
                            Object obj1 = containedObjectsIter.next();
                            if (obj1.getClass().getName().contains("XmlSchemaElement")) {
                                org.apache.ws.commons.schema.XmlSchemaElement objectXMLSchemaElement =
                                        (XmlSchemaElement) obj1;

                                if (objectXMLSchemaElement.getSchemaType() != null) {
                                    boolean typeParsed = false;
                                    if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                        NativeObject no1 = new NativeObject();
                                        no1.setObjectName(objectXMLSchemaElement.getQName());
                                        ComplexObject unionCO = SimpleTypesParser.parseSimpleType(objectXMLSchemaElement, null, no1, theDefinition, service);
                                        if (unionCO != null) {
                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                ComplexObject noArrayCO = new ComplexObject();

                                                noArrayCO.setObjectName(no1.getObjectName());
                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                noArrayCO.setIsArrayType(true);
                                                noArrayCO.getHasComplexObjects().add(unionCO);
                                                co.getHasComplexObjects().add(noArrayCO);
                                                typeParsed = true;

                                            } else {
                                                typeParsed = true;
                                                co.getHasComplexObjects().add(unionCO);
                                            }
                                            System.out.println();
                                        } else {
                                            typeParsed = true;
                                            if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                                if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                    ComplexObject noArrayCO = new ComplexObject();
                                                    noArrayCO.setObjectName(no1.getObjectName());
                                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                    noArrayCO.setIsArrayType(true);

                                                    ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                    noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                    noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                    noArrayCO_ListNO.setIsArrayType(true);
                                                    noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                    noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                    noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                    co.getHasComplexObjects().add(noArrayCO);
                                                    typeParsed = true;

                                                } else {
                                                    typeParsed = true;
                                                    ComplexObject noArrayCO = new ComplexObject();
                                                    noArrayCO.setObjectName(no1.getObjectName());
                                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                    noArrayCO.setIsArrayType(true);
                                                    noArrayCO.getHasNativeObjects().add(no1);
                                                    noArrayCO.setIsOptional(no1.isIsOptional());
                                                    co.getHasComplexObjects().add(noArrayCO);
                                                }
                                            } else {
                                                if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                    ComplexObject noArrayCO = new ComplexObject();

                                                    noArrayCO.setObjectName(no1.getObjectName());
                                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                    noArrayCO.setIsArrayType(true);
                                                    noArrayCO.getHasNativeObjects().add(no1);
                                                    co.getHasComplexObjects().add(noArrayCO);
                                                    typeParsed = true;

                                                } else {
                                                    typeParsed = true;
                                                    co.getHasNativeObjects().add(no1);
                                                }
                                            }
                                        }
                                    } else if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {

                                        ComplexObject co1 = new ComplexObject();
                                        parseComplexType(service, objectXMLSchemaElement, null, co1, theDefinition, calledFromAbstractTypeParser);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway91
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway414
			org.w3c.dom.Element impSchElem = nsSchema.getElement();

			// EDW NA LAVW YP'OPSIN KAI TA "group" elements
			NodeList elementNodesList = impSchElem
					.getElementsByTagName("element");
			NodeList complexTypeNodesList = impSchElem
					.getElementsByTagName("complexType");
			NodeList simpleTypeNodesList = impSchElem
					.getElementsByTagName("simpleType");
			NodeList groupTypeNodesList = impSchElem
					.getElementsByTagName("group");
			// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength()+" "
			// +groupTypeNodesList.getLength());

			if (elementNodesList != null && complexTypeNodesList != null
					&& simpleTypeNodesList != null
					&& groupTypeNodesList != null) {
				if (elementNodesList.getLength() == 0
						&& complexTypeNodesList.getLength() == 0
						&& simpleTypeNodesList.getLength() == 0
						&& groupTypeNodesList.getLength() == 0) {
					elementNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "element");
					complexTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "complexType");
					simpleTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "simpleType");
					groupTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "group");
					// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength());

					if (elementNodesList.getLength() == 0
							&& complexTypeNodesList.getLength() == 0
							&& simpleTypeNodesList.getLength() == 0
							&& groupTypeNodesList.getLength() == 0) {
						Vector xmlSchemaKeys = new Vector();
						Set entries = MitsosParser.namespaces.entrySet();
						Iterator iter1 = entries.iterator();
						while (iter1.hasNext()) {
							Entry entry = (Entry) iter1.next();
							if (entry.getValue() != null
									&& entry.getValue().equals(
											"http://www.w3.org/2001/XMLSchema")) {
								xmlSchemaKeys.add(entry.getKey());
							}
						}

						if (xmlSchemaKeys.size() > 0) {
							for (int i = 0; i < xmlSchemaKeys.size(); i++) {
								String ns = (String) xmlSchemaKeys.get(i);
								String prefix = ns + ":";

								elementNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "element");
								complexTypeNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "complexType");
								simpleTypeNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "simpleType");
								groupTypeNodesList = impSchElem
										.getElementsByTagName(prefix + "group");
								// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength());

								if (elementNodesList.getLength() != 0
										|| complexTypeNodesList.getLength() != 0
										|| simpleTypeNodesList.getLength() != 0
										|| groupTypeNodesList.getLength() != 0) {
									break;
								}

							}
						}
					}

					// importNodesList=e1.getElementsByTagName(MitsosParser.nativeTypePrefix+"import");
					// includeNodesList=e1.getElementsByTagName(MitsosParser.nativeTypePrefix+"include");
				}
			}

			if (elementNodesList != null) {
				for (int i = 0; i < elementNodesList.getLength(); i++) {
					Node n = elementNodesList.item(i);
					if (n.hasAttributes()
							&& n.getAttributes().getNamedItem("name") != null) {
						if (n.getAttributes().getNamedItem("name")
								.getNodeValue().equals(theNodeNameAttValue)) {
							// -System.out.println("getNodeOfType: ELEMENT");
							return n;
						}
					}
				}
			}

			if (complexTypeNodesList != null) {
				for (int i = 0; i < complexTypeNodesList.getLength(); i++) {
					Node n = complexTypeNodesList.item(i);
					if (n.hasAttributes()
							&& n.getAttributes().getNamedItem("name") != null) {
						if (n.getAttributes().getNamedItem("name")
								.getNodeValue().equals(theNodeNameAttValue)) {
							// -System.out.println("getNodeOfType: COMPLEX TYPE");
							return n;
						}
					}
				}
			}

			if (simpleTypeNodesList != null) {
				for (int i = 0; i < simpleTypeNodesList.getLength(); i++) {
					Node n = simpleTypeNodesList.item(i);
					if (n.hasAttributes()
							&& n.getAttributes().getNamedItem("name") != null) {
						if (n.getAttributes().getNamedItem("name")
								.getNodeValue().equals(theNodeNameAttValue)) {
							// -System.out.println("getNodeOfType: SIMPLE TYPE");
							return n;
						}
					}
				}
			}

			if (groupTypeNodesList != null) {
				for (int i = 0; i < groupTypeNodesList.getLength(); i++) {
					Node n = groupTypeNodesList.item(i);
					if (n.hasAttributes()
							&& n.getAttributes().getNamedItem("name") != null) {
						// -System.out.println(n.getAttributes().getNamedItem("name").getNodeValue());
						if (n.getAttributes().getNamedItem("name")
								.getNodeValue().equals(theNodeNameAttValue)) {
							// -System.out.println("getNodeOfType: GROUP");
							return n;
						}
					}
				}
			}

			List includesList = nsSchema.getIncludes();
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1419
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1959
									}
								}
							}

							if (msg.isWrapped()) {
								if (msg.getDirection().equals("in")) {
									operationInput
											.setHasSoapHeaders(parseSoapHeadersOfOperation(
													service, msg, theDefinition));

									System.out.println("\t\tREQUEST");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationInput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								} else if (msg.getDirection().equals("out")) {
									System.out.println("\t\tRESPONSE");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationOutput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								}
							} else { // if NOT WRAPPED
								// TWRA GINETAI TO IDIO OPWS sto WRAPPED apo
								// panw...
								if (msg.getDirection().equals("in")) {
									operationInput
											.setHasSoapHeaders(parseSoapHeadersOfOperation(
													service, msg, theDefinition));

									System.out.println("\t\tREQUEST");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationInput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								} else if (msg.getDirection().equals("out")) {
									System.out.println("\t\tRESPONSE");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationOutput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								}
							}
						}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1421
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1695
								}

								if (msg.isWrapped()) {
									if (msg.getDirection().equals("in")) {
										operationInput
												.setHasSoapHeaders(parseSoapHeadersOfOperation(
														service, msg,
														theDefinition));

										System.out.println("\t\tREQUEST");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									} else if (msg.getDirection().equals("out")) {
										System.out.println("\t\tRESPONSE");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									}
								} else { // if NOT WRAPPED
									// TWRA GINETAI TO IDIO OPWS sto WRAPPED apo
									// panw...
									if (msg.getDirection().equals("in")) {
										operationInput
												.setHasSoapHeaders(parseSoapHeadersOfOperation(
														service, msg,
														theDefinition));

										System.out.println("\t\tREQUEST");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									} else if (msg.getDirection().equals("out")) {
										System.out.println("\t\tRESPONSE");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									}
								}
							} else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1695
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1961
							}

							if (msg.isWrapped()) {
								if (msg.getDirection().equals("in")) {
									operationInput
											.setHasSoapHeaders(parseSoapHeadersOfOperation(
													service, msg, theDefinition));

									System.out.println("\t\tREQUEST");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationInput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								} else if (msg.getDirection().equals("out")) {
									System.out.println("\t\tRESPONSE");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationOutput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								}
							} else { // if NOT WRAPPED
								// TWRA GINETAI TO IDIO OPWS sto WRAPPED apo
								// panw...
								if (msg.getDirection().equals("in")) {
									operationInput
											.setHasSoapHeaders(parseSoapHeadersOfOperation(
													service, msg, theDefinition));

									System.out.println("\t\tREQUEST");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationInput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								} else if (msg.getDirection().equals("out")) {
									System.out.println("\t\tRESPONSE");
									System.out.println(msg.getName());
									if (dummyInputOrOutputComplexObject
											.getHasComplexObjects().size() == 0
											&& dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size() == 1) {
										operationOutput
												.getHasNativeOrComplexObjects()
												.add(dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.get(0));
									} else {
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasNativeObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(i));
										}
										for (int i = 0; i < dummyInputOrOutputComplexObject
												.getHasComplexObjects().size(); i++) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.get(i));
										}
									}
								}
							}
						}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway349
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1423
								if (msg.isWrapped()) {
									if (msg.getDirection().equals("in")) {
										operationInput
												.setHasSoapHeaders(parseSoapHeadersOfOperation(
														service, msg,
														theDefinition));

										System.out.println("\t\tREQUEST");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									} else if (msg.getDirection().equals("out")) {
										System.out.println("\t\tRESPONSE");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									}
								} else { // if NOT WRAPPED
									// TWRA GINETAI TO IDIO OPWS sto WRAPPED apo
									// panw...
									if (msg.getDirection().equals("in")) {
										operationInput
												.setHasSoapHeaders(parseSoapHeadersOfOperation(
														service, msg,
														theDefinition));

										System.out.println("\t\tREQUEST");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									} else if (msg.getDirection().equals("out")) {
										System.out.println("\t\tRESPONSE");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									}
								}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway436
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway600
                                coArrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(), co1.getObjectType().getLocalPart() + "[]",
                                        co1.getObjectType().getPrefix()));
                                coArrayCO.setIsArrayType(true);
                                coArrayCO.getHasComplexObjects().add(co1);
                                coArrayCO.setIsOptional(co1.isIsOptional());
                                co.getHasComplexObjects().add(coArrayCO);
                            } else {
                                co.getHasComplexObjects().add(co1);
                            }

                        }

                    } else {
                        try {
                            if (newSimpleOrComplexObjectElement.getRefName() == null) {
                                //if(schemaTypeName==null)-> Vector
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    System.out.println("WWW Vector!!!");
                                    if (newSimpleOrComplexObjectElement.getSchemaTypeName() != null &&
                                            newSimpleOrComplexObjectElement.getSchemaTypeName().getLocalPart().equals("anyType") &&
                                            newSimpleOrComplexObjectElement.getName() != null &&
                                            newSimpleOrComplexObjectElement.getName().equals("item")) {

                                        System.out.println(newSimpleOrComplexObjectElement.getName());
                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                        co1.setObjectType(newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        co1.setIsArrayType(true);
                                        //co1.setNamespaceURI(newSimpleOrComplexObjectElement.getSchemaTypeName().getNamespaceURI());
                                        co.getHasComplexObjects().add(co1);
                                    } else if (newSimpleOrComplexObjectElement.getSchemaTypeName() == null ||
                                            newSimpleOrComplexObjectElement.getName() == null) {
                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                        co1.setObjectType(newSimpleOrComplexObjectElement.getQName());
                                        co1.setIsArrayType(true);
                                        //co1.setNamespaceURI(newSimpleOrComplexObjectElement.getSchemaTypeName().getNamespaceURI());
                                        co.getHasComplexObjects().add(co1);
                                    }
                                } else {
                                    ComplexObject co1 = new ComplexObject();
                                    co1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                    co1.setObjectType(newSimpleOrComplexObjectElement.getSchemaTypeName());
                                    //co1.setNamespaceURI(newSimpleOrComplexObjectElement.getSchemaTypeName().getNamespaceURI());
                                    if (newSimpleOrComplexObjectElement.getSchemaType() == null) {
                                        XmlSchemaType xmlSchemaType = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaType(service,
                                                newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        if (xmlSchemaType == null) {
                                            xmlSchemaType = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaElement(service,
                                                    newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        }
                                        NativeObject no1 = new NativeObject();
                                        //no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                        if (newSimpleOrComplexObjectElement.getQName() != null) {
                                            no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                        } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                            no1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                                        } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                            no1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                                        } else {
                                            no1.setObjectName(new QName("UNDEFINED variable name"));
                                            theDefinition.getContainingErrors().add("WARNING @line ~737... UNDEFINED Variable name!!!");
                                            System.out.println("WARNING @line ~737... UNDEFINED Variable name!!!");
                                        }


                                        ComplexObject unionCO = SimpleTypesParser.parseSimpleType(null, xmlSchemaType, no1, theDefinition, service);
                                        if (unionCO == null) {
                                            if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1 ||
                                                    (no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType"))) {
                                                ComplexObject noArrayCO = new ComplexObject();

                                                noArrayCO.setObjectName(no1.getObjectName());
                                                noArrayCO.setObjectType(
                                                        new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]",
                                                        no1.getObjectType().getPrefix()));
                                                noArrayCO.setIsArrayType(true);
                                                noArrayCO.getHasNativeObjects().add(no1);
                                                co.getHasComplexObjects().add(noArrayCO);

                                            } else {
                                                co.getHasNativeObjects().add(no1);
                                            }
                                        } else {
                                            ComplexObject co2 = new ComplexObject();
                                            co2.setObjectName(no1.getObjectName());
                                            if (xmlSchemaType.getQName() != null) {
                                                co2.setObjectType(xmlSchemaType.getQName());
                                            } else {
                                                System.out.println();
                                            }
                                            co2.getHasComplexObjects().add(unionCO);
                                            co.getHasComplexObjects().add(co2);
                                        }

                                    } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway578
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway696
                                        parseComplexType(service, newSimpleOrComplexObjectElement, null, co1, theDefinition, calledFromAbstractTypeParser);
                                        theDefinition.getContainingErrors().add("WARNING @ ~777 ...");
                                        System.out.println("WARNING @ ~777 ...");
                                        co.getHasComplexObjects().add(co1);
                                    }


                                }
                            } else {
                                System.out.println("DEN HTAN VECTOR... Exei referenced type...? 2");
                                System.out.println(newSimpleOrComplexObjectElement.getName());
                                System.out.println(newSimpleOrComplexObjectElement.getRefName());

                                try {
                                    if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                        org.apache.ws.commons.schema.XmlSchemaType xmlSchemaType =
                                                ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaType(service, newSimpleOrComplexObjectElement.getRefName());
                                        if (xmlSchemaType == null) {
                                            xmlSchemaType = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaElement(service, newSimpleOrComplexObjectElement.getRefName());
                                        }

                                        if (xmlSchemaType != null) {

                                            boolean typeParsed = false;
                                            if (xmlSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                NativeObject no1 = new NativeObject();

                                                if (newSimpleOrComplexObjectElement.getQName() != null) {
                                                    no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                                } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                                    no1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                                                } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                                    no1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                                                } else {
                                                    no1.setObjectName(new QName("UNDEFINED variable name"));
                                                    theDefinition.getContainingErrors().add("WARNING @line ~2248... UNDEFINED Variable name!!!");
                                                    System.out.println("WARNING @line ~2248... UNDEFINED Variable name!!!");
                                                }
                                                ComplexObject unionCO = SimpleTypesParser.parseSimpleType(null, xmlSchemaType, no1, theDefinition, service);
                                                if (unionCO == null) {
                                                    if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                                        no1.setIsOptional(true);
                                                    }
                                                    typeParsed = true;
                                                    if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1 ||
                                                            (no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType"))) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(),
                                                                no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasNativeObjects().add(no1);
                                                        noArrayCO.setIsOptional(no1.isIsOptional());
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasNativeObjects().add(no1);
                                                    }
                                                } else {
                                                    ComplexObject co2 = new ComplexObject();
                                                    co2.setObjectName(no1.getObjectName());
                                                    if (xmlSchemaType.getQName() != null) {
                                                        co2.setObjectType(xmlSchemaType.getQName());
                                                    } else {
                                                        System.out.println();
                                                    }
                                                    co2.getHasComplexObjects().add(unionCO);
                                                    co.getHasComplexObjects().add(co2);
                                                }

                                            } else if (xmlSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {
                                                ComplexObject co1 = new ComplexObject();
                                                if (newSimpleOrComplexObjectElement.getQName() != null) {
                                                    co1.setObjectName(newSimpleOrComplexObjectElement.getQName());//Panta prin apo ayto ton tropo klisis prepei na exw dwsei prwta to onoma tou co
                                                    } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                                    co1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                                                } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                                    co1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                                                } else {
                                                    co1.setObjectName(new QName("UNDEFINED variable Name"));
                                                    theDefinition.getContainingErrors().add("WARNING @line ~2424... UNDEFINED Variable name!!!");
                                                    System.out.println("WARNING @line ~2424... UNDEFINED Variable name!!!");
                                                    System.out.println();
                                                }
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)207
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway163
    private final static byte WHITE_SPACE_ENC = -5; // Indicates white space in
						    // encoding
    private final static byte EQUALS_SIGN_ENC = -1; // Indicates equals sign in
						    // encoding

    /*  ******** S T A N D A R D B A S E 6 4 A L P H A B E T ******** */

    /** The 64 valid Base64 values. */
    // private final static byte[] ALPHABET;
    /*
     * Host platform me be something funny like EBCDIC, so we hardcode these
     * values.
     */
    private final static byte[] _STANDARD_ALPHABET = { (byte) 'A', (byte) 'B',
	    (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G',
	    (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L',
	    (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q',
	    (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V',
	    (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) 'a',
	    (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f',
	    (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k',
	    (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p',
	    (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u',
	    (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z',
	    (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4',
	    (byte) '5', (byte) '6', (byte) '7', (byte) '8', (byte) '9',
	    (byte) '+', (byte) '/' };

    /**
     * Translates a Base64 value to either its 6-bit reconstruction value or a
     * negative number indicating some other meaning.
     **/
    private final static byte[] _STANDARD_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
	    62, // Plus sign at decimal 43
	    -9, -9, -9, // Decimal 44 - 46
	    63, // Slash at decimal 47
	    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, // Numbers zero through nine
	    -9, -9, -9, // Decimal 58 - 60
	    -1, // Equals sign at decimal 61
	    -9, -9, -9, // Decimal 62 - 64
	    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, // Letters 'A' through
							  // 'N'
	    14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, // Letters 'O'
							    // through 'Z'
	    -9, -9, -9, -9, -9, -9, // Decimal 91 - 96
	    26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, // Letters 'a'
								// through 'm'
	    39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n'
								// through 'z'
	    -9, -9, -9, -9 // Decimal 123 - 126
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)362
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway291
	    39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n'
								// through 'z'
	    -9, -9, -9, -9 // Decimal 123 - 126
    /*
     * ,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 127 - 139
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 140 - 152
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 153 - 165
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 166 - 178
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 179 - 191
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 192 - 204
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 205 - 217
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 218 - 230
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9, // Decimal 231 - 243
     * -9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9 // Decimal 244 - 255
     */
    };

    /*  ******** O R D E R E D B A S E 6 4 A L P H A B E T ******** */

    /**
     * I don't get the point of this technique, but it is described here: <a
     * href="http://www.faqs.org/qa/rfcc-1940.html">http://www.faqs.org/qa/rfcc-
     * 1940.html</a>.
     */
    private final static byte[] _ORDERED_ALPHABET = { (byte) '-', (byte) '0',
	    (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5',
	    (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'A',
	    (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F',
	    (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K',
	    (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P',
	    (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U',
	    (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z',
	    (byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd',
	    (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i',
	    (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n',
	    (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's',
	    (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x',
	    (byte) 'y', (byte) 'z' };

    /**
     * Used in decoding the "ordered" dialect of Base64.
     */
    private final static byte[] _ORDERED_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
	    -9, // Plus sign at decimal 43
	    -9, // Decimal 44
	    0, // Minus sign at decimal 45
	    -9, // Decimal 46
	    -9, // Slash at decimal 47
	    1, 2, 3, 4, 5, 6, 7, 8, 9, 10, // Numbers zero through nine
	    -9, -9, -9, // Decimal 58 - 60
	    -1, // Equals sign at decimal 61
	    -9, -9, -9, // Decimal 62 - 64
	    11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, // Letters 'A'
								// through 'M'
	    24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, // Letters 'N'
								// through 'Z'
	    -9, -9, -9, -9, // Decimal 91 - 94
	    37, // Underscore at decimal 95
	    -9, // Decimal 96
	    38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, // Letters 'a'
								// through 'm'
	    51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, // Letters 'n'
								// through 'z'
	    -9, -9, -9, -9 // Decimal 123 - 126
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)153
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)153
		radiobuttonPanel.setBounds(20,100,475,50);		
		radioButtonsGroup = new ButtonGroup();
		realMeasurementButton = createJRadioButton("Real measurement");	
		realMeasurementButton.setToolTipText("Continua devices should be paired first");
		simulatedMeasurementButton = createJRadioButton("Simulated measurement");
		simulatedMeasurementButton.setToolTipText("Random values will be published to uAAL context bus (Continua devices not required)");
		radiobuttonPanel.add(realMeasurementButton);
		radiobuttonPanel.add(simulatedMeasurementButton);
		mainPanel.add(radiobuttonPanel);
		// Buttons
		bloodPressureButton = createJButton(bloodPressureImage,214,160,218,145,"bloodPressure");		
		mainPanel.add(bloodPressureButton);		
		weighingScaleButton = createJButton(weighingScaleImage,18,154,178,157,"weighingScale");			
		mainPanel.add(weighingScaleButton);		
	}	
	
	/** Create JPanel */
	public JPanel createJPanel() {
		JPanel output = null;
		output = new JPanel();	
		output.setLayout(null);
		output.setBorder(new EmptyBorder(5,5,5,5));	
		output.setBackground(Color.WHITE);
		return output;
	}
	
	/** Create JButtons */
	public JButton createJButton(String image,int x,int y,int weight,int height,String name) {
		JButton output = null;
		output = new JButton("");
		output.setBackground(Color.WHITE);
		if(image != null)
			output.setIcon(new ImageIcon(ctx.getBundle().getResource(image)));
		output.setBounds(x,y,weight,height);
		output.setActionCommand(name);
		output.addActionListener(this);
		return output;
	}	
	
	/** Create JRadioButtons */
	public JRadioButton createJRadioButton(String name) {
		JRadioButton output = null;
		output = new JRadioButton(name,false);
		output.setActionCommand(name);
		output.setBackground(Color.WHITE);
		output.addActionListener(this);
		radioButtonsGroup.add(output);
		return output;
	}
    
	/** Close GUI frame */
    public void closeGUI(){	     	
    	dispose();		
    }

    /** Action listener for radio buttons and jbuttons */
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("bloodPressure")) {
			// Blood pressure device
			if(realMeasurementButton.isSelected()) {
				realMeasurement = true;
				createUaalPublisher("bloodPressure","real");				
			} else if(simulatedMeasurementButton.isSelected()) {
				realMeasurement = false;
				createUaalPublisher("bloodPressure","simulated");				
			}	
		} else if(e.getActionCommand().equals("weighingScale")) {
			// Weighing scale device
			if(realMeasurementButton.isSelected()) {
				realMeasurement = true;
				createUaalPublisher("weighingScale","real");				
			} else if(simulatedMeasurementButton.isSelected()) {
				realMeasurement = false;
				createUaalPublisher("weighingScale","simulated");				
			}
		} else if(e.getActionCommand().equals("publishData")) {
			// Publish data to uAAL context bus. Ensure that values are not NULL
			uaalX73Publisher = new Publisher(ctx);			
			if(realMeasurement) {				
				// Real values
				if(remoteDeviceType.equals("WeightingScale")) {					
					if(finalMeasuredWeightData != -1.0) {						
						double temp_1 = shortDecimalNumber(finalMeasuredWeightData)*1000;
						int temp = (int) temp_1;						
						uaalX73Publisher.publishWeightEvent(temp);	
						//stopPublisherGUI();
					}	
				} else {
					if((finalDiaBloodPressureData != -1)&&(finalHrBloodPressureData != -1)&&(finalSysBloodPressureData != -1)) {						
						int temp_0 = (int) finalSysBloodPressureData;
						int temp_1 = (int) finalDiaBloodPressureData;
						int temp_2 = (int) finalHrBloodPressureData;						
						uaalX73Publisher.publishBloodPressureEvent(temp_0,temp_1,temp_2);	
						//stopPublisherGUI();
					}
				}				
			} else {				
				// Random values
				if(remoteDeviceType.equals("WeightingScale")) {
					uaalX73Publisher.publishWeightEvent(Integer.parseInt(uaalPublisherWeightValueTextfield.getText()));
					//stopPublisherGUI();
				} else {					
					uaalX73Publisher.publishBloodPressureEvent(Integer.parseInt(uaalPublisherBloodPressureSysValueTextfield.getText()),
							   Integer.parseInt(uaalPublisherBloodPressureDiaValueTextfield.getText()),
							   Integer.parseInt(uaalPublisherBloodPressurePulValueTextfield.getText()));
					//stopPublisherGUI();
				}
			}			
		}
	}    
	
	/** Create and show uAAL publisher frame */
	public void createUaalPublisher(String device,String type) {
		// Hide main GUI
		setVisible(false);
		// Create dialog frame
		uaalPublisher = new JDialog(this,"uAAL publisher",true);
		uaalPublisher.setResizable(false);
		uaalPublisher.setBounds(100,100,650,475);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1089
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1621
                                org.apache.ws.commons.schema.XmlSchemaAny newSimpleOrComplexObjectElement =
                                        (org.apache.ws.commons.schema.XmlSchemaAny) obj1;


                                ComplexObject co1 = new ComplexObject();
                                co1.setObjectName(new QName("any"));
                                co1.setObjectType(new QName("Object"));

                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                    co1.setIsOptional(true);
                                }

                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    //Array Type
                                    ComplexObject arrayCO = new ComplexObject();
                                    arrayCO.setObjectName(co1.getObjectName());
                                    //arrayCO.setObjectType(new QName(co1.getObjectType().getLocalPart()+"[]"));
                                    arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                            co1.getObjectType().getLocalPart() + "[]",
                                            co1.getObjectType().getPrefix()));
                                    arrayCO.setIsArrayType(true);
                                    arrayCO.getHasComplexObjects().add(co1);
                                    arrayCO.setIsOptional(co1.isIsOptional());
                                    co.getHasComplexObjects().add(arrayCO);
                                } else {
                                    co.getHasComplexObjects().add(co1);
                                }

                                //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                System.out.println("aaa!");
                            } else if (obj1.getClass().getName().contains("XmlSchemaChoice")) {

                                org.apache.ws.commons.schema.XmlSchemaChoice newSimpleOrComplexObjectElement =
                                        (org.apache.ws.commons.schema.XmlSchemaChoice) obj1;


                                ComplexObject co1 = new ComplexObject();
                                co1.setObjectName(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                co1.setObjectType(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                co1.setIsAbstract(true);

                                AdditionalTypesParser.parseXMLSchemaChoiceElement(service, newSimpleOrComplexObjectElement, co1,
                                        theDefinition, calledFromAbstractTypeParser);


                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                    co1.setIsOptional(true);
                                }

                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    //Array Type
                                    ComplexObject arrayCO = new ComplexObject();
                                    arrayCO.setObjectName(co1.getObjectName());
                                    //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                                    arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                            co1.getObjectType().getLocalPart() + "[]",
                                            co1.getObjectType().getPrefix()));
                                    arrayCO.setIsArrayType(true);
                                    arrayCO.getHasComplexObjects().add(co1);
                                    arrayCO.setIsOptional(co1.isIsOptional());
                                    co.getHasComplexObjects().add(arrayCO);
                                } else {
                                    co.getHasComplexObjects().add(co1);
                                }

                                //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                System.out.println("aaa!");

                            } else if (obj1.getClass().getName().contains("XmlSchemaGroupRef")) {
                                System.out.println();
                                ComplexObject co1 = new ComplexObject();
                                AdditionalTypesParser.parseXmlSchemaGroupRefElement(service,
                                        (org.apache.ws.commons.schema.XmlSchemaGroupRef) obj1, co1, theDefinition);

                                if (co1 != null) {
                                    for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                        co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                    }
                                    for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                        co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                    }
                                } else {
                                    System.out.println();
                                }
                                System.out.println();
                            } else {
                                System.out.println();
                            }
                        }
                    }
FileProjectLine
org\universAAL\middleware\connectors\communication\jgroups\util\CryptUtil.javauniversAAL Middleware Connector Communication JGroups (Core)48
org\universAAL\context\sesame\sail\crypt\CryptUtil.javauniversAAL Context Sesame SAIL for OWL Lite47
public class CryptUtil {
    
    private static final String cipherTransformation = "DES/ECB/PKCS5Padding";
    private static final String keyFileName = "sodapop.key";
    private static final String randomizationAlgorithm = "SHA1PRNG";
    private static final String secretKeyAlgorithm = "DES";

    private static boolean tryMore = true;
    private static SecretKey skey = null;
    private static Codec codec = null;
    
//    public static void main(String[] args) {
//	try {
//	    final File keyFile = new File(keyFileName);
//	    final Vector v = new Vector();
//	    // SecretKey mainkey = generateKey(keyFile);
//	    SecretKey mainkey = readKey(keyFile);
//
//	    new Thread() {
//		public void run() {
//		    SecretKey myKey = null;
//		    try {
//			myKey = readKey(keyFile);
//			while (true) {
//			    synchronized (v) {
//				if (v.isEmpty()) {
//				    if (!tryMore)
//					break;
//				    try {
//					v.wait();
//				    } catch (Exception x1) {
//					x1.printStackTrace();
//				    }
//				} else {
//				    System.out.println("Decrypted: "
//					    + decrypt(v.remove(0).toString(),
//						    myKey));
//				}
//			    }
//			}
//
//			tryMore = true;
//			String original = "This is the simple test #";
//			for (int i = 6; i < 11; i++) {
//			    synchronized (v) {
//				v.add(encrypt(original + i, myKey));
//				v.notify();
//			    }
//			    System.out.println("Encrypted: " + original + i);
//			}
//		    } catch (Exception e) {
//			e.printStackTrace();
//			System.exit(1);
//		    }
//
//		    tryMore = false;
//		    while (true)
//			synchronized (v) {
//			    if (v.isEmpty())
//				break;
//			    else
//				v.notify();
//			}
//		}
//	    }.start();
//
//	    String original = "This is the simple test #";
//	    for (int i = 1; i < 6; i++) {
//		synchronized (v) {
//		    v.add(encrypt(original + i, mainkey));
//		    v.notify();
//		}
//		System.out.println("Encrypted: " + original + i);
//	    }
//
//	    tryMore = false;
//	    while (!tryMore)
//		synchronized (v) {
//		    if (v.isEmpty())
//			try {
//			    v.wait();
//			} catch (Exception x1) {
//			    x1.printStackTrace();
//			}
//		    else
//			v.notify();
//		}
//
//	    while (true) {
//		synchronized (v) {
//		    if (v.isEmpty()) {
//			if (!tryMore)
//			    break;
//			try {
//			    v.wait();
//			} catch (Exception x1) {
//			    x1.printStackTrace();
//			}
//		    } else {
//			System.out.println("Decrypted: "
//				+ decrypt(v.remove(0).toString(), mainkey));
//		    }
//		}
//	    }
//	} catch (Exception e) {
//	    e.printStackTrace();
//	}
//    }
    
    /**
     * Initialization method - reads the shared key from the file system or
     * generates a new shared key
     * 
     * @param String
     *            dir - the directory where the shared key file resides
     * @param codec
     *            the codec to be used for encoding and decoding messages (e.g.
     *            Base64)
     */
    public static String init(String dir, Codec codec) throws Exception {
	if (CryptUtil.codec != null && CryptUtil.codec != codec)
	    throw new SecurityException("CryptUtil already initialized");
    	CryptUtil.codec = codec;
	File keyFile = new File(dir + System.getProperty("file.separator")
		+ keyFileName);

	boolean newKey = false;
	try {
	    skey = readKey(keyFile);
	} catch (Exception e) {
	    skey = generateKey(keyFile);
	    newKey = true;
	}

	if (skey == null)
	    throw new SecurityException(
		    "Missing the secret key for message exchange!");

	if (newKey)
	    return "New Key generated. Please copy "
		    + keyFile.getAbsolutePath()
		    + " to the confadmin folder of all the other instances of sodapop in your ensemble!";
	else
	    return "Cryptography utils initialized successfully!";
    }
    
    /**
     * decrypt the parameter string with the shared key read during 
     * initialization 
     * 
     * @param String chiper - the string to decrypt
     * @return the decrypted string
     * 
     */
    public static String decrypt(String cipher) throws Exception {
	return decrypt(cipher, skey);
    }
    
    /**
     * decrypt the first parameter string with the shared key received as the 
     * second parameter
     * 
     * @param String chiper - the string to decrypt
     * @param SecretKey skey - the shared key
     * @return the decrypted string
     * 
     */
    private static String decrypt(String cipher, SecretKey skey)
	    throws Exception {
	Cipher desCipher = Cipher.getInstance(cipherTransformation);
	desCipher.init(Cipher.DECRYPT_MODE, skey);
	return new String(desCipher.doFinal(codec.decode(cipher)));
    }

    /**
     * encrypt the parameter string with the shared key read during 
     * initialization 
     * 
     * @param String clear - the string to encrypt
     * @return the encrypted string
     * 
     */
    public static String encrypt(String clear) throws Exception {
	return encrypt(clear, skey);
    }
    
    /**
     * encrypt the first parameter string with the shared key received as the 
     * second parameter
     * 
     * @param String clear - the string to encrypt
     * @param SecretKey skey - the shared key
     * @return the encrypted string
     * 
     */
    private static String encrypt(String clear, SecretKey skey)
	    throws Exception {
	Cipher desCipher = Cipher.getInstance(cipherTransformation);
	desCipher.init(Cipher.ENCRYPT_MODE, skey);
	return new String(codec.encode(desCipher.doFinal(clear.getBytes())));
    }
    
    /**
     * generate the shared key and write it into the file passed as a parameter
     * 
     * @param File keyFile - the file to write the generated key
     * @return SecretKey - the generated key
     * 
     */
    private static SecretKey generateKey(File keyFile) throws Exception {
	KeyGenerator keyGen = KeyGenerator.getInstance(secretKeyAlgorithm);
	keyGen.init(SecureRandom.getInstance(randomizationAlgorithm));
	SecretKey skey = keyGen.generateKey();
	SecretKeyFactory keyfactory = SecretKeyFactory
		.getInstance(secretKeyAlgorithm);
	DESKeySpec keyspec = (DESKeySpec) keyfactory.getKeySpec(skey,
		DESKeySpec.class);
	byte[] rawkey = keyspec.getKey();
	FileOutputStream out = new FileOutputStream(keyFile);
	out.write(rawkey);
	out.close();
	return skey;
    }
    
    /**
     * generate a pair of keys - public and private, and write them to the files
     * with the names "public.key" and "private.key" 
     * 
     */
    public void generateKeyPair() throws Exception {
	KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA", "SUN");
	SecureRandom random = SecureRandom.getInstance(randomizationAlgorithm,
		"SUN");
	keyGen.initialize(1024, random);
	KeyPair pair = keyGen.generateKeyPair();
	PrivateKey priv = pair.getPrivate();
	PublicKey pub = pair.getPublic();
	byte[] key = pub.getEncoded();
	FileOutputStream keyfos = new FileOutputStream("public.key");
	keyfos.write(key);
	keyfos.close();
	key = priv.getEncoded();
	keyfos = new FileOutputStream("private.key");
	keyfos.write(key);
	keyfos.close();
    }

    /**
     * read the shared key from the file passed as a parameter
     * 
     * @param File keyFile - the file to read the key from
     * @return SecretKey - the read key
     * 
     */
    private static SecretKey readKey(File keyFile) throws Exception {
	DataInputStream in = new DataInputStream(new FileInputStream(keyFile));
	byte[] rawkey = new byte[(int) keyFile.length()];
	in.readFully(rawkey);
	in.close();
	DESKeySpec keyspec = new DESKeySpec(rawkey);
	SecretKeyFactory keyfactory = SecretKeyFactory
		.getInstance(secretKeyAlgorithm);
	return keyfactory.generateSecret(keyspec);
    }
}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway905
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway407
                        if (unionCO != null) {
                            if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                ComplexObject noArrayCO = new ComplexObject();

                                noArrayCO.setObjectName(no1.getObjectName());
                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                noArrayCO.setIsArrayType(true);
                                noArrayCO.getHasComplexObjects().add(unionCO);
                                co.getHasComplexObjects().add(noArrayCO);
                                typeParsed = true;

                            } else {
                                typeParsed = true;
                                co.getHasComplexObjects().add(unionCO);
                            }
                            System.out.println();
                        } else {
                            if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    ComplexObject noArrayCO = new ComplexObject();
                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    ComplexObject noArrayCO_ListNO = new ComplexObject();
                                    noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                    noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO_ListNO.setIsArrayType(true);
                                    noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                    noArrayCO_ListNO.getHasNativeObjects().add(no1);
                                    noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                    co.getHasComplexObjects().add(noArrayCO);
                                    typeParsed = true;

                                } else {
                                    typeParsed = true;
                                    ComplexObject noArrayCO = new ComplexObject();
                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    noArrayCO.getHasNativeObjects().add(no1);
                                    noArrayCO.setIsOptional(no1.isIsOptional());
                                    co.getHasComplexObjects().add(noArrayCO);
                                }
                            } else {
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    ComplexObject noArrayCO = new ComplexObject();

                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    noArrayCO.getHasNativeObjects().add(no1);
                                    co.getHasComplexObjects().add(noArrayCO);
                                    typeParsed = true;

                                } else {
                                    typeParsed = true;
                                    co.getHasNativeObjects().add(no1);
                                }
                            }
                        }

                    } else if (newSimpleOrComplexObjectElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {
FileProjectLine
org\universAAL\samples\lighting\client\LightClient.javauniversAAL Samples Lighting Client (OSGi)53
org\universAAL\ri\gateway\support\android\LightClient.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node54
public class LightClient extends javax.swing.JPanel {
	static private JButton onButton;
	private JTextField percent;
	private JButton scaleButton;
	private JButton getLampsButton;
	static private JList jList1;
	static private JButton offButton;
	

	private AbstractAction Scale;
	private AbstractAction Off;
	private AbstractAction On;
	private AbstractAction GetLamps;
	
	static {
		// Vadim - turn off the logging 
		java.util.logging.Logger.getLogger("sun").setLevel(java.util.logging.Level.OFF);
		java.util.logging.Logger.getLogger("java").setLevel(java.util.logging.Level.OFF);
		java.util.logging.Logger.getLogger("javax").setLevel(java.util.logging.Level.OFF);
	}
	
	// create the GUI 
	public void start(){

		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setSize(500, 400);
		frame.setVisible(true);
		frame.getContentPane().setLayout(null);
		frame.setTitle("Lamp Controller");
		frame.setEnabled(true);
		{
			onButton = new JButton();
			frame.getContentPane().add(onButton);
			onButton.setText("On");
			onButton.setBounds(50, 12, 80, 35);
			onButton.setAction(getOn());
		}
		{
			offButton = new JButton();
			frame.getContentPane().add(offButton);
			offButton.setText("Off");
			offButton.setBounds(160, 12, 80, 35);
			offButton.setAction(getOff());
		}
		{
			scaleButton = new JButton();
			frame.getContentPane().add(scaleButton);
			scaleButton.setText("Scale");
			scaleButton.setBounds(210, 62, 80, 35);
			scaleButton.setAction(getScale());
		}
		
		{
			percent = new JTextField();
			frame.getContentPane().add(percent);
			percent.setText("Percent");
			percent.setBounds(103, 69, 80, 21);
		}
		{
			getLampsButton = new JButton();
			frame.getContentPane().add(getLampsButton);
			getLampsButton.setText("Get Lamps");
			getLampsButton.setBounds(25, 120, 160, 35);
			getLampsButton.setAction(getGetLampsAction());
		}
		{
			ListModel jList1Model = 
				new DefaultComboBoxModel();
			jList1 = new JList();
			frame.getContentPane().add(jList1);
//			frame.getContentPane().add(getScaleButton());
//			frame.getContentPane().add(getPercent());
			jList1.setModel(jList1Model);
			jList1.setBounds(25, 170, 400, 170);
			
		}
	}



	/**
	 * @return
	 */
	private ListModel getLampsListModel() {
		Device[] d = LightingConsumer.getControlledLamps();
	
		String[] lamps = new String[d != null ? d.length:0];
		for(int i =0; i < lamps.length; i++){
			lamps[i] = d[i].getURI();
		}
		
		// Sort the list
		Arrays.sort(lamps);
		
		ListModel jList1Model = 
			new DefaultComboBoxModel(
					lamps);
		return jList1Model;
	}
	

	
	/**
	 * @return
	 */
	private Action getGetLampsAction() {
		if(GetLamps == null) {
			GetLamps = new AbstractAction("Get Lamps", null) {
				public void actionPerformed(final ActionEvent evt) {
FileProjectLine
org\universAAL\ri\gateway\support\android\LightingService1.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node42
org\universAAL\ri\gateway\support\home\LightingService1.javauniversAAL Samples AALSpace Gateway Communicator :: Home Node42
public class LightingService1 extends Lighting {

 // All the static Strings are used to unique identify special functions and
    // objects
    public static final String LIGHTING_SERVER_NAMESPACE = 
    	System.getProperty("org.universAAL.middleware.samples.lighting.server.namespace",
    	"http://ontology.igd.fhg.de/LightingServer.owl#");
    public static final String MY_URI = LIGHTING_SERVER_NAMESPACE
	    + "LightingService";

    static final String SERVICE_GET_CONTROLLED_LAMPS = LIGHTING_SERVER_NAMESPACE
	    + "getControlledLamps";
    static final String SERVICE_GET_LAMP_INFO = LIGHTING_SERVER_NAMESPACE
	    + "getLampInfo";
    static final String SERVICE_TURN_OFF = LIGHTING_SERVER_NAMESPACE
	    + "turnOff";
    static final String SERVICE_TURN_ON = LIGHTING_SERVER_NAMESPACE + "turnOn";

    static final String INPUT_LAMP_URI = LIGHTING_SERVER_NAMESPACE + "lampURI";

    static final String OUTPUT_CONTROLLED_LAMPS = LIGHTING_SERVER_NAMESPACE
	    + "controlledLamps";
    static final String OUTPUT_LAMP_BRIGHTNESS = LIGHTING_SERVER_NAMESPACE
	    + "brightness";
    static final String OUTPUT_LAMP_LOCATION = LIGHTING_SERVER_NAMESPACE
	    + "location";

    static final ServiceProfile[] profiles = new ServiceProfile[4];
    private static Hashtable serverLightingRestrictions = new Hashtable();
    static {
	// we need to register all classes in the ontology for the serialization
	// of the object
	// OntologyManagement.getInstance().register(new SimpleOntology(MY_URI,
	// Lighting.MY_URI));
	OntologyManagement.getInstance().register(Activator.mc, 
		new SimpleOntology(MY_URI, Lighting.MY_URI,
			new ResourceFactory() {
			    public Resource createInstance(final String classURI,
				    final String instanceURI, final int factoryIndex) {
				return new LightingService1(instanceURI);
			    }
			}));

	// Help structures to define property paths used more than once below
	String[] ppControls = new String[] { Lighting.PROP_CONTROLS };
	String[] ppBrightness = new String[] { Lighting.PROP_CONTROLS,
		LightSource.PROP_SOURCE_BRIGHTNESS };

	// The purpose of the rest of this static segment is to describe
	// services that we want to make available. We start with some
	// "class-level restrictions" that are inherent to the underlying
	// service component realized in the subpackage 'unit_impl'. That is, we
	// know from unit_impl.MyLighting.java that
	// 1. it controls lamps
	// 2. that can only be switched on and off

	// Before adding our own restrictions, we first "inherit" the
	// restrictions defined by the superclass
	addRestriction((MergedRestriction) Lighting
		.getClassRestrictionsOnProperty(Lighting.MY_URI,
			Lighting.PROP_CONTROLS).copy(), ppControls,
		serverLightingRestrictions);

	// then, we add a restriction stating that the type of controlled light
	// sources is ElectricLight.lightBulb meaning that light sources
	// controlled by this class of services are all light bulbs
	addRestriction(MergedRestriction.getFixedValueRestriction(
		LightSource.PROP_HAS_TYPE, ElectricLight.lightBulb),
		new String[] { Lighting.PROP_CONTROLS,
			LightSource.PROP_HAS_TYPE }, serverLightingRestrictions);

	// finally, we restrict the values for the brightness of the lights to
	// only 0 and 100 meaning that the controlled light bulbs do not support
	// dimming
	addRestriction(MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			LightSource.PROP_SOURCE_BRIGHTNESS, new Enumeration(
				new Integer[] { new Integer(0),
					new Integer(100) }), 1, 1),
		ppBrightness, serverLightingRestrictions);

	/*
	 * create the service description #1 to be registered with the service
	 * bus
	 */

	// Create the service-object for retrieving the controlled light bulbs
	LightingService1 getControlledLamps = new LightingService1(
		SERVICE_GET_CONTROLLED_LAMPS);
	// Add an output with the given URI (parameter #1) and the following
	// additional info to the service-profile:
	// - it delivers an indefinite number (parameters #3 & #4) of
	//   LightSource (parameter #2) objects
	// - that are those controlled by this class of services (parameter #5)
	// Note that because no filtering has been defined, the output will
	// contain all of the controlled light bulbs
	getControlledLamps.addOutput(OUTPUT_CONTROLLED_LAMPS,
		LightSource.MY_URI, 0, 0, ppControls);
	// we are finished and can add this profile to the list of service
	// profiles to be registered with the service bus
	profiles[0] = getControlledLamps.myProfile;

	/*
	 * create the service description #2 to be registered with the service
	 * bus
	 */

	// Create the service-object for retrieving info about the location and
	// state of each controlled light bulb
	LightingService1 getLampInfo = new LightingService1(
		SERVICE_GET_LAMP_INFO);
	// Add an input with the given URI (parameter #1) and the following
	// additional info to the service-profile:
	// - it will be used to restrict the scope of the process results (cf.
	//   "Filtering" in the method name)
	// - it must be exactly one (parameters #3 & #4) LightSource (parameter
	//   #2) object
	// - that is used to select the controlled light bulb (parameter #5) to
	//   be considered in the scope of the process results
	// Note that 'addFilteringInput' works based on equality, i.e. from all
	// objects addressed by 'ppControls' only those are selected that have
	// the same identity as the value passed for this input parameter
	getLampInfo.addFilteringInput(INPUT_LAMP_URI, LightSource.MY_URI, 1, 1,
		ppControls);
	// one of the results of using this service is the delivery of info
	// about the brightness (parameter #5) of the light bulb in the scope
	// (cf. the input parameter); this info will be a single (parameters #3
	// & #4) number of type integer (parameter #2) that is assigned to an
	// output parameter identifiable by the given URI (parameter 1)
	getLampInfo.addOutput(OUTPUT_LAMP_BRIGHTNESS, TypeMapper
		.getDatatypeURI(Integer.class), 1, 1, ppBrightness);
	// another result of using this service is the delivery of info about
	// the location (parameter #5) of the light bulb in the scope (cf. the
	// input parameter); this info will be a single (parameters #3 & #4)
	// object of type Location (parameter #2) that is assigned to an output
	// parameter identifiable by the given URI (parameter 1)
	getLampInfo.addOutput(OUTPUT_LAMP_LOCATION, Location.MY_URI, 1, 1,
		new String[] { Lighting.PROP_CONTROLS,
			PhysicalThing.PROP_PHYSICAL_LOCATION });
	// we are finished and can add this profile to the list of service
	// profiles to be registered with the service bus
	profiles[1] = getLampInfo.myProfile;

	/*
	 * create the service description #3 to be registered with the service
	 * bus
	 */

	// Create the service-object for turning off each controlled light bulb
	LightingService1 turnOff = new LightingService1(
		SERVICE_TURN_OFF);
	// We need an input parameter identical with the previous one
	turnOff.addFilteringInput(INPUT_LAMP_URI, LightSource.MY_URI, 1, 1,
		ppControls);
	// but the result of using this service is the change of the brightness
	// (parameter #1) of the selected light bulb (cf. the input parameter)
	// to 0 (parameter #2)
	turnOff.myProfile.addChangeEffect(ppBrightness, new Integer(0));
	// we are finished and can add this profile to the list of service
	// profiles to be registered with the service bus
	profiles[2] = turnOff.myProfile;

	/*
	 * create the service description #4 to be registered with the service
	 * bus
	 */

	// Create the service-object for turning on each controlled light bulb
	LightingService1 turnOn = new LightingService1(
		SERVICE_TURN_ON);
	// We need an input parameter identical with the previous one
	turnOn.addFilteringInput(INPUT_LAMP_URI, LightSource.MY_URI, 1, 1,
		ppControls);
	// but the result of using this service is the change of the brightness
	// (parameter #1) of the selected light bulb (cf. the input parameter)
	// to 100 (parameter #2)
	turnOn.myProfile.addChangeEffect(ppBrightness, new Integer(100));
	profiles[3] = turnOn.myProfile;
    }

    private LightingService1(final String uri) {
	super(uri);
    }

    @Override
    public String getClassURI() {
	return MY_URI;
    }
}
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)277
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)275
		    	stopPublisherGUI();
		    }
		});		
		// Main panel
		mainPublisherPanel = createJPanel();
		uaalPublisher.getContentPane().add(mainPublisherPanel,BorderLayout.CENTER);
		// Main text label 		
		uaalPublisherMainLabel = createJLabel("",200,5,350,50,Font.BOLD,24);					
		// Image icon		
		uaalPublisherLogoLabel = new JLabel("");		
		uaalPublisherLogoLabel.setBounds(25,75,218,145);		
		// Check Continua agent selected
		if(device.equals("bloodPressure")) {
			uaalPublisherMainLabel.setText("Blood pressure monitor");		
			uaalPublisherLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(bloodPressureImage)));			
			uaalPublisherBloodPressureSysValueLabel = createJLabel("SYS(mmHg)",250,100,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressureSysValueTextfield = createJTextfield(400,100,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressureDiaValueLabel = createJLabel("DIA(mmHg)",250,150,100,50,Font.PLAIN,16);				
			uaalPublisherBloodPressureDiaValueTextfield = createJTextfield(400,150,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressurePulValueLabel = createJLabel("     BPM",250,200,100,50,Font.PLAIN,16);
			uaalPublisherBloodPressurePulValueTextfield = createJTextfield(400,200,100,50,Font.PLAIN,16);
		} else {
			uaalPublisherMainLabel.setText("Weighing scale");
			uaalPublisherLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(weighingScaleImage)));
			uaalPublisherWeightValueLabel = createJLabel("Weight value",250,100,150,50,Font.PLAIN,16);			
			uaalPublisherWeightValueTextfield = createJTextfield(400,100,100,50,Font.PLAIN,16);			
			uaalPublisherWeightUnitLabel = createJLabel(" Weight unit",250,150,150,50,Font.PLAIN,16);				
			uaalPublisherWeightUnitTextfield = createJTextfield(400,150,100,50,Font.PLAIN,16);
		}
		uaalPublisherButton = createJButton(null,250,275,200,25,"publishData");
		uaalPublisherButton.setText("Publish to uAAL");	
		uaalPublisherButton.setToolTipText("Public measured data to uAAL context bus");
		// Check type of measurement
		if(type.equals("real")) {
			// Run hdp manager and wait for agent values			
			if(device.equals("bloodPressure")) {
				remoteDeviceType = "BloodPressureMonitor";
				instantiateHdpManager();				
			} else {		
				remoteDeviceType = "WeightingScale";
				instantiateHdpManager();				
			}
		} else {
			// Generate random values
			if(device.equals("bloodPressure")) {
				remoteDeviceType = "BloodPressureMonitor";
				uaalPublisherBloodPressureSysValueTextfield.setText(""+getRandomValue(90,119));
				uaalPublisherBloodPressureDiaValueTextfield.setText(""+getRandomValue(60,79));
				uaalPublisherBloodPressurePulValueTextfield.setText(""+getRandomValue(49,198));
			} else {
				remoteDeviceType = "WeightingScale";
				uaalPublisherWeightValueTextfield.setText(""+getRandomValue(50,110));
				uaalPublisherWeightUnitTextfield.setText("kg");
			}
		}
		// Add components to the panel
		mainPublisherPanel.add(uaalPublisherMainLabel);
		mainPublisherPanel.add(uaalPublisherLogoLabel);	
		addJLabelComponent(uaalPublisherBloodPressureSysValueLabel);
		addJLabelComponent(uaalPublisherBloodPressureSysValueTextfield);
		addJLabelComponent(uaalPublisherBloodPressureDiaValueLabel);
		addJLabelComponent(uaalPublisherBloodPressureDiaValueTextfield);
		addJLabelComponent(uaalPublisherBloodPressurePulValueLabel);
		addJLabelComponent(uaalPublisherBloodPressurePulValueTextfield);
		addJLabelComponent(uaalPublisherWeightValueLabel);
		addJLabelComponent(uaalPublisherWeightValueTextfield);
		addJLabelComponent(uaalPublisherWeightUnitLabel);
		addJLabelComponent(uaalPublisherWeightUnitTextfield);
		mainPublisherPanel.add(uaalPublisherButton);
		// Show
		//TODO cambio para review true -> false
		uaalPublisher.setVisible(false);
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service286
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)279
	}

	/** Java methods */	
	// Init method
	public void init() {		
		// Create the objects related to ISO/IEEE 11073 Manager interpreter
		eventmanager = new EventIEEEManager();
		x73manager = new Manager(eventmanager);
		fsm = x73manager.getFSM();
		rmp = x73manager.getMessageProcessor();		
		// First (mandatory) step: DBUS platform should be successfully initialized (otherwise JVM will return fatal errors)
		if(startDbusPlatform()) {			
			// Get and show the object path of the DEFAULT adapter (in GNU/Linux environments should be 'hci0')
			String defaultDevicePathTemp = getLocalBluetoothAdapterPath();
			System.out.println("Default bluetooth adapter path: "+defaultDevicePathTemp);	
			if(defaultDevicePathTemp == null) {				
				System.out.println("Unable to detect bluetooth adapters");
				System.exit(0);
			}	
			// Show the object path of ALL the local bluetooth adapters available at our PC
			System.out.println("List of local bluetooth adapters:");
			showLocalBluetoothAdaptersPath();
			// Show some properties of the DEFAULT adapter: address, name, class, powered, discoverable, pairable, discoverable timeout, pairable timeout,
			// discovering, devices and UUIDs. Check bluetooth manuals to understand the meaning of each
			System.out.println("Local bluetooth properties:");
			showDefaultLocalBluetoothAdaptersProperties();
			// Object path of a remote device
			remoteDevicePath = getRemoteBluetoothAdapterPath(macAddressRemoteDevice);
			System.out.println("Remote bluetooth adapter path: "+remoteDevicePath);	
			// Remote device properties (from its own path)
			System.out.println("Remote device properties (BEFORE):");
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// Prior to start any communication process, we need to ensure that the remote device appears as a 'Trusted' (true value) device (by default  
			// it should appear as false (not trusted) so we need to change this property			
			setPropertyRemoteDevice(remoteDevicePath,trustedProperty,true);			
			// Show the properties of the remote device to verify that the 'Trusted' value has been successfully changed (false -> true)
			System.out.println("Remote device properties (AFTER):");			
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// We need to create an HDP application before any HDP data frames exchange between agents/sources and managers/sinks. IMPORTANT: the app 
			// created will be only valid for the data types and roles passed as arguments. For instance, this HDP channel will be created only if the 
			// remote device is a weight scale acting as a source. So, here we go...
			String hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
			System.out.println("HDP application identifier: "+hdpApplicationIdTemp);
			// HDP app successfully created
			if(hdpApplicationIdTemp != null) {
				// We have the option to destroy/close any HDP application. For security reason, only the owner of this process will be able to destroy it
				destroyHDPApplication(hdpApplicationIdTemp);
				// New HDP application (again)
				hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
				System.out.println("HDP application identifier: "+hdpApplicationIdTemp);				
				// A good practice should be check the availability of the DBUS system (is it still alive?)
				System.out.println("DBUS sytem status: "+(getDbusSystemAvailability()?"Up":"Down"));
				// Remember that those PHD devices with compatible data type and role (weight scales and sources) are able to find our applicattion through 
				// bluetooth connections. At this case: we are a sink so we need to wait for input connections (handle signals). First step: we need to
				// subscribe our application to HDP events in the DBUS system.
				if(!enableHDPListener()) {
					System.out.println("Unable to listen HDP messages inside DBUS");
					System.exit(0);
				} else {
					System.out.println(fsm.getStringTransportState() + " " +fsm.getStringChannelState());					
					waitHDPConnections();
				}				
			}
		} else {
			System.out.println("Ups. Bad news, the monkey who has developed this application ran out of nuts. Try again later...");
		}
	}	

	/* HDP channel available. x073 state machine at connected status */
	public void onChannelConnected() {		
		// Get the object path of the just created HDP channel
		if(remoteDevicePath != null) {
			hdpDataChannelPath = getHDPDataChannelPath(remoteDevicePath);
			System.out.println("HDP channel path: "+hdpDataChannelPath);			
			if(hdpDataChannelPath != null) {				
				// Show HDP main properties
				System.out.println("HDP data channel properties:");
				showHDPDataChannelProperties(hdpDataChannelPath);
				// We need a valid file descriptor prior sending or receiving data bytes between managers and agents. If the file descriptor getted is not
				// valid a -1 value will be returned
				hdpDataChannelFileDescriptor = getHDPDataChannelFileDescriptor(hdpDataChannelPath);
				System.out.println("Number of file descriptor: "+hdpDataChannelFileDescriptor);
				// Notify the connection to the FSM of the Manager
				fsm = x73manager.getFSM();
				fsm.transportActivate();
				System.out.println(fsm.getStringTransportState());
				// Wait until right HDP data frame will be available in our assigned file descriptor
				waitHDPDataFrames(hdpDataChannelFileDescriptor);
			} else 
				System.out.println("HDP channel not available");
		}
	}

	/* HDP data received */
	public void onDataReceived() {
		// Show the received data frame (each byte in hex mode)
		showHDPDataFrame(hdpDataChannelFileDescriptor);
		// Get the number of bytes read (size of the buffer array with VALID data)
		int numberBytes = getSizeHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from native code): "+numberBytes);
		// Get the input data frame as a whole
		hdpReceivedDataFrame = getHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from JAVA): "+hdpReceivedDataFrame.length);
		System.out.println("Answering agent data frames");		
		rmp = x73manager.getMessageProcessor();		
		byte[] response = x73manager.getAPDU(hdpReceivedDataFrame);
		sendHDPDataToDevice(hdpDataChannelFileDescriptor,response);
		if(fsm.getStringChannelState().equals("ASSOCIATED - OPERATING")) {					
			if(remoteDeviceType.equals("BloodPressureMonitor")) {
				if((Measurement.hrMeasurement != null)&&(Measurement.sysMeasurement != null)&&(Measurement.diaMeasurement != null)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2252
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2444
																				.item(k51);
																		if (att.getNodeName()
																				.equalsIgnoreCase(
																						"name")) {
																			// //-System.out.println("\tName: "+att.getNodeValue());
																			attName = att
																					.getNodeValue();
																		} else if (att
																				.getNodeName()
																				.equalsIgnoreCase(
																						"type")) {
																			// //-System.out.println("\tType: "+att.getNodeValue());
																			attType = att
																					.getNodeValue();
																		} else {
																			// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
																			additionalInfo += att
																					.getNodeName()
																					+ ":"
																					+ att.getNodeValue()
																					+ "   ";
																		}
																	}

																	// -ta.append("\n\t\t\t\t-"+attName+" ["+attType+"]  "+additionalInfo);

																	// Find the
																	// Type of
																	// the
																	// attName...
																	// ITERATIVE
																	// PROCESS.........
																	if (attType
																			.startsWith(nativeTypePrefix)) {
																		// EINAI
																		// NATIVE
																		// TYPE
																		NativeObject no1 = new NativeObject();
																		no1.setObjectName(new QName(
																				attName));
																		no1.setObjectType(new QName(
																				attType
																						+ " (NATIVE)"));
																		co.getHasNativeObjects()
																				.add(no1);

																	} else if (attType
																			.startsWith(targetNamespacePrefix)) {
																		// PSAXNW
																		// GIA
																		// TO
																		// TYPE
																		// MESA
																		// STO
																		// definition
																		ComplexObject co1 = new ComplexObject();
																		co1.setObjectName(new QName(
																				attName));
																		co1.setAdditionalInfo(additionalInfo);
																		co1.setObjectType(new QName(
																				attType
																						+ " (COMPLEX)"));

																		String type1 = attType
																				.substring(
																						4,
																						attType.length());
																		if (type1
																				.startsWith("ArrayOf")) {
																			type1 = type1
																					.replaceFirst(
																							"ArrayOf",
																							"");
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		} else if (type1
																				.endsWith("Array")) {
																			type1 = type1
																					.substring(
																							0,
																							type1.length() - 5);
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		} else if (attType
																				.endsWith("[]")) {
																			type1 = type1
																					.replace(
																							"[]",
																							"");
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		}
																		parseTypeIterative(
																				s1,
																				type1,
																				0,
																				false,
																				co1);
																		co.getHasComplexObjects()
																				.add(co1);

																	} else {
																		// PSAXNW
																		// GIA
																		// TO
																		// TYPE
																		// MESA
																		// STO
																		// definition

																		ComplexObject co1 = new ComplexObject();
																		co1.setObjectName(new QName(
																				attName));
																		co1.setAdditionalInfo(additionalInfo);
																		co1.setObjectType(new QName(
																				attType
																						+ " (COMPLEX)"));

																		String type1 = attType
																				.substring(
																						attType.indexOf(":") + 1,
																						attType.length());
																		if (type1
																				.startsWith("ArrayOf")) {
																			type1 = type1
																					.replaceFirst(
																							"ArrayOf",
																							"");
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		} else if (type1
																				.endsWith("Array")) {
																			type1 = type1
																					.substring(
																							0,
																							type1.length() - 5);
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		} else if (attType
																				.endsWith("[]")) {
																			type1 = type1
																					.replace(
																							"[]",
																							"");
																			// -ta.append("  ("+type1+"[])");
																			co1.setObjectType(new QName(
																					type1
																							+ "[]"));
																		}
																		parseTypeIterative(
																				s1,
																				type1,
																				0,
																				false,
																				co1);
																		co.getHasComplexObjects()
																				.add(co1);
																	}
																}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway220
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway424
                            if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    ComplexObject noArrayCO = new ComplexObject();
                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    ComplexObject noArrayCO_ListNO = new ComplexObject();
                                    noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                    noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO_ListNO.setIsArrayType(true);
                                    noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                    noArrayCO_ListNO.getHasNativeObjects().add(no1);
                                    noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                    co.getHasComplexObjects().add(noArrayCO);
                                    typeParsed = true;

                                } else {
                                    typeParsed = true;
                                    ComplexObject noArrayCO = new ComplexObject();
                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    noArrayCO.getHasNativeObjects().add(no1);
                                    noArrayCO.setIsOptional(no1.isIsOptional());
                                    co.getHasComplexObjects().add(noArrayCO);
                                }
                            } else {
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                    ComplexObject noArrayCO = new ComplexObject();

                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    noArrayCO.getHasNativeObjects().add(no1);
                                    co.getHasComplexObjects().add(noArrayCO);
                                    typeParsed = true;

                                } else {
                                    typeParsed = true;
                                    co.getHasNativeObjects().add(no1);
                                }
                            }
                        }

                    } else if (newSimpleOrComplexObjectElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {

                        if (newSimpleOrComplexObjectElement.getSchemaType() == null || newSimpleOrComplexObjectElement.getSchemaType().getName() == null) {
                            System.out.println();
                        }

                        ComplexObject co1 = new ComplexObject();
FileProjectLine
org\universAAL\context\prof\serv\SCalleeProvidedService.javauniversAAL Context Profiling Server236
org\universAAL\context\space\serv\SCalleeProvidedService.javaAAL Space Server442
	profiles[18] = prof18.getProfile();

    }

    // DYNAMIC TYPICAL SERVICE PROFILES
    /**
     * Gives you the 4 typical service profiles of an editor service: Get, Add,
     * Change and Remove. When handling requests in you Callee, you can use the
     * references to services and arguments URIs prepending
     * <code>namespace</code> to SimpleEditor constants.
     * 
     * @param namespace
     *            The namespace of your server, ending with the character #. You
     *            can optionally add some prefix after the # if you use
     *            SimpleEditor more than once in the same Callee.
     * @param ontologyURI
     *            The MY_URI of the class of Service ontology you are going to
     *            implement
     * @param path
     *            The property path from the root of the Service ontology
     *            concept to the exact concept you want to manage
     * @param editedURI
     *            The MY_URI of the class of the concept ontology that you want
     *            to manage, which is at the end of the property path
     * @return An array with the 4 typical service profiles
     */
    public static ServiceProfile[] getServiceProfiles(String namespace,
	    String ontologyURI, String[] path, String editedURI) {

	ServiceProfile[] profiles = new ServiceProfile[4];

	// Get
	Service prof1 = (Service) OntologyManagement.getInstance().getResource(
		ontologyURI, namespace + SRV_GET_X);
	ProcessInput input1 = new ProcessInput(namespace + INP_GET_X);
	input1.setParameterType(editedURI);
	input1.setCardinality(1, 1);
	MergedRestriction restr1 = MergedRestriction.getFixedValueRestriction(
		path[path.length - 1], input1.asVariableReference());
	prof1.addInstanceLevelRestriction(restr1, path);
	prof1.getProfile().addInput(input1);
	ProcessOutput output = new ProcessOutput(namespace + OUT_GET_X);
	output.setParameterType(editedURI);
	prof1.getProfile().addOutput(output);
	prof1.getProfile().addSimpleOutputBinding(output, path);
	prof1.addInstanceLevelRestriction(MergedRestriction
		.getAllValuesRestriction(path[path.length - 1], editedURI),
		path);
	profiles[0] = prof1.getProfile();

	// Add
	Service prof2 = ((Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SRV_ADD_X));
	ProcessInput input2 = new ProcessInput(namespace + INP_ADD_X);
	input2.setParameterType(editedURI);
	input2.setCardinality(1, 1);
	prof2.getProfile().addInput(input2);
	prof2.getProfile().addAddEffect(path, input2.asVariableReference());
	profiles[1] = prof2.getProfile();

	// Change
	Service prof3 = ((Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SRV_CHN_X));
	ProcessInput input3 = new ProcessInput(namespace + INP_CHN_X);
	input3.setCardinality(1, 1);
	input3.setParameterType(editedURI);
	prof3.getProfile().addInput(input3);
	prof3.getProfile().addChangeEffect(path, input3.asVariableReference());
	profiles[2] = prof3.getProfile();

	// Remove
	Service prof4 = ((Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SRV_REM_X));
	ProcessInput input4 = new ProcessInput(namespace + INP_REM_X);
	input4.setParameterType(editedURI);
	input4.setCardinality(1, 1);
	prof4.getProfile().addInput(input4);
	MergedRestriction restr4 = MergedRestriction.getFixedValueRestriction(
		path[path.length - 1], input4.asVariableReference());
	prof4.addInstanceLevelRestriction(restr4, path);
	prof4.getProfile().addRemoveEffect(path);
	profiles[3] = prof4.getProfile();

	return profiles;
    }

    @Override
    public String getClassURI() {
	return MY_URI;
    }
}
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\MyVerticalFlowLayout.javauniversAAL UI Handler Swing Look and Feel Classic251
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\Layout\VerticalFlowLayout.javauniversAAL UI Handler Swing247
    public VerticalFlowLayout(int align, int hgap, int vgap) {
	this.hgap = hgap;
	this.vgap = vgap;
        setAlignment(align);
    }

    /**
     * Gets the alignment for this layout.
     * Possible values are <code>VerticalFlowLayout.TOP</code>,
     * <code>VerticalFlowLayout.BOTTOM</code>, <code>VerticalFlowLayout.CENTER</code>,
     * <code>VerticalFlowLayout.LEADING</code>,
     * or <code>VerticalFlowLayout.TRAILING</code>.
     * @return     the alignment value for this layout
     * @see        org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.VerticalFlowLayout#setAlignment
     * @since      JDK1.1
     */
    public int getAlignment() {
	return newAlign;
    }

    /**
     * Sets the alignment for this layout.
     * Possible values are
     * <ul>
     * <li><code>VerticalFlowLayout.TOP</code>
     * <li><code>VerticalFlowLayout.BOTTOM</code>
     * <li><code>VerticalFlowLayout.CENTER</code>
     * <li><code>VerticalFlowLayout.LEADING</code>
     * <li><code>VerticalFlowLayout.TRAILING</code>
     * </ul>
     * @param      align one of the alignment values shown above
     * @see        #getAlignment()
     * @since      JDK1.1
     */
    public void setAlignment(int align) {
	this.newAlign = align;

        // this.align is used only for serialization compatibility,
        // so set it to a value compatible with the 1.1 version
        // of the class

        switch (align) {
	case LEADING:
            this.align = TOP;
	    break;
	case TRAILING:
            this.align = BOTTOM;
	    break;
        default:
            this.align = align;
	    break;
        }
    }

    /**
     * Gets the horizontal gap between components
     * and between the components and the borders
     * of the <code>Container</code>
     *
     * @return     the horizontal gap between components
     *             and between the components and the borders
     *             of the <code>Container</code>
     * @see        org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.VerticalFlowLayout#setHgap
     * @since      JDK1.1
     */
    public int getHgap() {
	return hgap;
    }

    /**
     * Sets the horizontal gap between components and
     * between the components and the borders of the
     * <code>Container</code>.
     *
     * @param hgap the horizontal gap between components
     *             and between the components and the borders
     *             of the <code>Container</code>
     * @see        org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.VerticalFlowLayout#getHgap
     * @since      JDK1.1
     */
    public void setHgap(int hgap) {
	this.hgap = hgap;
    }

    /**
     * Gets the vertical gap between components and
     * between the components and the borders of the
     * <code>Container</code>.
     *
     * @return     the vertical gap between components
     *             and between the components and the borders
     *             of the <code>Container</code>
     * @see        org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.VerticalFlowLayout#setVgap
     * @since      JDK1.1
     */
    public int getVgap() {
	return vgap;
    }

    /**
     * Sets the vertical gap between components and between
     * the components and the borders of the <code>Container</code>.
     *
     * @param vgap the vertical gap between components
     *             and between the components and the borders
     *             of the <code>Container</code>
     * @see        org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.Layout.VerticalFlowLayout#getVgap
     * @since      JDK1.1
     */
    public void setVgap(int vgap) {
	this.vgap = vgap;
    }

    /**
     * Adds the specified component to the layout.
     * Not used by this class.
     * @param name the name of the component
     * @param comp the component to be added
     */
    public void addLayoutComponent(String name, Component comp) {
    }

    /**
     * Removes the specified component from the layout.
     * Not used by this class.
     * @param comp the component to remove
     * @see       java.awt.Container#removeAll
     */
    public void removeLayoutComponent(Component comp) {
    }

    /**
     * Returns the preferred dimensions for this layout given the 
     * <i>visible</i> components in the specified target container.
     *
     * @param target the container that needs to be laid out
     * @return    the preferred dimensions to lay out the
     *            subcomponents of the specified container
     * @see Container
     * @see #minimumLayoutSize
     * @see       java.awt.Container#getPreferredSize
     */
    public Dimension preferredLayoutSize(Container target) {
      synchronized (target.getTreeLock()) {
	Dimension dim = new Dimension(0, 0);
	int nmembers = target.getComponentCount();
        boolean firstVisibleComponent = true;

	for (int i = 0 ; i < nmembers ; i++) {
	    Component m = target.getComponent(i);
	    if (m.isVisible()) {
		Dimension d = m.getPreferredSize();
		dim.width = Math.max(dim.width, d.width);
                if (firstVisibleComponent) {
                    firstVisibleComponent = false;
                } else {
                    dim.height += vgap;
                }
		dim.height += d.height;
	    }
	}

	Insets insets = target.getInsets();
	dim.width += insets.left + insets.right + hgap*2;
	dim.height += insets.top + insets.bottom + vgap*2;
	return dim;
      }
    }

    /**
     * Returns the minimum dimensions needed to layout the <i>visible</i>
     * components contained in the specified target container.
     * @param target the container that needs to be laid out
     * @return    the minimum dimensions to lay out the
     *            subcomponents of the specified container
     * @see #preferredLayoutSize
     * @see       java.awt.Container
     * @see       java.awt.Container#doLayout
     */
    public Dimension minimumLayoutSize(Container target) {
      synchronized (target.getTreeLock()) {
	Dimension dim = new Dimension(0, 0);
	int nmembers = target.getComponentCount();

	for (int i = 0 ; i < nmembers ; i++) {
	    Component m = target.getComponent(i);
	    if (m.isVisible()) {
		Dimension d = m.getMinimumSize();
		dim.width = Math.max(dim.width, d.width);
		if (i > 0) {
		    dim.height += vgap;
		}
		dim.height += d.height;
	    }
	}
	Insets insets = target.getInsets();
	dim.width += insets.left + insets.right + hgap*2;
	dim.height += insets.top + insets.bottom + vgap*2;
	return dim;
      }
    }

    /**
     * Centers the elements in the specified row, if there is any slack.
     * @param target the component which needs to be moved
     * @param x the x coordinate
     * @param y the y coordinate
     * @param width the width dimensions
     * @param height the height dimensions
     * @param colStart the beginning of the row
     * @param colEnd the the ending of the row
     */
    private void moveComponents(Container target, int x, int y, int width, int height,
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)259
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)337
	    63, // Underscore at decimal 95
	    -9, // Decimal 96
	    26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, // Letters 'a'
								// through 'm'
	    39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, // Letters 'n'
								// through 'z'
	    -9, -9, -9, -9, -9 // Decimal 123 - 127
	    , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128 -
							      // 139
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 -
								// 152
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 -
								// 165
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 -
								// 178
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 -
								// 191
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 -
								// 204
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 -
								// 217
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 -
								// 230
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 -
								// 243
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255
    };

    /*  ******** O R D E R E D B A S E 6 4 A L P H A B E T ******** */

    /**
     * I don't get the point of this technique, but someone requested it, and it
     * is described here: <a
     * href="http://www.faqs.org/qa/rfcc-1940.html">http://
     * www.faqs.org/qa/rfcc-1940.html</a>.
     */
    private final static byte[] _ORDERED_ALPHABET = { (byte) '-', (byte) '0',
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway220
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway925
						if (no1 != null
								&& no1.getAdditionalInfo() != null
								&& no1.getAdditionalInfo().contains(
										"isListType")) {
							if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
								ComplexObject noArrayCO = new ComplexObject();
								noArrayCO.setObjectName(no1.getObjectName());
								noArrayCO.setObjectType(new QName(no1
										.getObjectType().getNamespaceURI(), no1
										.getObjectType().getLocalPart()
										+ "[][]", no1.getObjectType()
										.getPrefix()));
								noArrayCO.setIsArrayType(true);

								ComplexObject noArrayCO_ListNO = new ComplexObject();
								noArrayCO_ListNO.setObjectName(no1
										.getObjectName());
								noArrayCO_ListNO.setObjectType(new QName(no1
										.getObjectType().getNamespaceURI(), no1
										.getObjectType().getLocalPart() + "[]",
										no1.getObjectType().getPrefix()));
								noArrayCO_ListNO.setIsArrayType(true);
								noArrayCO_ListNO.setIsOptional(no1
										.isIsOptional());
								noArrayCO_ListNO.getHasNativeObjects().add(no1);

								noArrayCO.getHasComplexObjects().add(
										noArrayCO_ListNO);
								co.getHasComplexObjects().add(noArrayCO);
								typeParsed = true;

							} else {
								typeParsed = true;
								ComplexObject noArrayCO = new ComplexObject();
								noArrayCO.setObjectName(no1.getObjectName());
								noArrayCO.setObjectType(new QName(no1
										.getObjectType().getNamespaceURI(), no1
										.getObjectType().getLocalPart() + "[]",
										no1.getObjectType().getPrefix()));
								noArrayCO.setIsArrayType(true);
								noArrayCO.getHasNativeObjects().add(no1);
								noArrayCO.setIsOptional(no1.isIsOptional());
								co.getHasComplexObjects().add(noArrayCO);
							}
						} else {
							if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
								ComplexObject noArrayCO = new ComplexObject();

								noArrayCO.setObjectName(no1.getObjectName());
								noArrayCO.setObjectType(new QName(no1
										.getObjectType().getNamespaceURI(), no1
										.getObjectType().getLocalPart() + "[]",
										no1.getObjectType().getPrefix()));
								noArrayCO.setIsArrayType(true);
								noArrayCO.getHasNativeObjects().add(no1);
								co.getHasComplexObjects().add(noArrayCO);
								typeParsed = true;

							} else {
								typeParsed = true;
								co.getHasNativeObjects().add(no1);
							}
						}
						/*
						 * if(newSimpleOrComplexObjectElement!=null&&
						 * newSimpleOrComplexObjectElement.getMaxOccurs()>1){
						 * ComplexObject noArrayCO=new ComplexObject();
						 * noArrayCO.setObjectName(no1.getObjectName());
						 * noArrayCO.setObjectType(new
						 * QName(no1.getObjectType().
						 * getNamespaceURI(),no1.getObjectType()+"[]",
						 * no1.getObjectType().getPrefix()));
						 * noArrayCO.setIsArrayType(true);
						 * noArrayCO.getHasNativeObjects().add(no1);
						 * noArrayCO.setIsOptional(no1.isIsOptional());
						 * co.getHasComplexObjects().add(noArrayCO);
						 * 
						 * }else{ co.getHasNativeObjects().add(no1); }
						 */

						// co.getHasNativeObjects().add(no1);
					}
				} else if (newSimpleOrComplexObjectElement
						.getSchemaType()
						.getClass()
						.toString()
						.contains(
								"org.apache.ws.commons.schema.XmlSchemaComplexType")) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway296
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway507
                        co1.setHasParent(co);
//                        }
                    }
                    if (co.getObjectType() != null && co.getObjectType().getLocalPart().contains("ArrayOfError")) {
                        System.out.println();
                    }
                    if (!typeParsed) {
                        System.out.println("ERROR 1!!!!!!!!!!!!!!!!!! @line ~862");
                        theDefinition.getContainingErrors().add("ERROR 1!!!!!!!!!!!!!!!!!! @line ~862");
                        //System.exit(-1);
                    }
                } else {
                    //MITSOS 22-1-2010 START
                    //if(newSimpleOrComplexObjectElement.getSchemaTypeName()!=null&&
                    //        newSimpleOrComplexObjectElement.getSchemaTypeName().getLocalPart().equals("anyType")){
                    XmlSchemaType newSchemaType = null;
                    if (newSimpleOrComplexObjectElement.getSchemaTypeName() != null) {
                        //try to find schema type
                        newSchemaType = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaType(service,
                                newSimpleOrComplexObjectElement.getSchemaTypeName());
                        if (newSchemaType == null) {
                            newSchemaType = ParsingUtils.parseWSDLschemasInOrderToFindTheSpecificXMLSchemaElement(service,
                                    newSimpleOrComplexObjectElement.getSchemaTypeName());
                        }
                    }
                    if (newSchemaType != null) {
                        //GET SCHEMA TYPE NAME if not found, proceed as before...
                        if (newSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                            NativeObject no1 = new NativeObject();
                            if (newSimpleOrComplexObjectElement.getQName() != null) {
                                no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                            } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                no1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                            } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                no1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                            } else {
                                no1.setObjectName(new QName("UNDEFINED variable name"));
                                theDefinition.getContainingErrors().add("WARNING @line ~583... UNDEFINED Variable name!!!");
                                System.out.println("WARNING @line ~583... UNDEFINED Variable name!!!");
                            }
                            ComplexObject unionCO = SimpleTypesParser.parseSimpleType(null, newSchemaType, no1, theDefinition, service);
                            if (unionCO == null) {
                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                    no1.setIsOptional(true);
                                }
                                if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1 ||
                                        (no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType"))) {
                                    ComplexObject noArrayCO = new ComplexObject();
                                    noArrayCO.setObjectName(no1.getObjectName());
                                    noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                    noArrayCO.setIsArrayType(true);
                                    noArrayCO.getHasNativeObjects().add(no1);
                                    noArrayCO.setIsOptional(no1.isIsOptional());
                                    co.getHasComplexObjects().add(noArrayCO);

                                } else {
                                    co.getHasNativeObjects().add(no1);
                                }
                            } else {
                                ComplexObject co1 = new ComplexObject();
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway574
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway775
										service, extension.getBaseTypeName());
					}
				}

				if (xmlSchemaType != null) {

					if (xmlSchemaType.getClass().getName()
							.contains("XmlSchemaSimpleType")) {
						baseNO = new NativeObject();
						baseNO.setObjectName(new QName("value"));

						ComplexObject unionCO = SimpleTypesParser
								.parseSimpleType(null, xmlSchemaType, baseNO,
										theDefinition, service);
						if (unionCO == null) {
							if (baseNO.getAdditionalInfo() != null
									&& baseNO.getAdditionalInfo().contains(
											"isListType")) {
								System.out.println();
								baseCO = new ComplexObject();
								baseCO.setObjectName(baseNO.getObjectName());
								baseCO.setObjectType(new QName(baseNO
										.getObjectType().getNamespaceURI(),
										baseNO.getObjectType().getLocalPart()
												+ "[]", baseNO.getObjectType()
												.getPrefix()));
								NativeObject no123 = baseNO.cloneTheNO();
								no123.setAdditionalInfo(null);
								baseCO.getHasNativeObjects().add(no123);
								baseCO.setIsArrayType(true);
								baseNO = null;
								co.getHasComplexObjects().add(baseCO);
							} else {
								co.getHasNativeObjects().add(baseNO);
							}
						} else {
							ComplexObject co2 = new ComplexObject();
							co2.setObjectName(baseNO.getObjectName());
							if (xmlSchemaType.getQName() != null) {
								co2.setObjectType(xmlSchemaType.getQName());
							} else {
								System.out.println();
							}
							co2.getHasComplexObjects().add(unionCO);
							co.getHasComplexObjects().add(co2);
						}

					} else if (xmlSchemaType.getClass().getName()
							.contains("XmlSchemaComplexType")) {
						baseCO = new ComplexObject();
						baseCO.setObjectName(new QName("value"));

						ComplexTypesParser.parseComplexType(service, null,
								xmlSchemaType, baseCO, theDefinition, false);
						for (int i = 0; i < baseCO.getHasNativeObjects().size(); i++) {
							co.getHasNativeObjects().add(
									baseCO.getHasNativeObjects().get(i));
						}
						for (int i = 0; i < baseCO.getHasComplexObjects()
								.size(); i++) {
							co.getHasComplexObjects().add(
									baseCO.getHasComplexObjects().get(i));
						}
					}

				} else {

					Object res123 = ParsingUtils
							.tryToFindAndParseAttributeForSpecificObject(
									theDefinition, service,
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1557
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1654
						try {
							String inPartName = part.getName();
							// -ta.append("\n\n\t\t\tName: "+inPartName);
							QName inPartType = part.getTypeName();
							String s11111 = inPartType.getLocalPart();
							// -ta.append("\n\t\t\tType: "+inPartType);

							String stringToAppendForArray = null;

							if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().endsWith(
											"Array")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart().substring(
												0,
												inPartType.getLocalPart()
														.length() - 5) + "[] )";
							} else if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().startsWith(
											"ArrayOf")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart()
												.replaceFirst("ArrayOf", "")
										+ "[] )";
							} else if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().endsWith("[]")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart() + " )";
							}
							if (stringToAppendForArray != null) {
								// -ta.append(stringToAppendForArray);
							}

							NativeObject no = null;
							ComplexObject co = null;

							if (stringToAppendForArray == null) {// DEN EINAI
																	// ARRAY
								if (inPartType.getNamespaceURI().equals(
										namespaces.get(nativeTypePrefix
												.replace(":", "")))) {
									// IT IS A NATIVE TYPE
									no = new NativeObject();
									no.setObjectName(new QName(inPartName));
									no.setObjectType(new QName(inPartType
											.getLocalPart() + " (NATIVE)"));
									mitsosOperationOutput
											.getHasNativeOrComplexObjects()
											.add(no);
								} else {
									// IT IS A COMPLEX TYPE
									co = new ComplexObject();
									co.setObjectName(new QName(inPartName));
									co.setObjectType(new QName(inPartType
											.getLocalPart() + " (COMPLEX)"));
									mitsosOperationOutput
											.getHasNativeOrComplexObjects()
											.add(co);
								}
							} else {
								if (inPartType.getNamespaceURI().equals(
										namespaces.get(nativeTypePrefix
												.replace(":", "")))) {
									// IT IS A NATIVE TYPE
									no = new NativeObject();
									no.setObjectName(new QName(inPartName));
									no.setObjectType(new QName(
											stringToAppendForArray + " (ARRAY)"));
									mitsosOperationOutput
											.getHasNativeOrComplexObjects()
											.add(no);
								} else {
									// IT IS A COMPLEX TYPE
									co = new ComplexObject();
									co.setObjectName(new QName(inPartName));
									co.setObjectType(new QName(
											stringToAppendForArray + " (ARRAY)"));
									mitsosOperationOutput
											.getHasNativeOrComplexObjects()
											.add(co);
								}
							}

							// //-System.out.println(inPartName);
							// //-System.out.println(part.getTypeName().getLocalPart());
							// ////-System.out.println(part.getElementName().getLocalPart());

							parseType(definition, inPartType, no, co);
						} catch (Exception e) {
FileProjectLine
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test131
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)140
		setVisible(true);
	}	
	
	/** Create components */
	public void createComponents() {
		// Label (uaal image icon)
		uaalLogoLabel = new JLabel("");
		uaalLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(uaalLogoImage)));
		uaalLogoLabel.setBounds(75,10,300,81);
		mainPanel.add(uaalLogoLabel);
		// Radio buttons group
		radiobuttonPanel = new JPanel();	
		radiobuttonPanel.setLayout(new GridLayout(1,0));
		radiobuttonPanel.setBounds(20,100,400,50);		
		radioButtonsGroup = new ButtonGroup();
		realMeasurementButton = createJRadioButton("Real measurement");	
		realMeasurementButton.setToolTipText("Continua devices should be paired first");
		simulatedMeasurementButton = createJRadioButton("Simulated measurement");
		simulatedMeasurementButton.setToolTipText("Random values will be published to uAAL context bus (Continua devices not required)");
		radiobuttonPanel.add(realMeasurementButton);
		radiobuttonPanel.add(simulatedMeasurementButton);
		mainPanel.add(radiobuttonPanel);
		// Buttons
		bloodPressureButton = createJButton(bloodPressureImage,214,160,218,145,"bloodPressure");		
		mainPanel.add(bloodPressureButton);		
		weighingScaleButton = createJButton(weighingScaleImage,18,154,178,157,"weighingScale");			
		mainPanel.add(weighingScaleButton);		
	}	
	
	/** Create JPanel */
	public JPanel createJPanel() {
		JPanel output = null;
		output = new JPanel();	
		output.setLayout(null);
		output.setBorder(new EmptyBorder(5,5,5,5));	
		output.setBackground(Color.WHITE);
		return output;
	}
	
	/** Create JButtons */
	public JButton createJButton(String image,int x,int y,int weight,int height,String name) {
		JButton output = null;
		output = new JButton("");
		output.setBackground(Color.WHITE);
		if(image != null)
			output.setIcon(new ImageIcon(ctx.getBundle().getResource(image)));
		output.setBounds(x,y,weight,height);
		output.setActionCommand(name);
		output.addActionListener(this);
		return output;
	}	
	
	/** Create JRadioButtons */
	public JRadioButton createJRadioButton(String name) {
		JRadioButton output = null;
		output = new JRadioButton(name,false);
		output.setActionCommand(name);
		output.setBackground(Color.WHITE);
		output.addActionListener(this);
		radioButtonsGroup.add(output);
		return output;
	}
    
	/** Close GUI frame */
    public void closeGUI(){	     	
    	dispose();		
    }

    /** Action listener for radio buttons and jbuttons */
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("bloodPressure")) {
			// Blood pressure device
			if(realMeasurementButton.isSelected()) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway543
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway555
	}

	public static Vector parseInvocationOutput(MessageContext inMsgCtx,
			WSOperation theParsedOperation) {
		Vector result = new Vector();
		Vector parsedOperationOutputsVector = theParsedOperation.getHasOutput()
				.getHasNativeOrComplexObjects();
		SOAPEnvelope response = inMsgCtx.getEnvelope();
		if (response != null) {
			// System.out.println(response);
			// System.out.println();
			if (response.getBody() != null) {
				SOAPBody body = response.getBody();
				if (body.getChildren() != null) {
					Iterator iter1 = body.getChildren();
					while (iter1.hasNext()) {
						Object childObj = iter1.next();
						if (childObj
								.getClass()
								.getName()
								.contains(
										"org.apache.axiom.om.impl.llom.OMElementImpl")) {
							org.apache.axiom.om.impl.llom.OMElementImpl elem1 = (org.apache.axiom.om.impl.llom.OMElementImpl) childObj;
							System.out.println(elem1.getLocalName());
							if (elem1.getLocalName().endsWith("Response")) {
								Iterator iter2 = elem1.getChildren();
								while (iter2.hasNext()) {
									org.apache.axiom.om.impl.llom.OMElementImpl elem2 = (org.apache.axiom.om.impl.llom.OMElementImpl) iter2
											.next();
									System.out.println("### "
											+ elem2.getLocalName());
									System.out.println(elem2.getText());
									Iterator parsedOperationOutputsIter = parsedOperationOutputsVector
											.iterator();
									while (parsedOperationOutputsIter.hasNext()) {
										Object parsedOutObj = parsedOperationOutputsIter
												.next();
										System.out.println(parsedOutObj
												.getClass().getName());
										if (parsedOutObj.getClass().getName()
												.contains("NativeObject")) {
											NativeObject no1 = (NativeObject) parsedOutObj;
											if (no1.getObjectName()
													.getLocalPart()
													.equals(elem2
															.getLocalName())) {
												no1.setHasValue(elem2
														.getTrimmedText());
												result.add(no1);
												return result;
											}
										} else {
											System.out
													.println("ERROR! CANNOT parse ComplexType output yet...");
										}
									}
								}
							} else {
								System.out
										.println("ERROR @ parsing output 2!!!");
							}

						} else {
							System.out.println("ERROR @ parsing output 1!!!");
						}

					}
				}
			}
		}

		return result;

	}
}
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)262
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)421
	    -9, -9, -9, -9, -9 // Decimal 123 - 127
	    , -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 128
								  // - 139
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 140 -
								// 152
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 153 -
								// 165
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 166 -
								// 178
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 -
								// 191
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 -
								// 204
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 -
								// 217
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 -
								// 230
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 -
								// 243
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255
    };

    /*  ******** D E T E R M I N E W H I C H A L H A B E T ******** */

    /**
     * Returns one of the _SOMETHING_ALPHABET byte arrays depending on the
     * options specified. It's possible, though silly, to specify ORDERED
     * <b>and</b> URLSAFE in which case one of them will be picked, though there
     * is no guarantee as to which one will be picked.
     */
    private final static byte[] getAlphabet(int options) {
FileProjectLine
org\universAAL\samples\lighting\server\unit_impl\MyLighting.javauniversAAL Samples Lighting Server (OSGi)34
org\universAAL\ri\gateway\support\home\MyLighting.javauniversAAL Samples AALSpace Gateway Communicator :: Home Node33
public class MyLighting {
    private class Lamp {
	String loc;
	boolean isOn;

	Lamp(String loc, boolean isOn) {
	    this.loc = loc;
	    this.isOn = isOn;
	}
    }

    private Lamp[] myLampDB = new Lamp[] { new Lamp("loc1", false),
	    new Lamp("loc2", false), new Lamp("loc3", false),
	    new Lamp("loc4", false) };

    private ArrayList listeners = new ArrayList();

    public MyLighting() {
    }

    public void addListener(LampStateListener l) {
	listeners.add(l);
    }

    public int[] getLampIDs() {
	int[] ids = new int[myLampDB.length];
	for (int i = 0; i < myLampDB.length; i++)
	    ids[i] = i;
	return ids;
    }

    public String getLampLocation(int lampID) {
	return myLampDB[lampID].loc;
    }

    public boolean isOn(int lampID) {
	return myLampDB[lampID].isOn;
    }

    public void removeListener(LampStateListener l) {
	listeners.remove(l);
    }

    public void turnOff(int lampID) {
	if (myLampDB[lampID].isOn) {
	    myLampDB[lampID].isOn = false;
	    LogUtils.logInfo(Activator.mc, MyLighting.class, "turnOff",
		    new Object[] { "Lamp in ", myLampDB[lampID].loc,
			    " turned off!" }, null);
	    for (Iterator i = listeners.iterator(); i.hasNext();)
		((LampStateListener) i.next()).lampStateChanged(lampID,
			myLampDB[lampID].loc, false);
	}
    }

    public void turnOn(int lampID) {
	if (!myLampDB[lampID].isOn) {
	    myLampDB[lampID].isOn = true;
	    LogUtils.logInfo(Activator.mc, MyLighting.class, "turnOn",
		    new Object[] { "Lamp in ", myLampDB[lampID].loc,
			    " turned on!" }, null);
	    for (Iterator i = listeners.iterator(); i.hasNext();)
		((LampStateListener) i.next()).lampStateChanged(lampID,
			myLampDB[lampID].loc, true);
	}
    }
}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Feature.javauniversAAL Middleware Interfaces (Core)67
org\universAAL\middleware\deploymanager\uapp\model\Feature.javauniversAAL Middleware XSD Schemas66
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "feature", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "detailsOrConfigOrConfigfile"
})
public class Feature implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElements({
        @XmlElement(name = "details", type = String.class),
        @XmlElement(name = "config", type = Config.class),
        @XmlElement(name = "configfile", type = ConfigFile.class),
        @XmlElement(name = "feature", type = Dependency.class),
        @XmlElement(name = "bundle", type = Bundle.class)
    })
    protected List<Serializable> detailsOrConfigOrConfigfile;
    @XmlAttribute(name = "name", required = true)
    protected String name;
    @XmlAttribute(name = "version")
    protected String version;
    @XmlAttribute(name = "description")
    protected String description;
    @XmlAttribute(name = "resolver")
    protected String resolver;

    /**
     * Gets the value of the detailsOrConfigOrConfigfile property.
     *
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the detailsOrConfigOrConfigfile property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getDetailsOrConfigOrConfigfile().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * {@link Config }
     * {@link ConfigFile }
     * {@link Dependency }
     * {@link Bundle }
     *
     *
     */
    public List<Serializable> getDetailsOrConfigOrConfigfile() {
        if (detailsOrConfigOrConfigfile == null) {
            detailsOrConfigOrConfigfile = new ArrayList<Serializable>();
        }
        return this.detailsOrConfigOrConfigfile;
    }

    public boolean isSetDetailsOrConfigOrConfigfile() {
        return ((this.detailsOrConfigOrConfigfile!= null)&&(!this.detailsOrConfigOrConfigfile.isEmpty()));
    }

    public void unsetDetailsOrConfigOrConfigfile() {
        this.detailsOrConfigOrConfigfile = null;
    }

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

    /**
     * Gets the value of the version property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getVersion() {
        if (version == null) {
            return "0.0.0";
        } else {
            return version;
        }
    }

    /**
     * Sets the value of the version property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setVersion(String value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

    /**
     * Gets the value of the description property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setDescription(String value) {
        this.description = value;
    }

    public boolean isSetDescription() {
        return (this.description!= null);
    }

    /**
     * Gets the value of the resolver property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getResolver() {
        return resolver;
    }

    /**
     * Sets the value of the resolver property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setResolver(String value) {
        this.resolver = value;
    }

    public boolean isSetResolver() {
        return (this.resolver!= null);
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1663
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1790
					if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("Array")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().substring(0,
										inPartType.getLocalPart().length() - 5)
								+ "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().startsWith("ArrayOf")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().replaceFirst(
										"ArrayOf", "") + "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("[]")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart() + " )";
					}
					if (stringToAppendForArray != null) {
						// -ta.append(stringToAppendForArray);
					}

					NativeObject no = null;
					ComplexObject co = null;

					if (stringToAppendForArray == null) {// DEN EINAI ARRAY
						if (inPartType.getNamespaceURI().equals(
								namespaces.get(nativeTypePrefix
										.replace(":", "")))) {
							// IT IS A NATIVE TYPE
							no = new NativeObject();
							no.setObjectName(new QName(inPartName));
							no.setObjectType(new QName(inPartType
									.getLocalPart() + " (NATIVE)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(no);
						} else {
							// IT IS A COMPLEX TYPE
							co = new ComplexObject();
							co.setObjectName(new QName(inPartName));
							co.setObjectType(new QName(inPartType
									.getLocalPart() + " (COMPLEX)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(co);
						}
					} else {
						if (inPartType.getNamespaceURI().equals(
								namespaces.get(nativeTypePrefix
										.replace(":", "")))) {
							// IT IS A NATIVE TYPE
							no = new NativeObject();
							no.setObjectName(new QName(inPartName));
							no.setObjectType(new QName(stringToAppendForArray
									+ " (ARRAY)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(no);
						} else {
							// IT IS A COMPLEX TYPE
							co = new ComplexObject();
							co.setObjectName(new QName(inPartName));
							co.setObjectType(new QName(stringToAppendForArray
									+ " (ARRAY)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(co);
						}
					}

					// //-System.out.println(inPartName);
					// //-System.out.println(part.getTypeName().getLocalPart());
					// ////-System.out.println(part.getElementName().getLocalPart());

					parseType(definition, inPartType, no, co);

				} catch (Exception e) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1566
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1790
					if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("Array")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().substring(0,
										inPartType.getLocalPart().length() - 5)
								+ "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().startsWith("ArrayOf")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().replaceFirst(
										"ArrayOf", "") + "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("[]")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart() + " )";
					}
					if (stringToAppendForArray != null) {
						// -ta.append(stringToAppendForArray);
					}

					NativeObject no = null;
					ComplexObject co = null;

					if (stringToAppendForArray == null) {// DEN EINAI ARRAY
						if (inPartType.getNamespaceURI().equals(
								namespaces.get(nativeTypePrefix
										.replace(":", "")))) {
							// IT IS A NATIVE TYPE
							no = new NativeObject();
							no.setObjectName(new QName(inPartName));
							no.setObjectType(new QName(inPartType
									.getLocalPart() + " (NATIVE)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(no);
						} else {
							// IT IS A COMPLEX TYPE
							co = new ComplexObject();
							co.setObjectName(new QName(inPartName));
							co.setObjectType(new QName(inPartType
									.getLocalPart() + " (COMPLEX)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(co);
						}
					} else {
						if (inPartType.getNamespaceURI().equals(
								namespaces.get(nativeTypePrefix
										.replace(":", "")))) {
							// IT IS A NATIVE TYPE
							no = new NativeObject();
							no.setObjectName(new QName(inPartName));
							no.setObjectType(new QName(stringToAppendForArray
									+ " (ARRAY)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(no);
						} else {
							// IT IS A COMPLEX TYPE
							co = new ComplexObject();
							co.setObjectName(new QName(inPartName));
							co.setObjectType(new QName(stringToAppendForArray
									+ " (ARRAY)"));
							mitsosOperationOutput
									.getHasNativeOrComplexObjects().add(co);
						}
					}

					// //-System.out.println(inPartName);
					// //-System.out.println(part.getTypeName().getLocalPart());
					// ////-System.out.println(part.getElementName().getLocalPart());

					parseType(definition, inPartType, no, co);

				} catch (Exception e) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway956
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway417
			NodeList elementNodesList = impSchElem
					.getElementsByTagName("element");
			NodeList complexTypeNodesList = impSchElem
					.getElementsByTagName("complexType");
			NodeList simpleTypeNodesList = impSchElem
					.getElementsByTagName("simpleType");
			NodeList groupTypeNodesList = impSchElem
					.getElementsByTagName("group");
			// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength()+" "
			// +groupTypeNodesList.getLength());

			if (elementNodesList != null && complexTypeNodesList != null
					&& simpleTypeNodesList != null
					&& groupTypeNodesList != null) {
				if (elementNodesList.getLength() == 0
						&& complexTypeNodesList.getLength() == 0
						&& simpleTypeNodesList.getLength() == 0
						&& groupTypeNodesList.getLength() == 0) {
					elementNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "element");
					complexTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "complexType");
					simpleTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "simpleType");
					groupTypeNodesList = impSchElem
							.getElementsByTagName(MitsosParser.nativeTypePrefix
									+ "group");
					// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength());

					if (elementNodesList.getLength() == 0
							&& complexTypeNodesList.getLength() == 0
							&& simpleTypeNodesList.getLength() == 0
							&& groupTypeNodesList.getLength() == 0) {
						Vector xmlSchemaKeys = new Vector();
						Set entries = MitsosParser.namespaces.entrySet();
						Iterator iter1 = entries.iterator();
						while (iter1.hasNext()) {
							Entry entry = (Entry) iter1.next();
							if (entry.getValue() != null
									&& entry.getValue().equals(
											"http://www.w3.org/2001/XMLSchema")) {
								xmlSchemaKeys.add(entry.getKey());
							}
						}

						if (xmlSchemaKeys.size() > 0) {
							for (int i = 0; i < xmlSchemaKeys.size(); i++) {
								String ns = (String) xmlSchemaKeys.get(i);
								String prefix = ns + ":";

								elementNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "element");
								complexTypeNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "complexType");
								simpleTypeNodesList = impSchElem
										.getElementsByTagName(prefix
												+ "simpleType");
								groupTypeNodesList = impSchElem
										.getElementsByTagName(prefix + "group");
								// -System.out.println(elementNodesList.getLength()+" "+complexTypeNodesList.getLength()+" "+simpleTypeNodesList.getLength());

								if (elementNodesList.getLength() != 0
										|| complexTypeNodesList.getLength() != 0
										|| simpleTypeNodesList.getLength() != 0
										|| groupTypeNodesList.getLength() != 0) {
									break;
								}

							}
						}
					}

					// importNodesList=e1.getElementsByTagName(MitsosParser.nativeTypePrefix+"import");
					// includeNodesList=e1.getElementsByTagName(MitsosParser.nativeTypePrefix+"include");
				}
			}

			if (elementNodesList != null) {
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Feature.javauniversAAL Middleware Interfaces (Core)68
org\universAAL\middleware\connectors\deploy\karaf\model\Feature.javauniversAAL Middleware XSD Schemas67
@XmlType(name = "feature", propOrder = {
    "detailsOrConfigOrConfigfile"
})
public class Feature implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElements({
        @XmlElement(name = "details", type = String.class),
        @XmlElement(name = "config", type = Config.class),
        @XmlElement(name = "configfile", type = ConfigFile.class),
        @XmlElement(name = "feature", type = Dependency.class),
        @XmlElement(name = "bundle", type = Bundle.class)
    })
    protected List<Serializable> detailsOrConfigOrConfigfile;
    @XmlAttribute(name = "name", required = true)
    protected String name;
    @XmlAttribute(name = "version")
    protected String version;
    @XmlAttribute(name = "description")
    protected String description;
    @XmlAttribute(name = "resolver")
    protected String resolver;

    /**
     * Gets the value of the detailsOrConfigOrConfigfile property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the detailsOrConfigOrConfigfile property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getDetailsOrConfigOrConfigfile().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * {@link Config }
     * {@link ConfigFile }
     * {@link Dependency }
     * {@link Bundle }
     * 
     * 
     */
    public List<Serializable> getDetailsOrConfigOrConfigfile() {
        if (detailsOrConfigOrConfigfile == null) {
            detailsOrConfigOrConfigfile = new ArrayList<Serializable>();
        }
        return this.detailsOrConfigOrConfigfile;
    }

    public boolean isSetDetailsOrConfigOrConfigfile() {
        return ((this.detailsOrConfigOrConfigfile!= null)&&(!this.detailsOrConfigOrConfigfile.isEmpty()));
    }

    public void unsetDetailsOrConfigOrConfigfile() {
        this.detailsOrConfigOrConfigfile = null;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

    /**
     * Gets the value of the version property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVersion() {
        if (version == null) {
            return "0.0.0";
        } else {
            return version;
        }
    }

    /**
     * Sets the value of the version property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVersion(String value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

    /**
     * Gets the value of the description property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDescription(String value) {
        this.description = value;
    }

    public boolean isSetDescription() {
        return (this.description!= null);
    }

    /**
     * Gets the value of the resolver property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getResolver() {
        return resolver;
    }

    /**
     * Sets the value of the resolver property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setResolver(String value) {
        this.resolver = value;
    }

    public boolean isSetResolver() {
        return (this.resolver!= null);
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway131
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway345
						co1.hasExtendedObjects.add(extCO);
					} else {// NativeObject
						NativeObject inExtNO = (NativeObject) obj;
						NativeObject extNO = inExtNO.cloneTheNO();
						co1.hasExtendedObjects.add(extNO);
					}
				}

				newCO.hasComplexObjects.add(co1);
				System.out.println();

			} else {
				ComplexObject co1 = co.cloneTheCO();
				newCO.hasComplexObjects.add(co1);
			}
		}

		newCO.hasNativeObjects = new Vector();
		Iterator iter2 = this.hasNativeObjects.iterator();
		while (iter2.hasNext()) {
			NativeObject no = (NativeObject) iter2.next();
			NativeObject no1 = no.cloneTheNO();
			newCO.hasNativeObjects.add(no1);
		}

		newCO.hasExtendedObjects = new Vector();
		Iterator iter3 = this.hasExtendedObjects.iterator();
		while (iter3.hasNext()) {
			Object obj = iter3.next();
			if (obj.getClass().getName().indexOf("NativeObject") > -1) {
				NativeObject no = (NativeObject) obj;
				no.setHasParent(this);
				NativeObject no1 = no.cloneTheNO();
				newCO.hasExtendedObjects.add(no1);
			} else if (obj.getClass().getName().indexOf("ComplexObject") > -1) {
				ComplexObject co = (ComplexObject) obj;
				co.setHasParent(this);
				if (checkIfCOhasParentTheSameCO(co)) {
					ComplexObject co1 = new ComplexObject();
					co1.objectName = new QName(co.objectName.getNamespaceURI(),
							co.objectName.getLocalPart(),
							co.objectName.getPrefix());
					co1.objectType = new QName(co.objectType.getNamespaceURI(),
							co.objectType.getLocalPart(),
							co.objectType.getPrefix());
					co1.hasComplexObjects = new Vector();
					co1.hasNativeObjects = new Vector();
					co1.hasExtendedObjects = new Vector();

					co1.isInput = co.isInput;
					co1.hasParent = co.hasParent;
					co1.isAbstract = co.isAbstract;
					co1.isArrayType = co.isArrayType;

					co1.additionalInfo = co.additionalInfo;
FileProjectLine
org\universAAL\context\che\database\impl\SesameBackendCrdClc2Cnf.javauniversAAL Context CHE - Module for Sesame store with cardinality96
org\universAAL\context\che\database\impl\SesameBackendCrdClcCnf.javauniversAAL Context CHE - Module for Sesame store with cardinality96
    public SesameBackendCrdClcCnf(int confidence) {
	super();
	this.setThreshold(confidence);
    }

    @Override
    synchronized public void storeEvent(ContextEvent e) {
	try {
	    RepositoryConnection con = myRepository.getConnection();
	    try {
		log.debug("storeEvent",
			"Adding event to store, if enough confidence");
		Integer conf = e.getConfidence();
		if (conf != null) {
		    if (conf.intValue() < threshold) {
			TurtleParser sesameParser = new TurtleParser();
			StatementCollector stHandler = new StatementCollector();
			sesameParser.setRDFHandler(stHandler);
			sesameParser.parse(
				new StringReader(uAALParser.serialize(e)),
				e.getURI());
			Iterator<Statement> sts = stHandler.getStatements()
				.iterator();
			while (sts.hasNext()) {
			    Statement st = sts.next();
			    if (st.getSubject().stringValue()
				    .equals(e.getURI())) {
				con.add(st);
				// store only stmts having event as subject
			    }
			}
			log.info("storeEvent",
				"CHe: Stored a Context Event with"
					+ " low Confidence: Not reified.");
		    } else {
			con.add(new StringReader(uAALParser.serialize(e)),
				e.getURI(), RDFFormat.TURTLE);
			log.info("storeEvent", "CHe: Stored a Context Event"
				+ " with high Confidence");
		    }
		} else { // TODO: What to do if events have no confidence?
		    con.add(new StringReader(uAALParser.serialize(e)),
			    e.getURI(), RDFFormat.TURTLE);
		    log.info("storeEvent",
			    "CHe: Stored a Context Event without Confidence");
		}
		log.debug("storeEvent", "Successfully added event to store");
	    } catch (IOException exc) {
		log.error("storeEvent",
			"Error trying to add event to the store. "
				+ "In older versions this usually"
				+ " happened because of the underlying"
				+ " connection closing due to inactivity"
				+ ", but now it is because: {}", exc);
		exc.printStackTrace();
	    } finally {
		con.close();
	    }
	} catch (OpenRDFException exc) {
	    log.error("storeEvent",
		    "Error trying to get connection to store: {}", exc);
	    exc.printStackTrace();
	}
    }

    /**
     * Get the confidence threshold.
     * 
     * @return Confidence.
     */
    public int getThreshold() {
	return threshold;
    }

    /**
     * Set confidence threshold.
     * 
     * @param threshold
     *            0 to 100.
     */
    public void setThreshold(int thr) {
	if (threshold < 100) {
	    this.threshold = thr;
	} else {
	    this.threshold = 100;
	}

    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway680
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway888
						.getAttributes();
				Iterator containedObjectsIter = ctCollection.getIterator();
				while (containedObjectsIter.hasNext()) {
					Object obj = containedObjectsIter.next();
					try {
						if (obj.getClass()
								.getName()
								.equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
							org.apache.ws.commons.schema.XmlSchemaAttribute objectXMLSchemaAttribute = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;

							Object res1 = AdditionalTypesParser
									.parseXmlSchemaAttribute(
											objectXMLSchemaAttribute, service,
											theDefinition);
							if (res1 != null) {
								if (res1.getClass().getName()
										.contains("NativeObject")) {
									NativeObject no12 = (NativeObject) res1;
									// System.out.println(no12.objectName);
									co.getHasNativeObjects().add(no12);
								} else if (res1.getClass().getName()
										.contains("ComplexObject")) {
									ComplexObject co12 = (ComplexObject) res1;
									// System.out.println(co12.objectName);
									co.getHasComplexObjects().add(co12);
								}
							}
						} else if (obj
								.getClass()
								.getName()
								.contains(
										"org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
							System.out.println();
							ComplexObject co1 = new ComplexObject();
							AdditionalTypesParser
									.parseXmlSchemaAttributeGroupRefElement(
											service,
											(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
											co1, theDefinition);

							if (co1 != null) {
								for (int i = 0; i < co1.getHasComplexObjects()
										.size(); i++) {
									co.getHasComplexObjects().add(
											co1.getHasComplexObjects().get(i));
								}
								for (int i = 0; i < co1.getHasNativeObjects()
										.size(); i++) {
									co.getHasNativeObjects().add(
											co1.getHasNativeObjects().get(i));
								}
							} else {
								System.out.println();
							}

						} else {
							System.out.println();
						}

						/*
						 * boolean typeParsed=false;
						 * if(objectXMLSchemaAttribute.
						 * getSchemaType().getClass().toString().contains(
						 * "org.apache.ws.commons.schema.XmlSchemaSimpleType")){
						 * NativeObject no1=new NativeObject();
						 * parseXmlSchemaAttribute(objectXMLSchemaAttribute);
						 * typeParsed=true; co.hasNativeObjects.add(no1); }else
						 * if
						 * (objectXMLSchemaAttribute.getSchemaType().getClass()
						 * .toString().contains(
						 * "org.apache.ws.commons.schema.XmlSchemaComplexType"
						 * )){ ComplexObject co1=new ComplexObject();
						 * //parseComplexType(service, objectXMLSchemaElement,
						 * null, co1); typeParsed=true;
						 * co.getHasComplexObjects().add(co1); }
						 * 
						 * if(!typeParsed){
						 * System.out.println("ERROR 1!!!!!!!!!!!!!!!!!!");
						 * System.exit(-1); }
						 */
					} catch (Exception e) {
						theDefinition.getContainingErrors().add(e.toString());
						e.printStackTrace();
						// System.exit(-1);
					}
				}

				// System.out.println("SIMPLE CONTENT OK");

				// ComplexObject baseCO=new ComplexObject();
				// baseCO.setObjectName(new QName("baseCO"));
			} catch (Exception e) {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)479
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway450
    } // end usage

    /*  ******** E N C O D I N G M E T H O D S ******** */

    /**
     * Encodes up to the first three bytes of array <var>threeBytes</var> and
     * returns a four-byte array in Base64 notation. The actual number of
     * significant bytes in your array is given by <var>numSigBytes</var>. The
     * array <var>threeBytes</var> needs only be as big as
     * <var>numSigBytes</var>. Code can reuse a byte array by passing a
     * four-byte array as <var>b4</var>.
     * 
     * @param b4
     *            A reusable byte array to reduce array instantiation
     * @param threeBytes
     *            the array to convert
     * @param numSigBytes
     *            the number of significant bytes in your array
     * @return four byte array in Base64 notation.
     * @since 1.5.1
     */
    private static byte[] encode3to4(byte[] b4, byte[] threeBytes,
	    int numSigBytes, int options) {
	encode3to4(threeBytes, 0, numSigBytes, b4, 0, options);
	return b4;
    } // end encode3to4

    /**
     * <p>
     * Encodes up to three bytes of the array <var>source</var> and writes the
     * resulting four Base64 bytes to <var>destination</var>. The source and
     * destination arrays can be manipulated anywhere along their length by
     * specifying <var>srcOffset</var> and <var>destOffset</var>. This method
     * does not check to make sure your arrays are large enough to accomodate
     * <var>srcOffset</var> + 3 for the <var>source</var> array or
     * <var>destOffset</var> + 4 for the <var>destination</var> array. The
     * actual number of significant bytes in your array is given by
     * <var>numSigBytes</var>.
     * </p>
     * <p>
     * This is the lowest level of the encoding methods with all possible
     * parameters.
     * </p>
     * 
     * @param source
     *            the array to convert
     * @param srcOffset
     *            the index where conversion begins
     * @param numSigBytes
     *            the number of significant bytes in your array
     * @param destination
     *            the array to hold the conversion
     * @param destOffset
     *            the index where output will be put
     * @return the <var>destination</var> array
     * @since 1.3
     */
    private static byte[] encode3to4(byte[] source, int srcOffset,
	    int numSigBytes, byte[] destination, int destOffset, int options) {
	byte[] ALPHABET = getAlphabet(options);

	// 1 2 3
	// 01234567890123456789012345678901 Bit position
	// --------000000001111111122222222 Array position from threeBytes
	// --------| || || || | Six bit groups to index ALPHABET
	// >>18 >>12 >> 6 >> 0 Right shift necessary
	// 0x3f 0x3f 0x3f Additional AND

	// Create buffer with zero-padding if there are only one or two
	// significant bytes passed in the array.
	// We have to shift left 24 in order to flush out the 1's that appear
	// when Java treats a value as negative that is cast from a byte to an
	// int.
	int inBuff = (numSigBytes > 0 ? ((source[srcOffset] << 24) >>> 8) : 0)
		| (numSigBytes > 1 ? ((source[srcOffset + 1] << 24) >>> 16) : 0)
		| (numSigBytes > 2 ? ((source[srcOffset + 2] << 24) >>> 24) : 0);

	switch (numSigBytes) {
	case 3:
	    destination[destOffset] = ALPHABET[(inBuff >>> 18)];
	    destination[destOffset + 1] = ALPHABET[(inBuff >>> 12) & 0x3f];
	    destination[destOffset + 2] = ALPHABET[(inBuff >>> 6) & 0x3f];
	    destination[destOffset + 3] = ALPHABET[(inBuff) & 0x3f];
	    return destination;

	case 2:
	    destination[destOffset] = ALPHABET[(inBuff >>> 18)];
	    destination[destOffset + 1] = ALPHABET[(inBuff >>> 12) & 0x3f];
	    destination[destOffset + 2] = ALPHABET[(inBuff >>> 6) & 0x3f];
	    destination[destOffset + 3] = EQUALS_SIGN;
	    return destination;

	case 1:
	    destination[destOffset] = ALPHABET[(inBuff >>> 18)];
	    destination[destOffset + 1] = ALPHABET[(inBuff >>> 12) & 0x3f];
	    destination[destOffset + 2] = EQUALS_SIGN;
	    destination[destOffset + 3] = EQUALS_SIGN;
	    return destination;

	default:
	    return destination;
	} // end switch
    } // end encode3to4

    /**
     * Serializes an object and returns the Base64-encoded version of that
     * serialized object. If the object cannot be serialized or there is another
     * error, the method will return <tt>null</tt>. The object is not
     * GZip-compressed before being encoded.
     * 
     * @param serializableObject
     *            The object to encode
     * @return The Base64-encoded object
     * @since 1.4
     */
    public static String encodeObject(java.io.Serializable serializableObject) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1204
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1355
					} else if (bindingStyle.equals("rpc")) {
						// KWDIKAS GIA Nuremberg POI SEarch WSs WSDL
						// //-ta.append("\n\t\t\tCAUTION!!! Not supported yet:  style: "+bindingStyle+" / use:"+operationUse);
						try {
							String inPartName = part.getName();
							// -ta.append("\n\n\t\t\tName: "+inPartName);
							QName inPartType = part.getTypeName();
							String s11111 = inPartType.getLocalPart();
							// -ta.append("\n\t\t\tType: "+inPartType.getLocalPart());

							String stringToAppendForArray = null;

							if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().endsWith(
											"Array")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart().substring(
												0,
												inPartType.getLocalPart()
														.length() - 5) + "[] )";
							} else if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().startsWith(
											"ArrayOf")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart()
												.replaceFirst("ArrayOf", "")
										+ "[] )";
							} else if (inPartType.getLocalPart() != null
									&& inPartType.getLocalPart().endsWith("[]")) {
								stringToAppendForArray = "  ( "
										+ inPartType.getLocalPart() + " )";
							}
							if (stringToAppendForArray != null) {
								// -ta.append(stringToAppendForArray);
							}

							NativeObject no = null;
							ComplexObject co = null;

							if (stringToAppendForArray == null) {// DEN EINAI
																	// ARRAY
								if (inPartType.getNamespaceURI().equals(
										namespaces.get(nativeTypePrefix
												.replace(":", "")))) {
									// IT IS A NATIVE TYPE
									no = new NativeObject();
									no.setObjectName(new QName(inPartName));
									no.setObjectType(new QName(inPartType
											.getLocalPart() + " (NATIVE)"));
									mitsosOperationInput
											.getHasNativeOrComplexObjects()
											.add(no);
								} else {
									// IT IS A COMPLEX TYPE
									co = new ComplexObject();
									co.setObjectName(new QName(inPartName));
									co.setObjectType(new QName(inPartType
											.getLocalPart() + " (COMPLEX)"));
									mitsosOperationInput
											.getHasNativeOrComplexObjects()
											.add(co);
								}
							} else {
								if (inPartType.getNamespaceURI().equals(
										namespaces.get(nativeTypePrefix
												.replace(":", "")))) {
									// IT IS A NATIVE TYPE
									no = new NativeObject();
									no.setObjectName(new QName(inPartName));
									no.setObjectType(new QName(
											stringToAppendForArray + " (ARRAY)"));
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway324
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1197
            XmlSchemaObjectCollection attsCol = ct.getAttributes();
            if (attsCol != null) {
                Iterator iter2 = attsCol.getIterator();
                while (iter2.hasNext()) {
                    Object obj = iter2.next();
                    if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                        org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                        Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                        if (res1 != null) {
                            if (res1.getClass().getName().contains("NativeObject")) {
                                NativeObject no12 = (NativeObject) res1;
                                //System.out.println(no12.objectName);
                                co.getHasNativeObjects().add(no12);
                            } else if (res1.getClass().getName().contains("ComplexObject")) {
                                ComplexObject co12 = (ComplexObject) res1;
                                //System.out.println(co12.objectName);
                                co.getHasComplexObjects().add(co12);
                            }
                        }
                    } else if (obj.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
                        System.out.println();
                        ComplexObject co1 = new ComplexObject();
                        AdditionalTypesParser.parseXmlSchemaAttributeGroupRefElement(service,
                                (org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj, co1, theDefinition);

                        if (co1 != null) {
                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                            }
                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                            }
                        } else {
                            System.out.println();
                        }
                        System.out.println();
                    } else {
                        System.out.println();
                    }
                }
            }
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1197
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2056
                    XmlSchemaObjectCollection attsCol = restriction.getAttributes();//=objectXMLSchemaElement.getAttributes();
                    if (attsCol != null) {
                        Iterator iter2 = attsCol.getIterator();
                        while (iter2.hasNext()) {
                            Object obj = iter2.next();
                            if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                                org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                                Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                                if (res1 != null) {
                                    if (res1.getClass().getName().contains("NativeObject")) {
                                        NativeObject no12 = (NativeObject) res1;
                                        //System.out.println(no12.objectName);
                                        co.getHasNativeObjects().add(no12);
                                    } else if (res1.getClass().getName().contains("ComplexObject")) {
                                        ComplexObject co12 = (ComplexObject) res1;
                                        //System.out.println(co12.objectName);
                                        co.getHasComplexObjects().add(co12);
                                    }
                                }
                            } else if (obj.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
                                System.out.println();
                                ComplexObject co1 = new ComplexObject();
                                AdditionalTypesParser.parseXmlSchemaAttributeGroupRefElement(service,
                                        (org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj, co1, theDefinition);

                                if (co1 != null) {
                                    for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                        co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                    }
                                    for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                        co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                    }
                                } else {
                                    System.out.println();
                                }
                                System.out.println();
                            } else {
                                System.out.println();
                            }
                        }
                    }

                } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway324
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2056
                        XmlSchemaObjectCollection attsCol = extension.getAttributes();//=objectXMLSchemaElement.getAttributes();
                        if (attsCol != null) {
                            Iterator iter2 = attsCol.getIterator();
                            while (iter2.hasNext()) {
                                Object obj = iter2.next();
                                if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                                    org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                                    Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                                    if (res1 != null) {
                                        if (res1.getClass().getName().contains("NativeObject")) {
                                            NativeObject no12 = (NativeObject) res1;
                                            //System.out.println(no12.objectName);
                                            co.getHasNativeObjects().add(no12);
                                        } else if (res1.getClass().getName().contains("ComplexObject")) {
                                            ComplexObject co12 = (ComplexObject) res1;
                                            //System.out.println(co12.objectName);
                                            co.getHasComplexObjects().add(co12);
                                        }
                                    }
                                } else if (obj.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
                                    System.out.println();
                                    ComplexObject co1 = new ComplexObject();
                                    AdditionalTypesParser.parseXmlSchemaAttributeGroupRefElement(service,
                                            (org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj, co1, theDefinition);

                                    if (co1 != null) {
                                        for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                            co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                        }
                                        for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                            co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                        }
                                    } else {
                                        System.out.println();
                                    }
                                    System.out.println();
                                } else {
                                    System.out.println();
                                }
                            }
                        }
FileProjectLine
org\universAAL\ontology\shape\Path.javauniversAAL Ontology Physical World148
org\universAAL\ontology\shape\Polygon.javauniversAAL Ontology Physical World175
	Point[] points = getVertices();
	double max[] = { Double.MAX_VALUE, Double.MIN_VALUE, Double.MAX_VALUE,
		Double.MIN_VALUE, Double.MAX_VALUE, Double.MIN_VALUE };
	for (int i = 0; i < points.length; i++) {
	    if (max[0] > points[i].getX())
		max[0] = points[i].getX();
	    if (max[1] < points[i].getX())
		max[1] = points[i].getX();
	    if (max[2] > points[i].getY())
		max[2] = points[i].getY();
	    if (max[3] < points[i].getY())
		max[3] = points[i].getY();
	    if (max[4] > points[i].getZ())
		max[4] = points[i].getZ();
	    if (max[5] < points[i].getZ())
		max[5] = points[i].getZ();
	}
	return new Box(max[1] - max[0], max[3] - max[2], max[5] - max[4],
		new OriginedMetric((float) (max[0] + (max[1] - max[0]) / 2f),
			(float) (max[2] + (max[3] - max[2]) / 2f),
			(float) (max[4] + (max[5] - max[4]) / 2f),
			(Place) getCenter().getContainingLocation()));
    }

    /**
     * accuracy limited to 4 digits after the dot
     * 
     */
    public boolean contains(Point p) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1346
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1585
										.setObjectName(msg.getElementQName());

								if (attsCol != null) {
									Iterator iter2 = attsCol.getIterator();
									while (iter2.hasNext()) {
										Object obj = iter2.next();
										if (obj.getClass()
												.getName()
												.equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
											org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
											Object res1 = AdditionalTypesParser
													.parseXmlSchemaAttribute(
															att, service,
															theDefinition);
											if (res1 != null) {
												if (res1.getClass()
														.getName()
														.contains(
																"NativeObject")) {
													NativeObject no12 = (NativeObject) res1;
													// System.out.println(no12.objectName);
													dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.add(no12);
												} else if (res1
														.getClass()
														.getName()
														.contains(
																"ComplexObject")) {
													ComplexObject co12 = (ComplexObject) res1;
													// System.out.println(co12.objectName);
													dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.add(co12);
												}
											}
										} else if (obj
												.getClass()
												.getName()
												.contains(
														"org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
											System.out.println();
											ComplexObject co1 = new ComplexObject();
											AdditionalTypesParser
													.parseXmlSchemaAttributeGroupRefElement(
															service,
															(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
															co1, theDefinition);

											if (co1 != null) {
												for (int i = 0; i < co1
														.getHasComplexObjects()
														.size(); i++) {
													dummyInputOrOutputComplexObject
															.getHasComplexObjects()
															.add(co1.getHasComplexObjects()
																	.get(i));
												}
												for (int i = 0; i < co1
														.getHasNativeObjects()
														.size(); i++) {
													dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.add(co1.getHasNativeObjects()
																	.get(i));
												}
											} else {
												System.out.println();
											}
											System.out.println();
										} else {
											System.out.println();
										}
									}
								}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway349
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway422
								} else { // if NOT WRAPPED
									// TWRA GINETAI TO IDIO OPWS sto WRAPPED apo
									// panw...
									if (msg.getDirection().equals("in")) {
										operationInput
												.setHasSoapHeaders(parseSoapHeadersOfOperation(
														service, msg,
														theDefinition));

										System.out.println("\t\tREQUEST");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationInput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationInput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									} else if (msg.getDirection().equals("out")) {
										System.out.println("\t\tRESPONSE");
										System.out.println(msg.getName());
										if (dummyInputOrOutputComplexObject
												.getHasComplexObjects().size() == 0
												&& dummyInputOrOutputComplexObject
														.getHasNativeObjects()
														.size() == 1) {
											operationOutput
													.getHasNativeOrComplexObjects()
													.add(dummyInputOrOutputComplexObject
															.getHasNativeObjects()
															.get(0));
										} else {
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasNativeObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.get(i));
											}
											for (int i = 0; i < dummyInputOrOutputComplexObject
													.getHasComplexObjects()
													.size(); i++) {
												operationOutput
														.getHasNativeOrComplexObjects()
														.add(dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.get(i));
											}
										}
									}
								}
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\Select1LAF.javauniversAAL UI Handler Swing Look and Feel Classic78
org\universAAL\ui\handler\gui\swing\classic\SelectLAF.javauniversAAL UI Handler Swing Look and Feel Classic100
        JPanel combined=new JPanel(new BorderLayout(5,5));
//	combined.add(new JLabel(" "), BorderLayout.EAST);
//	combined.add(new JLabel(" "), BorderLayout.NORTH);
//	combined.add(new JLabel(" "), BorderLayout.SOUTH);
	combined.add(center, BorderLayout.CENTER);
	if (form.getLabel()!=null){
	    String title=form.getLabel().getText();
	    if(title!=null && !title.isEmpty()){
		combined.add(new JLabel(title), BorderLayout.WEST);
	    }/*else{
		combined.add(new JLabel(" "), BorderLayout.WEST);
	    }*/
	}
	
	return combined;
    }
    
    

    @Override
	public void update() {
	// Do nothing to avoid super
    }



    //TODO Remove this by making it public in model
    public class SelectionTreeModel implements TreeModel {
        Label[] root;

        public Object getRoot() {
            root = ((Select) fc).getChoices();
            if (root.length == 1) {
                return root[1];
            }
            else {
                return root;
            }
        }

        public Object getChild(Object parent, int index) {
            if (parent == root) {
                return root[index];
            }
            else {
                return ((ChoiceList) parent).getChildren()[index];
            }
        }

        public int getChildCount(Object parent) {
            if (parent == root) {
                return root.length;
            }
            else {
                return ((ChoiceList) parent).getChildren().length;
            }
        }

        public boolean isLeaf(Object node) {
            if (node == root) {
                return root.length == 0;
            }
            else {
                return node instanceof ChoiceItem;
            }
        }

        public void valueForPathChanged(TreePath path, Object newValue) {
            // XXX editable trees?
        }

        public int getIndexOfChild(Object parent, Object child) {
            Label[] children = ((ChoiceList) parent).getChildren();
            int i = 0;
            while (i < children.length && children[i] != child) 
            { i++; }
            return i;
        }

        public void addTreeModelListener(TreeModelListener l) {
        }

        public void removeTreeModelListener(TreeModelListener l) {
        }

    }



	@Override
	public void updateAsMissing() {
		// TODO Auto-generated method stub
		
	}
}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3012
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3198
																			.item(k51);
																	if (att.getNodeName()
																			.equalsIgnoreCase(
																					"name")) {
																		// //-System.out.println("\tName: "+att.getNodeValue());
																		attName = att
																				.getNodeValue();
																	} else if (att
																			.getNodeName()
																			.equalsIgnoreCase(
																					"type")) {
																		// //-System.out.println("\tType: "+att.getNodeValue());
																		attType = att
																				.getNodeValue();
																	} else {
																		// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
																		additionalInfo += att
																				.getNodeName()
																				+ ":"
																				+ att.getNodeValue()
																				+ "   ";
																	}
																}

																String prefix = "\n\t\t\t\t";

																if (!fromLiteral) {
																	prefix += "\t";
																}

																if (iterNumber > 0) {
																	for (int ff1 = 0; ff1 < iterNumber; ff1++) {
																		prefix += "\t";
																	}
																}

																// -ta.append(prefix+"-"+attName+" ["+attType+"]  "+additionalInfo);

																// Find the Type
																// of the
																// attName...
																// ITERATIVE
																// PROCESS.........
																if (attType
																		.startsWith(nativeTypePrefix)) {
																	// EINAI
																	// NATIVE
																	// TYPE
																	NativeObject no1 = new NativeObject();
																	no1.setObjectName(new QName(
																			attName));
																	no1.setObjectType(new QName(
																			attType
																					+ " (NATIVE)"));
																	co.getHasNativeObjects()
																			.add(no1);

																} else if (attType
																		.startsWith(targetNamespacePrefix)) {
																	// PSAXNW
																	// GIA TO
																	// TYPE MESA
																	// STO
																	// definition

																	ComplexObject co1 = new ComplexObject();
																	co1.setObjectName(new QName(
																			attName));
																	co1.setAdditionalInfo(additionalInfo);
																	co1.setObjectType(new QName(
																			attType
																					+ " (COMPLEX)"));

																	String type1 = attType
																			.substring(
																					4,
																					attType.length());
																	if (type1
																			.startsWith("ArrayOf")) {
																		type1 = type1
																				.replaceFirst(
																						"ArrayOf",
																						"");
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	} else if (type1
																			.endsWith("Array")) {
																		type1 = type1
																				.substring(
																						0,
																						type1.length() - 5);
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	} else if (attType
																			.endsWith("[]")) {
																		type1 = type1
																				.replace(
																						"[]",
																						"");
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	}
																	parseTypeIterative(
																			s1,
																			type1,
																			iterNumber + 1,
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\AalMpa.javauniversAAL Middleware Interfaces (Core)723
org\universAAL\middleware\deploymanager\uapp\model\AalUapp.javauniversAAL Middleware XSD Schemas1363
        public void setRemoteManagement(AalUapp.ApplicationManagement.RemoteManagement value) {
            this.remoteManagement = value;
        }

        public boolean isSetRemoteManagement() {
            return (this.remoteManagement!= null);
        }


        /**
         * <p>Java class for anonymous complex type.
         *
         * <p>The following schema fragment specifies the expected content contained within this class.
         *
         * <pre>
         * &lt;complexType>
         *   &lt;complexContent>
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       &lt;sequence>
         *         &lt;element name="protocols" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
         *         &lt;element name="software" type="{http://www.universaal.org/aal-uapp/v1.0.2}artifactType"/>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         *
         *
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "protocols",
            "software"
        })
        public static class RemoteManagement
            implements Serializable
        {

            private final static long serialVersionUID = 12343L;
            @XmlElement(required = true)
            protected List<String> protocols;
            @XmlElement(required = true)
            protected ArtifactType software;

            /**
             * Gets the value of the protocols property.
             *
             * <p>
             * This accessor method returns a reference to the live list,
             * not a snapshot. Therefore any modification you make to the
             * returned list will be present inside the JAXB object.
             * This is why there is not a <CODE>set</CODE> method for the protocols property.
             *
             * <p>
             * For example, to add a new item, do as follows:
             * <pre>
             *    getProtocols().add(newItem);
             * </pre>
             *
             *
             * <p>
             * Objects of the following type(s) are allowed in the list
             * {@link String }
             *
             *
             */
            public List<String> getProtocols() {
                if (protocols == null) {
                    protocols = new ArrayList<String>();
                }
                return this.protocols;
            }

            public boolean isSetProtocols() {
                return ((this.protocols!= null)&&(!this.protocols.isEmpty()));
            }

            public void unsetProtocols() {
                this.protocols = null;
            }

            /**
             * Gets the value of the software property.
             *
             * @return
             *     possible object is
             *     {@link ArtifactType }
             *
             */
            public ArtifactType getSoftware() {
                return software;
            }

            /**
             * Sets the value of the software property.
             *
             * @param value
             *     allowed object is
             *     {@link ArtifactType }
             *
             */
            public void setSoftware(ArtifactType value) {
                this.software = value;
            }

            public boolean isSetSoftware() {
                return (this.software!= null);
            }

        }

    }


    /**
     * <p>Java class for anonymous complex type.
     *
     * <p>The following schema fragment specifies the expected content contained within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element ref="{http://www.universaal.org/aal-uapp/v1.0.2}part" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "part"
    })
    public static class ApplicationPart
        implements Serializable
    {

        private final static long serialVersionUID = 12343L;
        @XmlElement(required = true)
        protected List<Part> part;

        /**
         * Gets the value of the part property.
         *
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the part property.
         *
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getPart().add(newItem);
         * </pre>
         *
         *
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link Part }
         *
         *
         */
        public List<Part> getPart() {
            if (part == null) {
                part = new ArrayList<Part>();
            }
            return this.part;
        }

        public boolean isSetPart() {
            return ((this.part!= null)&&(!this.part.isEmpty()));
        }

        public void unsetPart() {
            this.part = null;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     *
     * <p>The following schema fragment specifies the expected content contained within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="requirement" type="{http://www.universaal.org/aal-uapp/v1.0.2}reqType" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
FileProjectLine
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test144
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)153
		radiobuttonPanel.setBounds(20,100,475,50);		
		radioButtonsGroup = new ButtonGroup();
		realMeasurementButton = createJRadioButton("Real measurement");	
		realMeasurementButton.setToolTipText("Continua devices should be paired first");
		simulatedMeasurementButton = createJRadioButton("Simulated measurement");
		simulatedMeasurementButton.setToolTipText("Random values will be published to uAAL context bus (Continua devices not required)");
		radiobuttonPanel.add(realMeasurementButton);
		radiobuttonPanel.add(simulatedMeasurementButton);
		mainPanel.add(radiobuttonPanel);
		// Buttons
		bloodPressureButton = createJButton(bloodPressureImage,214,160,218,145,"bloodPressure");		
		mainPanel.add(bloodPressureButton);		
		weighingScaleButton = createJButton(weighingScaleImage,18,154,178,157,"weighingScale");			
		mainPanel.add(weighingScaleButton);		
	}	
	
	/** Create JPanel */
	public JPanel createJPanel() {
		JPanel output = null;
		output = new JPanel();	
		output.setLayout(null);
		output.setBorder(new EmptyBorder(5,5,5,5));	
		output.setBackground(Color.WHITE);
		return output;
	}
	
	/** Create JButtons */
	public JButton createJButton(String image,int x,int y,int weight,int height,String name) {
		JButton output = null;
		output = new JButton("");
		output.setBackground(Color.WHITE);
		if(image != null)
			output.setIcon(new ImageIcon(ctx.getBundle().getResource(image)));
		output.setBounds(x,y,weight,height);
		output.setActionCommand(name);
		output.addActionListener(this);
		return output;
	}	
	
	/** Create JRadioButtons */
	public JRadioButton createJRadioButton(String name) {
		JRadioButton output = null;
		output = new JRadioButton(name,false);
		output.setActionCommand(name);
		output.setBackground(Color.WHITE);
		output.addActionListener(this);
		radioButtonsGroup.add(output);
		return output;
	}
    
	/** Close GUI frame */
    public void closeGUI(){	     	
    	dispose();		
    }

    /** Action listener for radio buttons and jbuttons */
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("bloodPressure")) {
			// Blood pressure device
			if(realMeasurementButton.isSelected()) {
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)279
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher267
	}

	/** Java methods */	
	// Init method
	public void init() {		
		// Create the objects related to ISO/IEEE 11073 Manager interpreter
		eventmanager = new EventIEEEManager();
		x73manager = new Manager(eventmanager);
		fsm = x73manager.getFSM();
		rmp = x73manager.getMessageProcessor();		
		// First (mandatory) step: DBUS platform should be successfully initialized (otherwise JVM will return fatal errors)
		if(startDbusPlatform()) {			
			// Get and show the object path of the DEFAULT adapter (in GNU/Linux environments should be 'hci0')
			String defaultDevicePathTemp = getLocalBluetoothAdapterPath();
			System.out.println("Default bluetooth adapter path: "+defaultDevicePathTemp);	
			if(defaultDevicePathTemp == null) {				
				System.out.println("Unable to detect bluetooth adapters");
				System.exit(0);
			}	
			// Show the object path of ALL the local bluetooth adapters available at our PC
			System.out.println("List of local bluetooth adapters:");
			showLocalBluetoothAdaptersPath();
			// Show some properties of the DEFAULT adapter: address, name, class, powered, discoverable, pairable, discoverable timeout, pairable timeout,
			// discovering, devices and UUIDs. Check bluetooth manuals to understand the meaning of each
			System.out.println("Local bluetooth properties:");
			showDefaultLocalBluetoothAdaptersProperties();
			// Object path of a remote device
			remoteDevicePath = getRemoteBluetoothAdapterPath(macAddressRemoteDevice);
			System.out.println("Remote bluetooth adapter path: "+remoteDevicePath);	
			// Remote device properties (from its own path)
			System.out.println("Remote device properties (BEFORE):");
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// Prior to start any communication process, we need to ensure that the remote device appears as a 'Trusted' (true value) device (by default  
			// it should appear as false (not trusted) so we need to change this property			
			setPropertyRemoteDevice(remoteDevicePath,trustedProperty,true);			
			// Show the properties of the remote device to verify that the 'Trusted' value has been successfully changed (false -> true)
			System.out.println("Remote device properties (AFTER):");			
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// We need to create an HDP application before any HDP data frames exchange between agents/sources and managers/sinks. IMPORTANT: the app 
			// created will be only valid for the data types and roles passed as arguments. For instance, this HDP channel will be created only if the 
			// remote device is a weight scale acting as a source. So, here we go...
			String hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
			System.out.println("HDP application identifier: "+hdpApplicationIdTemp);
			// HDP app successfully created
			if(hdpApplicationIdTemp != null) {
				// We have the option to destroy/close any HDP application. For security reason, only the owner of this process will be able to destroy it
				destroyHDPApplication(hdpApplicationIdTemp);
				// New HDP application (again)
				hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
				System.out.println("HDP application identifier: "+hdpApplicationIdTemp);				
				// A good practice should be check the availability of the DBUS system (is it still alive?)
				System.out.println("DBUS sytem status: "+(getDbusSystemAvailability()?"Up":"Down"));
				// Remember that those PHD devices with compatible data type and role (weight scales and sources) are able to find our applicattion through 
				// bluetooth connections. At this case: we are a sink so we need to wait for input connections (handle signals). First step: we need to
				// subscribe our application to HDP events in the DBUS system.
				if(!enableHDPListener()) {
					System.out.println("Unable to listen HDP messages inside DBUS");
					System.exit(0);
				} else {
					System.out.println(fsm.getStringTransportState() + " " +fsm.getStringChannelState());					
					waitHDPConnections();
				}				
			}
		} else {
			System.out.println("Ups. Bad news, the monkey who has developed this application ran out of nuts. Try again later...");
		}
	}	

	/* HDP channel available. x073 state machine at connected status */
	public void onChannelConnected() {		
		// Get the object path of the just created HDP channel
		if(remoteDevicePath != null) {
			hdpDataChannelPath = getHDPDataChannelPath(remoteDevicePath);
			System.out.println("HDP channel path: "+hdpDataChannelPath);
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)219
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway245
    private final static byte[] _URL_SAFE_ALPHABET = { (byte) 'A', (byte) 'B',
	    (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G',
	    (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L',
	    (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q',
	    (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V',
	    (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) 'a',
	    (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f',
	    (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k',
	    (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p',
	    (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u',
	    (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z',
	    (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4',
	    (byte) '5', (byte) '6', (byte) '7', (byte) '8', (byte) '9',
	    (byte) '-', (byte) '_' };
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service286
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher267
	}

	/** Java methods */	
	// Init method
	public void init() {		
		// Create the objects related to ISO/IEEE 11073 Manager interpreter
		eventmanager = new EventIEEEManager();
		x73manager = new Manager(eventmanager);
		fsm = x73manager.getFSM();
		rmp = x73manager.getMessageProcessor();		
		// First (mandatory) step: DBUS platform should be successfully initialized (otherwise JVM will return fatal errors)
		if(startDbusPlatform()) {			
			// Get and show the object path of the DEFAULT adapter (in GNU/Linux environments should be 'hci0')
			String defaultDevicePathTemp = getLocalBluetoothAdapterPath();
			System.out.println("Default bluetooth adapter path: "+defaultDevicePathTemp);	
			if(defaultDevicePathTemp == null) {				
				System.out.println("Unable to detect bluetooth adapters");
				System.exit(0);
			}	
			// Show the object path of ALL the local bluetooth adapters available at our PC
			System.out.println("List of local bluetooth adapters:");
			showLocalBluetoothAdaptersPath();
			// Show some properties of the DEFAULT adapter: address, name, class, powered, discoverable, pairable, discoverable timeout, pairable timeout,
			// discovering, devices and UUIDs. Check bluetooth manuals to understand the meaning of each
			System.out.println("Local bluetooth properties:");
			showDefaultLocalBluetoothAdaptersProperties();
			// Object path of a remote device
			remoteDevicePath = getRemoteBluetoothAdapterPath(macAddressRemoteDevice);
			System.out.println("Remote bluetooth adapter path: "+remoteDevicePath);	
			// Remote device properties (from its own path)
			System.out.println("Remote device properties (BEFORE):");
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// Prior to start any communication process, we need to ensure that the remote device appears as a 'Trusted' (true value) device (by default  
			// it should appear as false (not trusted) so we need to change this property			
			setPropertyRemoteDevice(remoteDevicePath,trustedProperty,true);			
			// Show the properties of the remote device to verify that the 'Trusted' value has been successfully changed (false -> true)
			System.out.println("Remote device properties (AFTER):");			
			showRemoteBluetoothAdapterProperties(remoteDevicePath);
			// We need to create an HDP application before any HDP data frames exchange between agents/sources and managers/sinks. IMPORTANT: the app 
			// created will be only valid for the data types and roles passed as arguments. For instance, this HDP channel will be created only if the 
			// remote device is a weight scale acting as a source. So, here we go...
			String hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
			System.out.println("HDP application identifier: "+hdpApplicationIdTemp);
			// HDP app successfully created
			if(hdpApplicationIdTemp != null) {
				// We have the option to destroy/close any HDP application. For security reason, only the owner of this process will be able to destroy it
				destroyHDPApplication(hdpApplicationIdTemp);
				// New HDP application (again)
				hdpApplicationIdTemp = createHDPApplication(dataTypeValue,roleValue,shortDescriptionValue,channelTypeValue);
				System.out.println("HDP application identifier: "+hdpApplicationIdTemp);				
				// A good practice should be check the availability of the DBUS system (is it still alive?)
				System.out.println("DBUS sytem status: "+(getDbusSystemAvailability()?"Up":"Down"));
				// Remember that those PHD devices with compatible data type and role (weight scales and sources) are able to find our applicattion through 
				// bluetooth connections. At this case: we are a sink so we need to wait for input connections (handle signals). First step: we need to
				// subscribe our application to HDP events in the DBUS system.
				if(!enableHDPListener()) {
					System.out.println("Unable to listen HDP messages inside DBUS");
					System.exit(0);
				} else {
					System.out.println(fsm.getStringTransportState() + " " +fsm.getStringChannelState());					
					waitHDPConnections();
				}				
			}
		} else {
			System.out.println("Ups. Bad news, the monkey who has developed this application ran out of nuts. Try again later...");
		}
	}	

	/* HDP channel available. x073 state machine at connected status */
	public void onChannelConnected() {		
		// Get the object path of the just created HDP channel
		if(remoteDevicePath != null) {
			hdpDataChannelPath = getHDPDataChannelPath(remoteDevicePath);
			System.out.println("HDP channel path: "+hdpDataChannelPath);
FileProjectLine
org\universAAL\lddi\manager\publisher\Publisher.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)48
org\universAAL\lddi\manager\publisher\Publisher.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)48
public class Publisher {
	
	// Atributes
	// Default context publisher
	private ContextPublisher cp;
	// Context provider info (provider type)
	ContextProvider cpInfo = new ContextProvider();
	// Module context
	ModuleContext mc;
	// URI prefix
	public static final String PUBLISHER_URI_PREFIX = 
		"http://http://ontology.universAAL.org/PersonalHealtDeviceSimulator.owl#";

	// Constructor
	
	/** Publisher contructor 
	 *  @param context - framework bundle context
	 * */
	public Publisher(BundleContext context) {
		// Instantiate the context provider info with a valid provider URI
		cpInfo = new ContextProvider(PUBLISHER_URI_PREFIX + "PersonalHealthDeviceContextProvider");
		mc = uAALBundleContainer.THE_CONTAINER.registerModule(new Object[] { context });
		// Set to type gauge (only publishes data information it senses)
		cpInfo.setType(ContextProviderType.gauge);
		// Set the provided events to unknown with an empty pattern
		cpInfo.setProvidedEvents(new ContextEventPattern[] { new ContextEventPattern() });
		// Create and register the context publisher
		cp = new DefaultContextPublisher(mc,cpInfo);
	}
	
	// Methods
	
	/** Publish weighting scale events to uAAL bus */	
	public void publishWeightEvent(int weight) {		
		WeighingScale ws = new WeighingScale(PUBLISHER_URI_PREFIX + "WeighingScale");		
		Measurement m_ws = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Weight");
		m_ws.setValue(String.valueOf(weight));
		ws.setProperty(WeighingScale.PROP_HAS_MEASURED_WEIGHT,m_ws);		
		cp.publish(new ContextEvent(ws,WeighingScale.PROP_HAS_MEASURED_WEIGHT));		
	}
	
	/** Publish blood pressure events to uAAL bus */
	public void publishBloodPressureEvent(int sys,int dia,int hr) {		
		BloodPressureMeasurement bpme = new BloodPressureMeasurement(PUBLISHER_URI_PREFIX + "BloodPressureMeasurement");
		Measurement m_sys = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Systolic");
		m_sys.setValue(String.valueOf(sys));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPSYS,m_sys);
		Measurement m_dia = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Diastolic");
		m_dia.setValue(String.valueOf(dia));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPDIA,m_dia);
		Measurement m_hr = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Heartrate");
		m_hr.setValue(String.valueOf(hr));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_HEARTRATE, m_hr); 
		BloodPressureMonitor bpmo = new BloodPressureMonitor( PUBLISHER_URI_PREFIX + "BloodPressureMonitor" );
		bpmo.setProperty(BloodPressureMonitor.PROP_HAS_MEASUREMENT, bpme);
		cp.publish(new ContextEvent(bpmo,BloodPressureMonitor.PROP_HAS_MEASUREMENT));
	}
}
FileProjectLine
org\universAAL\lddi\manager\publisher\Publisher.javauniversAAL LDDI Bluetooth Continua Manager service48
org\universAAL\lddi\caller\test\gui\Publisher.javauniversAAL LDDI Continua Manager service caller test48
public class Publisher {
	
	// Atributes
	// Default context publisher
	private ContextPublisher cp;
	// Context provider info (provider type)
	ContextProvider cpInfo = new ContextProvider();
	// Module context
	ModuleContext mc;
	// URI prefix
	public static final String PUBLISHER_URI_PREFIX = 
		"http://ontology.universAAL.org/PersonalHealtDeviceSimulator.owl#";

	// Constructor
	
	/** Publisher contructor 
	 *  @param context - framework bundle context
	 * */
	public Publisher(BundleContext context) {
		// Instantiate the context provider info with a valid provider URI
		cpInfo = new ContextProvider(PUBLISHER_URI_PREFIX + "PersonalHealthDeviceContextProvider");
		mc = uAALBundleContainer.THE_CONTAINER.registerModule(new Object[] { context });
		// Set to type gauge (only publishes data information it senses)
		cpInfo.setType(ContextProviderType.gauge);
		// Set the provided events to unknown with an empty pattern
		cpInfo.setProvidedEvents(new ContextEventPattern[] { new ContextEventPattern() });
		// Create and register the context publisher
		cp = new DefaultContextPublisher(mc,cpInfo);
	}
	
	// Methods
	
	/** Publish weighting scale events to uAAL bus */	
	public void publishWeightEvent(int weight) {		
		WeighingScale ws = new WeighingScale(PUBLISHER_URI_PREFIX + "WeighingScale");		
		Measurement m_ws = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Weight");
		m_ws.setValue(String.valueOf(weight));
		ws.setProperty(WeighingScale.PROP_HAS_MEASURED_WEIGHT,m_ws);		
		cp.publish(new ContextEvent(ws,WeighingScale.PROP_HAS_MEASURED_WEIGHT));		
	}
	
	/** Publish blood pressure events to uAAL bus */
	public void publishBloodPressureEvent(int sys,int dia,int hr) {		
		BloodPressureMeasurement bpme = new BloodPressureMeasurement(PUBLISHER_URI_PREFIX + "BloodPressureMeasurement");
		Measurement m_sys = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Systolic");
		m_sys.setValue(String.valueOf(sys));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPSYS,m_sys);
		Measurement m_dia = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Diastolic");
		m_dia.setValue(String.valueOf(dia));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPDIA,m_dia);
		Measurement m_hr = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Heartrate");
		m_hr.setValue(String.valueOf(hr));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_HEARTRATE, m_hr); 
		BloodPressureMonitor bpmo = new BloodPressureMonitor( PUBLISHER_URI_PREFIX + "BloodPressureMonitor" );
		bpmo.setProperty(BloodPressureMonitor.PROP_HAS_MEASUREMENT, bpme);
		cp.publish(new ContextEvent(bpmo,BloodPressureMonitor.PROP_HAS_MEASUREMENT));
	}
}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2671
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2982
					if (atts.getNamedItem("name") != null
							&& atts.getNamedItem("name").getNodeValue() != null
							&& atts.getNamedItem("name").getNodeValue()
									.equals(typeName)) {
						// VRETHIKE TO ZITOUMENO TYPE
						NodeList childrenOfChildOfSchema = n.getChildNodes();
						if (childrenOfChildOfSchema != null) {
							for (int j = 0; j < childrenOfChildOfSchema
									.getLength(); j++) {
								Node n1 = childrenOfChildOfSchema.item(j);
								// ////-System.out.println(n1.getNodeName());
								NodeList childrenOfTheDamned = n1
										.getChildNodes();
								if (childrenOfTheDamned != null) {
									for (int k = 0; k < childrenOfTheDamned
											.getLength(); k++) {
										// //-System.out.println("\t"+childrenOfTheDamned.item(k).getNodeName());
										if (childrenOfTheDamned.item(k)
												.getNodeName()
												.contains("element")) {
											NamedNodeMap attributesOfType = childrenOfTheDamned
													.item(k).getAttributes();
											// ////-System.out.println("WWW GAMWTOOOO...... TYPES... ITERATIVE ");//
											// +typeName +" "+n.getNodeName() );
											String attName = "";
											String attType = "";
											String additionalInfo = "";
											for (int k1 = 0; k1 < attributesOfType
													.getLength(); k1++) {
												Node att = attributesOfType
														.item(k1);
												if (att.getNodeName()
														.equalsIgnoreCase(
																"name")) {
													// ////-System.out.println("\tName: "+att.getNodeValue());
													attName = att
															.getNodeValue();
												} else if (att.getNodeName()
														.equalsIgnoreCase(
																"type")) {
													// ////-System.out.println("\tType: "+att.getNodeValue());
													attType = att
															.getNodeValue();
												} else {
													// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
													additionalInfo += att
															.getNodeName()
															+ ":"
															+ att.getNodeValue()
															+ "   ";
												}
											}

											String prefix = "\n\t\t\t\t";

											if (!fromLiteral) {
												prefix += "\t";
											}

											if (iterNumber > 0) {
												for (int ff1 = 0; ff1 < iterNumber; ff1++) {
													prefix += "\t";
												}
											}

											// -ta.append(prefix+"-"+attName+" ["+attType+"]  "+additionalInfo);

											if (attType
													.startsWith(nativeTypePrefix)) {
FileProjectLine
org\universAAL\samples\lighting\client\LightingConsumer.javauniversAAL Samples Lighting Client (OSGi)120
org\universAAL\ri\gateway\support\android\LightingConsumer.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node126
    private static ServiceRequest dimRequest(final String lampURI, final Integer percent) {
	ServiceRequest dim = new ServiceRequest(new Lighting(), null);

	// we are interested in only those realizations of 'Lighting'
	// that have control over the lamp with the given URI
	dim.addValueFilter(new String[] { Lighting.PROP_CONTROLS },
		new LightSource(lampURI));

	dim.addChangeEffect(new String[] { Lighting.PROP_CONTROLS,
		LightSource.PROP_SOURCE_BRIGHTNESS }, percent);

	return dim;
    }

    public static ServiceRequest getAllLampsRequest() {
	// Again we want to create a ServiceRequest regarding LightSources
	ServiceRequest getAllLamps = new ServiceRequest(new Lighting(), null);

	// In this case, we do not intend to change anything but only retrieve
	// some info
	getAllLamps.addRequiredOutput(
	// this is OUR unique ID with which we can later retrieve the returned
		// value
		OUTPUT_LIST_OF_LAMPS,
		// Specify the meaning of the required output
		// by pointing to the property in whose value you are interested
		// Because we haven't specified any filter before, this should
		// result
		// in returning all values associated with the specified
		// property
		new String[] { Lighting.PROP_CONTROLS });

	return getAllLamps;
    }

    // *****************************************************************
    // Controller Methods
    // *****************************************************************

    // Get a list of all available light-source in the system
    public static Device[] getControlledLamps() {

	// Make a call for the lamps and get the request
	ServiceResponse sr = caller.call(getAllLampsRequest());

	if (sr.getCallStatus() == CallStatus.succeeded) {
	    try {
		List lampList = sr.getOutput(OUTPUT_LIST_OF_LAMPS, true);

		if (lampList == null || lampList.size() == 0) {
		    LogUtils.logInfo(Activator.mc, LightingConsumer.class,
			    "getControlledLamps",
			    new Object[] { "there are no lamps" }, null);
		    return null;
		}

		// simple create an array out of the lamp-array and give it back
		// --> finished
		LightSource[] lamps = (LightSource[]) lampList
			.toArray(new LightSource[lampList.size()]);

		return lamps;

	    } catch (Exception e) {
		LogUtils.logError(Activator.mc, LightingConsumer.class,
			"getControlledLamps", new Object[] { "got exception",
				e.getMessage() }, e);
		return null;
	    }
	} else {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class,
		    "getControlledLamps",
		    new Object[] { "callstatus is not succeeded" }, null);
	    return null;
	}
    }

    // this method turn off the light at lampURI and give back if the operation
    // was a success
    public static boolean turnOff(final String lampURI) {
FileProjectLine
org\universAAL\samples\lighting\server_regular\MyLightingOntologified.javauniversAAL Samples AAPI Regular Lighting Server30
org\universAAL\samples\lighting\server\MyLightingOntologified.javauniversAAL Samples AAPI Lighting Server Simplified30
public class MyLightingOntologified {
    /**
     * Real implementation controlling light sources.
     */
    private MyLighting realLighting = new MyLighting();

    public MyLightingOntologified(String namespace) {
	/* Initializing fields with ontological constants */
	this.LAMP_URI_PREFIX = namespace + "controlledLamp";
	this.LOCATION_URI_PREFIX = "urn:aal_space:myHome#";
    }
    
    /*
     * Fields and methods for mapping real implementation onto ontology.
     */

    private final String LAMP_URI_PREFIX;
    private final String LOCATION_URI_PREFIX; 

    private String constructLampURIfromLocalID(int localID) {
	return LAMP_URI_PREFIX + localID;
    }

    private String constructLocationURIfromLocalID(String localID) {
	return LOCATION_URI_PREFIX + localID;
    }

    private int extractLocalIDfromLampURI(String lampURI) {
	return Integer.parseInt(lampURI.substring(LAMP_URI_PREFIX.length()));
    }

    /*
     * Implementation of ontological interface
     */

    public LightSource[] getControlledLamps() {
	ArrayList<LightSource> al = new ArrayList<LightSource>();
	Integer[] controlledLamps = realLighting.getControlledLamps();
	for (int i = 0; i < controlledLamps.length; i++) {
	    LightSource ls = new LightSource(constructLampURIfromLocalID(i));
	    ls.setLightType(ElectricLight.lightBulb);
	    al.add(ls);
	}
	return al.toArray(new LightSource[0]);
    }

    public Object[] getLampInfo(LightSource lamp) {
	int lampID = extractLocalIDfromLampURI(lamp.getURI());
	int state = realLighting.getState(lampID);
	String loc = realLighting.getLampLocation(lampID);
	Room ontologyLoc = new Room(constructLocationURIfromLocalID(loc));
	return new Object[] { state, ontologyLoc };
    }

    public void turnOff(LightSource lamp) {
	int lampID = extractLocalIDfromLampURI(lamp.getURI());
	realLighting.turnOff(lampID);
    }

    public void turnOn(LightSource lamp) {
	int lampID = extractLocalIDfromLampURI(lamp.getURI());
	realLighting.turnOn(lampID);
    }
}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway222
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1846
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);

                                                            ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                            noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                            noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO_ListNO.setIsArrayType(true);
                                                            noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                            noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                            noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            ComplexObject noArrayCO = new ComplexObject();
                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            noArrayCO.setIsOptional(no1.isIsOptional());
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                        }
                                                    } else {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
FileProjectLine
org\universAAL\lddi\manager\publisher\Publisher.javauniversAAL LDDI Bluetooth Continua Manager service66
org\universAAL\lddi\manager\publisher\Publisher.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)66
	public Publisher(BundleContext context) {
		// Instantiate the context provider info with a valid provider URI
		cpInfo = new ContextProvider(PUBLISHER_URI_PREFIX + "PersonalHealthDeviceContextProvider");
		mc = uAALBundleContainer.THE_CONTAINER.registerModule(new Object[] { context });
		// Set to type gauge (only publishes data information it senses)
		cpInfo.setType(ContextProviderType.gauge);
		// Set the provided events to unknown with an empty pattern
		cpInfo.setProvidedEvents(new ContextEventPattern[] { new ContextEventPattern() });
		// Create and register the context publisher
		cp = new DefaultContextPublisher(mc,cpInfo);
	}
	
	// Methods
	
	/** Publish weighting scale events to uAAL bus */	
	public void publishWeightEvent(int weight) {		
		WeighingScale ws = new WeighingScale(PUBLISHER_URI_PREFIX + "WeighingScale");		
		Measurement m_ws = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Weight");
		m_ws.setValue(String.valueOf(weight));
		ws.setProperty(WeighingScale.PROP_HAS_MEASURED_WEIGHT,m_ws);		
		cp.publish(new ContextEvent(ws,WeighingScale.PROP_HAS_MEASURED_WEIGHT));		
	}
	
	/** Publish blood pressure events to uAAL bus */
	public void publishBloodPressureEvent(int sys,int dia,int hr) {		
		BloodPressureMeasurement bpme = new BloodPressureMeasurement(PUBLISHER_URI_PREFIX + "BloodPressureMeasurement");
		Measurement m_sys = new Measurement(PUBLISHER_URI_PREFIX + "Measurement_Systolic");
		m_sys.setValue(String.valueOf(sys));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPSYS,m_sys);
		Measurement m_dia = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Diastolic");
		m_dia.setValue(String.valueOf(dia));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_BPDIA,m_dia);
		Measurement m_hr = new Measurement( PUBLISHER_URI_PREFIX + "Measurement_Heartrate");
		m_hr.setValue(String.valueOf(hr));
		bpme.setProperty(BloodPressureMeasurement.PROP_HAS_MEASURED_HEARTRATE, m_hr); 
		BloodPressureMonitor bpmo = new BloodPressureMonitor( PUBLISHER_URI_PREFIX + "BloodPressureMonitor" );
		bpmo.setProperty(BloodPressureMonitor.PROP_HAS_MEASUREMENT, bpme);
		cp.publish(new ContextEvent(bpmo,BloodPressureMonitor.PROP_HAS_MEASUREMENT));
	}
}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Bundle.javauniversAAL Middleware Interfaces (Core)57
org\universAAL\middleware\deploymanager\uapp\model\Bundle.javauniversAAL Middleware XSD Schemas56
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bundle", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class Bundle implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    @XmlSchemaType(name = "anyURI")
    protected String value;
    @XmlAttribute(name = "start-level")
    protected Integer startLevel;
    @XmlAttribute(name = "start")
    protected Boolean start;
    @XmlAttribute(name = "dependency")
    protected Boolean dependency;

    /**
     * Gets the value of the value property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the startLevel property.
     *
     * @return
     *     possible object is
     *     {@link Integer }
     *
     */
    public int getStartLevel() {
        return startLevel;
    }

    /**
     * Sets the value of the startLevel property.
     *
     * @param value
     *     allowed object is
     *     {@link Integer }
     *
     */
    public void setStartLevel(int value) {
        this.startLevel = value;
    }

    public boolean isSetStartLevel() {
        return (this.startLevel!= null);
    }

    public void unsetStartLevel() {
        this.startLevel = null;
    }

    /**
     * Gets the value of the start property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public boolean isStart() {
        return start;
    }

    /**
     * Sets the value of the start property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setStart(boolean value) {
        this.start = value;
    }

    public boolean isSetStart() {
        return (this.start!= null);
    }

    public void unsetStart() {
        this.start = null;
    }

    /**
     * Gets the value of the dependency property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public boolean isDependency() {
        return dependency;
    }

    /**
     * Sets the value of the dependency property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setDependency(boolean value) {
        this.dependency = value;
    }

    public boolean isSetDependency() {
        return (this.dependency!= null);
    }

    public void unsetDependency() {
        this.dependency = null;
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1987
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway624
						if (n1.getAttributes().getNamedItem("name") != null
								&& n1.getAttributes().getNamedItem("name")
										.getNodeValue() != null
								&& n1.getAttributes().getNamedItem("name")
										.getNodeValue()
										.equals(inPartType.getLocalPart())) {

							NodeList childrenOfTheDamned = n1.getChildNodes();
							if (childrenOfTheDamned != null) {
								for (int k = 0; k < childrenOfTheDamned
										.getLength(); k++) {
									// ////-System.out.println("\t"+childrenOfTheDamned.item(k).getNodeName());
									NodeList childrenOfTheChildrenOfTheDamned = childrenOfTheDamned
											.item(k).getChildNodes();
									if (childrenOfTheChildrenOfTheDamned != null) {
										for (int k2 = 0; k2 < childrenOfTheChildrenOfTheDamned
												.getLength(); k2++) {
											if (childrenOfTheChildrenOfTheDamned
													.item(k2).getNodeName()
													.contains("element")) {
												NamedNodeMap attributesOfType = childrenOfTheChildrenOfTheDamned
														.item(k2)
														.getAttributes();
												// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
												String attName = "";
												String attType = "";
												String additionalInfo = "";

												// EDW EINAI OOOOLH H MAGKIA MOU
												// ME TA TYPES!!!!!!!!!!!!!!!
												for (int k1 = 0; k1 < attributesOfType
														.getLength(); k1++) {
													Node att = attributesOfType
															.item(k1);
													if (att.getNodeName()
															.equalsIgnoreCase(
																	"name")) {
														// ////-System.out.println("\tName: "+att.getNodeValue());
														attName = att
																.getNodeValue();
													} else if (att
															.getNodeName()
															.equalsIgnoreCase(
																	"type")) {
														// ////-System.out.println("\tType: "+att.getNodeValue());
														attType = att
																.getNodeValue();
													} else {
														// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
														additionalInfo += att
																.getNodeName()
																+ ":"
																+ att.getNodeValue()
																+ "   ";
													}
												}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\DeploymentUnit.javauniversAAL Middleware Interfaces (Core)87
org\universAAL\middleware\deploymanager\uapp\model\DeploymentUnit.javauniversAAL Middleware XSD Schemas99
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "osUnit",
    "platformUnit",
    "containerUnit"
})
@XmlRootElement(name = "deploymentUnit")
public class DeploymentUnit
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    protected OsType osUnit;
    protected PlatformType platformUnit;
    protected DeploymentUnit.ContainerUnit containerUnit;
    @XmlAttribute(name = "id")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlID
    @XmlSchemaType(name = "ID")
    protected String id;

    /**
     * Gets the value of the osUnit property.
     *
     * @return
     *     possible object is
     *     {@link OsType }
     *
     */
    public OsType getOsUnit() {
        return osUnit;
    }

    /**
     * Sets the value of the osUnit property.
     *
     * @param value
     *     allowed object is
     *     {@link OsType }
     *
     */
    public void setOsUnit(OsType value) {
        this.osUnit = value;
    }

    public boolean isSetOsUnit() {
        return (this.osUnit!= null);
    }

    /**
     * Gets the value of the platformUnit property.
     *
     * @return
     *     possible object is
     *     {@link PlatformType }
     *
     */
    public PlatformType getPlatformUnit() {
        return platformUnit;
    }

    /**
     * Sets the value of the platformUnit property.
     *
     * @param value
     *     allowed object is
     *     {@link PlatformType }
     *
     */
    public void setPlatformUnit(PlatformType value) {
        this.platformUnit = value;
    }

    public boolean isSetPlatformUnit() {
        return (this.platformUnit!= null);
    }

    /**
     * Gets the value of the containerUnit property.
     *
     * @return
     *     possible object is
     *     {@link DeploymentUnit.ContainerUnit }
     *
     */
    public DeploymentUnit.ContainerUnit getContainerUnit() {
        return containerUnit;
    }

    /**
     * Sets the value of the containerUnit property.
     *
     * @param value
     *     allowed object is
     *     {@link DeploymentUnit.ContainerUnit }
     *
     */
    public void setContainerUnit(DeploymentUnit.ContainerUnit value) {
        this.containerUnit = value;
    }

    public boolean isSetContainerUnit() {
        return (this.containerUnit!= null);
    }

    /**
     * Gets the value of the id property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setId(String value) {
        this.id = value;
    }

    public boolean isSetId() {
        return (this.id!= null);
    }


    /**
     * <p>Java class for anonymous complex type.
     *
     * <p>The following schema fragment specifies the expected content contained within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;choice>
     *         &lt;element name="karaf">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="embedding" type="{http://www.universaal.org/aal-uapp/v1.0.2}embeddingType"/>
     *                   &lt;element ref="{http://karaf.apache.org/xmlns/features/v1.0.0}features"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *         &lt;element name="android">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *                   &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
     *                   &lt;element name="location" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *         &lt;element name="tomcat" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *         &lt;element name="equinox" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *         &lt;element name="felix" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *         &lt;element name="osgi-android" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *       &lt;/choice>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "karaf",
FileProjectLine
org\universAAL\ontology\location\address\Address.javauniversAAL Ontology Physical World274
org\universAAL\ontology\location\address\PhysicalAddress.javauniversAAL Ontology Physical World298
	if (this.getCityPlace() != null) {
	    cities.append(this.getCityPlace());
	}
	if (this.getCityQuarter() != null) {
	    if (cities.length() > 0)
		cities.append(", ");
	    cities.append(this.getCityQuarter());
	}
	if (this.getCityRegion() != null) {
	    if (cities.length() > 0)
		cities.append(", ");
	    cities.append(this.getCityRegion());
	}
	if (this.getCity() != null) {
	    if (cities.length() > 0)
		cities.append(", ");
	    cities.append(this.getCity());
	}
	if (cities.length() > 0)
	    cities.append("\n");
	if (this.getRegion() != null) {
	    cities.append(this.getRegion());
	}
	if (this.getState() != null) {
	    if (cities.length() > 0)
		cities.append(", ");
	    cities.append(this.getState());
	}
	if (this.getCountry() != null) {
	    if (cities.length() > 0)
		cities.append(", ");
	    cities.append(this.getCountry());
	}
	// address.append(street+" ");
	if (buildings.length() > 0)
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Bundle.javauniversAAL Middleware Interfaces (Core)58
org\universAAL\middleware\connectors\deploy\karaf\model\Bundle.javauniversAAL Middleware XSD Schemas57
@XmlType(name = "bundle", propOrder = {
    "value"
})
public class Bundle implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    @XmlSchemaType(name = "anyURI")
    protected String value;
    @XmlAttribute(name = "start-level")
    protected Integer startLevel;
    @XmlAttribute(name = "start")
    protected Boolean start;
    @XmlAttribute(name = "dependency")
    protected Boolean dependency;

    /**
     * Gets the value of the value property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the startLevel property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public int getStartLevel() {
        return startLevel;
    }

    /**
     * Sets the value of the startLevel property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setStartLevel(int value) {
        this.startLevel = value;
    }

    public boolean isSetStartLevel() {
        return (this.startLevel!= null);
    }

    public void unsetStartLevel() {
        this.startLevel = null;
    }

    /**
     * Gets the value of the start property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isStart() {
        return start;
    }

    /**
     * Sets the value of the start property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setStart(boolean value) {
        this.start = value;
    }

    public boolean isSetStart() {
        return (this.start!= null);
    }

    public void unsetStart() {
        this.start = null;
    }

    /**
     * Gets the value of the dependency property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isDependency() {
        return dependency;
    }

    /**
     * Sets the value of the dependency property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setDependency(boolean value) {
        this.dependency = value;
    }

    public boolean isSetDependency() {
        return (this.dependency!= null);
    }

    public void unsetDependency() {
        this.dependency = null;
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2857
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3041
											if (iterNumber > 0) {
												for (int ff1 = 0; ff1 < iterNumber; ff1++) {
													prefix += "\t";
												}
											}

											// -ta.append(prefix+"-"+attName+" ["+attType+"]  "+additionalInfo);

											if (attType
													.startsWith(nativeTypePrefix)) {
												// EINAI NATIVE TYPE
												NativeObject no1 = new NativeObject();
												no1.setObjectName(new QName(
														attName));
												no1.setObjectType(new QName(
														attType + " (NATIVE)"));
												co.getHasNativeObjects().add(
														no1);

											} else if (attType
													.startsWith(targetNamespacePrefix)) {
												// PSAXNW GIA TO TYPE MESA STO
												// definition

												ComplexObject co1 = new ComplexObject();
												co1.setObjectName(new QName(
														attName));
												co1.setAdditionalInfo(additionalInfo);
												co1.setObjectType(new QName(
														attType + " (COMPLEX)"));

												String type1 = attType
														.substring(4, attType
																.length());
												if (type1.startsWith("ArrayOf")) {
													type1 = type1.replaceFirst(
															"ArrayOf", "");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (type1
														.endsWith("Array")) {
													type1 = type1.substring(0,
															type1.length() - 5);
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (attType
														.endsWith("[]")) {
													type1 = type1.replace("[]",
															"");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												}

												parseTypeIterative(s1, type1,
														iterNumber + 1,
FileProjectLine
org\universAAL\samples\lighting\server_regular\unit_impl\MyLighting.javauniversAAL Samples AAPI Regular Lighting Server28
org\universAAL\samples\lighting\server\unit_impl\MyLighting.javauniversAAL Samples AAPI Lighting Server Simplified23
public class MyLighting {
    private class Lamp {
	String loc;
	boolean isOn;

	Lamp(String loc, boolean isOn) {
	    this.loc = loc;
	    this.isOn = isOn;
	}
    }

    private Lamp[] myLampDB = new Lamp[] { new Lamp("loc1", false),
	    new Lamp("loc2", false), new Lamp("loc3", false),
	    new Lamp("loc4", false) };

    public String getLampLocation(int lampID) {
	return myLampDB[lampID].loc;
    }

    public int getState(int lampID) {
	return myLampDB[lampID].isOn ? 100 : 0;
    }

    public Integer[] getControlledLamps() {
	Integer[] ids = new Integer[myLampDB.length];
	for (int i = 0; i < myLampDB.length; i++)
	    ids[i] = i;
	return ids;
    }

    public Object[] getLampInfo(int lampID) {
	String loc = getLampLocation(lampID);
	int state = getState(lampID);
	return new Object[] { state, loc };
    }

    public void turnOff(int lampID) {
	if (myLampDB[lampID].isOn) {
	    myLampDB[lampID].isOn = false;
	}
    }

    public void turnOn(int lampID) {
	if (!myLampDB[lampID].isOn) {
	    myLampDB[lampID].isOn = true;
	}
    }
}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway331
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway694
										objectXMLSchemaAttribute, service,
										theDefinition);
						if (res1 != null) {
							if (res1.getClass().getName()
									.contains("NativeObject")) {
								NativeObject no12 = (NativeObject) res1;
								// System.out.println(no12.objectName);
								co.getHasNativeObjects().add(no12);
							} else if (res1.getClass().getName()
									.contains("ComplexObject")) {
								ComplexObject co12 = (ComplexObject) res1;
								// System.out.println(co12.objectName);
								co.getHasComplexObjects().add(co12);
							}
						}
					} else if (obj
							.getClass()
							.getName()
							.contains(
									"org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef")) {
						System.out.println();
						ComplexObject co1 = new ComplexObject();
						AdditionalTypesParser
								.parseXmlSchemaAttributeGroupRefElement(
										service,
										(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
										co1, theDefinition);

						if (co1 != null) {
							for (int i = 0; i < co1.getHasComplexObjects()
									.size(); i++) {
								co.getHasComplexObjects().add(
										co1.getHasComplexObjects().get(i));
							}
							for (int i = 0; i < co1.getHasNativeObjects()
									.size(); i++) {
								co.getHasNativeObjects().add(
										co1.getHasNativeObjects().get(i));
							}
						} else {
							System.out.println();
						}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationInput.javauniversAAL Remote Interoperability Internet Gateway90
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationOutput.javauniversAAL Remote Interoperability Internet Gateway80
	}

	private void fillHasParentValues(Object obj) {
		if (obj instanceof WSOperationInput) {
			WSOperationInput in = (WSOperationInput) obj;
			for (int i = 0; i < in.getHasNativeOrComplexObjects().size(); i++) {
				if (in.getHasNativeOrComplexObjects().get(i) instanceof ComplexObject) {
					ComplexObject co = (ComplexObject) in
							.getHasNativeOrComplexObjects().get(i);
					co.setHasParent(obj);
					fillHasParentValues(co);
				} else if (in.getHasNativeOrComplexObjects().get(i) instanceof NativeObject) {
					NativeObject no = (NativeObject) in
							.getHasNativeOrComplexObjects().get(i);
					no.setHasParent(obj);
				}
			}
		} else if (obj instanceof ComplexObject) {
			ComplexObject co = (ComplexObject) obj;
			for (int j = 0; j < co.getHasNativeObjects().size(); j++) {
				((NativeObject) co.getHasNativeObjects().get(j))
						.setHasParent(co);
			}
			for (int j = 0; j < co.getHasComplexObjects().size(); j++) {
				((ComplexObject) co.getHasComplexObjects().get(j))
						.setHasParent(co);
				fillHasParentValues(((ComplexObject) co.getHasComplexObjects()
						.get(j)).getHasComplexObjects());
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\Select1LAF.javauniversAAL UI Handler Swing Look and Feel Classic100
org\universAAL\ui\handler\gui\swing\model\FormControl\SelectModel.javauniversAAL UI Handler Swing169
    protected class SelectionTreeModel implements TreeModel {

        /**
         * The root of the tree. it can be a single element or a group of
         * {@link ChoiceList}s.
         */
        Label[] root;

        /**
         * find the root element.
         *
         * @return the root element
         */
        public Object getRoot() {
            root = ((Select) fc).getChoices();
            if (root.length == 1) {
                return root[1];
            }
            else {
                return root;
            }
        }

        /**
         * {@inheritDoc}
         */
        public Object getChild(Object parent, int index) {
            if (parent == root) {
                return root[index];
            }
            else {
                return ((ChoiceList) parent).getChildren()[index];
            }
        }

        /**
         * {@inheritDoc}
         */
        public int getChildCount(Object parent) {
            if (parent == root) {
                return root.length;
            }
            else {
                return ((ChoiceList) parent).getChildren().length;
            }
        }

        /**
         * {@inheritDoc}
         */
        public boolean isLeaf(Object node) {
            if (node == root) {
                return root.length == 0;
            }
            else {
                return node instanceof ChoiceItem;
            }
        }

        /**
         * not used, trees should not be editable
         */
        public void valueForPathChanged(TreePath path, Object newValue) {
            // XXX editable trees?
        }

        /**
         * {@inheritDoc}
         */
        public int getIndexOfChild(Object parent, Object child) {
            Label[] children = ((ChoiceList) parent).getChildren();
            int i = 0;
            while (i < children.length && children[i] != child) 
            { i++; }
            return i;
        }

        /**
         * not used.
         */
        public void addTreeModelListener(TreeModelListener l) {
        }

        /**
         * not used.
         */
        public void removeTreeModelListener(TreeModelListener l) {
        }

    }
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)347
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)346
		uaalPublisher.setVisible(false);
	}
	
	/** Create JLabel */
	public JLabel createJLabel(String name,int x,int y,int weight,int height,int fontType,int fontSize) {
		JLabel output = null;
		output = new JLabel(name);	
		output.setBounds(x,y,weight,height);
		output.setFont(new Font("Courier",fontType,fontSize));	
		output.setHorizontalTextPosition(SwingConstants.CENTER);
		return output;
	}
	
	/** Create JTextfield */
	public JTextField createJTextfield(int x,int y,int weight,int height,int fontType,int fontSize) {
		JTextField output = null;
		output = new JTextField(10);	
		output.setBounds(x,y,weight,height);
		output.setEditable(false);
		output.setColumns(10);
		output.setHorizontalAlignment(JTextField.CENTER);
		output.setFont(new Font("Courier",fontType,fontSize));		
		return output;
	}
	
	/** Add components to panel */
	public void addJLabelComponent(JComponent component) {
		if(component != null)
			mainPublisherPanel.add(component);
	}
	
	/** Reset components */
	public void resetComponentsStatus() {
		uaalPublisherWeightValueLabel = null;
		uaalPublisherWeightValueTextfield = null;
		uaalPublisherWeightUnitLabel = null;
		uaalPublisherWeightUnitTextfield = null;
		uaalPublisherBloodPressureSysValueLabel = null;
		uaalPublisherBloodPressureSysValueTextfield = null;
		uaalPublisherBloodPressureDiaValueLabel = null;
		uaalPublisherBloodPressureDiaValueTextfield = null;
		uaalPublisherBloodPressurePulValueLabel = null;
		uaalPublisherBloodPressurePulValueTextfield = null;
		remoteDeviceType = null;
		realMeasurement = false;
		finalMeasuredWeightData = -1.0;
		finalSysBloodPressureData = -1;
		finalDiaBloodPressureData = -1;
		finalHrBloodPressureData = -1;
	}
	
	/** Shorten number of decimals */
	public static double shortDecimalNumber(double d) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway741
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway783
                                                parseComplexType(service, null, xmlSchemaType, co1, theDefinition, calledFromAbstractTypeParser);

                                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                                    co1.setIsOptional(true);
                                                }

                                                if (newSimpleOrComplexObjectElement != null && newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                                    ComplexObject coArrayCO = new ComplexObject();
                                                    coArrayCO.setObjectName(co1.getObjectName());
                                                    //co1.setObjectType(new QName("XA!"));
                                                    coArrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                            co1.getObjectType().getLocalPart() + "[]",
                                                            co1.getObjectType().getPrefix()));
                                                    coArrayCO.setIsArrayType(true);
                                                    coArrayCO.getHasComplexObjects().add(co1);
                                                    coArrayCO.setIsOptional(co1.isIsOptional());
                                                    co.getHasComplexObjects().add(coArrayCO);

                                                } else {
                                                    co.getHasComplexObjects().add(co1);
                                                }
                                                typeParsed = true;
                                            }
                                            if (!typeParsed) {
                                                theDefinition.getContainingErrors().add("ERROR 1!!!!!!!!!!!!!!!!!! ...@line ~2499");
                                                System.out.println("ERROR 1!!!!!!!!!!!!!!!!!! ...@line ~2499");
                                                //System.exit(-1);
                                            }
                                        } else {//if schemaType ==null -> den mporese na vrethei sta elements kai schemaTypes...
                                            System.out.println("wx aman 21-1-2010");

                                            Object res123 = ParsingUtils.tryToFindAndParseAttributeForSpecificObject(theDefinition, service, newSimpleOrComplexObjectElement.getRefName());
                                            if (res123 != null) {
                                                if (res123.getClass().getName().contains("NativeObject")) {
                                                    co.getHasNativeObjects().add(res123);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway609
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway641
				Object obj = outHeaderObjsIter.next();
				if (obj.getClass().getName().contains("NativeObject")) {
					NativeObject no = (NativeObject) obj;
					no.setHasParent(oper);
					no.setIsInput(false);

					QName[] qNarray = new QName[outQNamesSoFar.size() + 1];
					for (int i = 0; i < outQNamesSoFar.size(); i++) {
						qNarray[i] = (QName) outQNamesSoFar.get(i);
					}
					qNarray[qNarray.length - 1] = no.getObjectName();

				} else if (obj.getClass().getName().contains("ComplexObject")) {
					ComplexObject co = (ComplexObject) obj;
					co.setHasParent(oper);
					co.setIsInput(false);

					QName[] qNarray = new QName[outQNamesSoFar.size() + 1];
					for (int i = 0; i < outQNamesSoFar.size(); i++) {
						qNarray[i] = (QName) outQNamesSoFar.get(i);
					}
					qNarray[qNarray.length - 1] = co.getObjectName();

					Vector newQNamesVector = (Vector) outQNamesSoFar.clone();
					newQNamesVector.add(qNarray[qNarray.length - 1]);

					fixComplexObjectPathIterative(co, newQNamesVector, 0);
				}
			}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1205
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1557
					if (bindingStyle.equals("rpc")) {
						String inPartName = part.getName();
						// -ta.append("\n\n\t\t\tName: "+inPartName);
						QName inPartType = part.getTypeName();
						String s11111 = inPartType.getLocalPart();
						// -ta.append("\n\t\t\tType: "+inPartType.getLocalPart());

						String stringToAppendForArray = null;

						if (inPartType.getLocalPart() != null
								&& inPartType.getLocalPart().endsWith("Array")) {
							stringToAppendForArray = "  ( "
									+ inPartType.getLocalPart()
											.substring(
													0,
													inPartType.getLocalPart()
															.length() - 5)
									+ "[] )";
						} else if (inPartType.getLocalPart() != null
								&& inPartType.getLocalPart().startsWith(
										"ArrayOf")) {
							stringToAppendForArray = "  ( "
									+ inPartType.getLocalPart().replaceFirst(
											"ArrayOf", "") + "[] )";
						} else if (inPartType.getLocalPart() != null
								&& inPartType.getLocalPart().endsWith("[]")) {
							stringToAppendForArray = "  ( "
									+ inPartType.getLocalPart() + " )";
						}
						if (stringToAppendForArray != null) {
							// -ta.append(stringToAppendForArray);
						}

						NativeObject no = null;
						ComplexObject co = null;

						if (stringToAppendForArray == null) {// DEN EINAI ARRAY
							if (inPartType.getNamespaceURI().equals(
									namespaces.get(nativeTypePrefix.replace(
											":", "")))) {
								// IT IS A NATIVE TYPE
								no = new NativeObject();
								no.setObjectName(new QName(inPartName));
								no.setObjectType(new QName(inPartType
										.getLocalPart() + " (NATIVE)"));
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ParsingUtils.javauniversAAL Remote Interoperability Internet Gateway312
org\universAAL\ri\wsdlToolkit\axis2Parser\ParsingUtils.javauniversAAL Remote Interoperability Internet Gateway378
	public static XmlSchemaObject searchSchemaIncludesForAttributeGroup_ITERATIVE_10_IterationsMax(
			org.apache.ws.commons.schema.XmlSchema initialSchema,
			QName schemaTypeName, int iterationsCount) {

		System.out.println(iterationsCount);
		if (schemaTypeName == null || iterationsCount > 10) {
			// -System.out.prinln("NULL!");
			return null;
		}

		/*
		 * if(schemaHasAlreadyBeenParsed(initialSchema.getTargetNamespace())){
		 * return null; }
		 * parsedSchemasForAttSearch_ITERATIVE.add(initialSchema.getTargetNamespace
		 * ());
		 */

		XmlSchemaObjectCollection includedSchemas = initialSchema.getIncludes();
		if (includedSchemas == null)
			return null;
		Iterator iter1 = includedSchemas.getIterator();
		while (iter1.hasNext()) {
			Object obj = iter1.next();
			if (obj == null)
				continue;

			org.apache.ws.commons.schema.XmlSchema theIncludedOrImportedSchema = null;

			if (obj.getClass().getName()
					.contains("org.apache.ws.commons.schema.XmlSchemaInclude")) {
				org.apache.ws.commons.schema.XmlSchemaInclude includedSchema = (org.apache.ws.commons.schema.XmlSchemaInclude) obj;
				theIncludedOrImportedSchema = includedSchema.getSchema();
				System.out.println();
			} else if (obj.getClass().getName()
					.contains("org.apache.ws.commons.schema.XmlSchemaImport")) {
				org.apache.ws.commons.schema.XmlSchemaImport importedSchema = (org.apache.ws.commons.schema.XmlSchemaImport) obj;
				theIncludedOrImportedSchema = importedSchema.getSchema();
				// theIncludedOrImportedSchema.get
				System.out.println();
			}
			if (theIncludedOrImportedSchema == null)
				continue;

			XmlSchemaObjectTable groupsCollectionTable = theIncludedOrImportedSchema
					.getAttributeGroups();
FileProjectLine
org\universAAL\samples\lighting\server\LightingProvider.javauniversAAL Samples Lighting Server (OSGi)114
org\universAAL\ri\gateway\support\home\LightingProvider1.javauniversAAL Samples AALSpace Gateway Communicator :: Home Node101
    private static ContextEventPattern[] providedEvents(MyLighting theServer) {
	// the LightingProvioder publishes its context events only from within
	// "lampStateChanged()" below

	// here, we must try to ontologically describe the nature of those
	// context events; to put it casually, we know that these events have
	// always a light source as subject and that the event is always about
	// the change of their brightness; the used value for the brightness is
	// always either 0% or 100%, meaning that these light sources cannot be
	// dimmed

	// we do this by providing two alternative descriptions based on two
	// disjoint assumptions:

	// Assumption 1: "theServer" below controls only a pre-determined set of
	// light sources without any dynamic changes

	// Assumption 2: light sources controlled by "theServer" below might
	// change dynamically; new light sources can always be added and
	// existing ones might disappear and even might come back again

	// however, the following is for both alternatives equal, namely

	// 1) that the event is always about the change of brightness
	MergedRestriction predicateRestriction = MergedRestriction
		.getFixedValueRestriction(ContextEvent.PROP_RDF_PREDICATE,
			LightSource.PROP_SOURCE_BRIGHTNESS);

	// and 2) that the reported value will always be either 0 or 100
	MergedRestriction objectRestriction = MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			ContextEvent.PROP_RDF_OBJECT, new Enumeration(
				new Integer[] { new Integer(0),
					new Integer(100) }), 1, 1);

	// now we demonstrate how each of the two alternatives discussed above
	// would work for describing the subjects of our context events

	// let's start with the variant 1 under the assumption 1
	// in this case, we can say that the subject of the context events is
	// always a member of a given set
	// in order to build this set, we must first fetch the set members from
	// a helper method
	LightSource[] myLights = getAllLightSources(theServer);

	// the following is to say that the subject of my context events is
	// always one single member of the above array
	MergedRestriction subjectRestriction = MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			ContextEvent.PROP_RDF_SUBJECT,
			new Enumeration(myLights), 1, 1);

	// now we can close the first variant by creating a ContextEventPattern
	// and adding the above restrictions to it
	ContextEventPattern cep1 = new ContextEventPattern();
	cep1.addRestriction(subjectRestriction);
	cep1.addRestriction(predicateRestriction);
	cep1.addRestriction(objectRestriction);

	// now, let's switch to the variant 2 under the assumption 2 for an
	// alternative way of describing the subject part

	// the subject of these context events is always an instance of
	// LightSource of type "light bulb" whose property srcLocation is always
	// an instance of Room
	Intersection xsection = new Intersection();
	xsection.addType(new TypeURI(LightSource.MY_URI, false));
	xsection.addType(MergedRestriction.getFixedValueRestriction(
		LightSource.PROP_HAS_TYPE, ElectricLight.lightBulb));
	xsection.addType(MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			LightSource.PROP_PHYSICAL_LOCATION, Room.MY_URI, 1, 1));
	subjectRestriction = MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			ContextEvent.PROP_RDF_SUBJECT, xsection, 1, 1);

	// now we can close the second variant as well, by creating a
	// ContextEventPattern and adding the above restrictions to it
	ContextEventPattern cep2 = new ContextEventPattern();
	cep2.addRestriction(subjectRestriction);
	cep2.addRestriction(predicateRestriction);
	cep2.addRestriction(objectRestriction);

	// we must actually make a decision and return only one of the above
	// alternatives, but here we return both in order to indicate that
	// context providers might provide different classes of context events
	// and hence might be forced to return several such descriptions of
	// their events
	return new ContextEventPattern[] { cep1, cep2 };
    }

    // the original server being here wrapped and bound to universAAL
    private MyLighting theServer;

    // needed for publishing context events (whenever you think that it might be
    // important to share a new info with other components in a universAAL-based
    // AAL SPace, you have to publish that info as a context event
    private ContextPublisher cp;
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ParsingUtils.javauniversAAL Remote Interoperability Internet Gateway312
org\universAAL\ri\wsdlToolkit\axis2Parser\ParsingUtils.javauniversAAL Remote Interoperability Internet Gateway444
	public static XmlSchemaObject searchSchemaIncludesForAttribute_ITERATIVE_10_IterationsMax(
			org.apache.ws.commons.schema.XmlSchema initialSchema,
			QName schemaTypeName, int iterationsCount) {

		System.out.println(iterationsCount);
		if (schemaTypeName == null || iterationsCount > 10) {
			// -System.out.prinln("NULL!");
			return null;
		}

		/*
		 * if(schemaHasAlreadyBeenParsed(initialSchema.getTargetNamespace())){
		 * return null; }
		 * parsedSchemasForAttSearch_ITERATIVE.add(initialSchema.getTargetNamespace
		 * ());
		 */

		XmlSchemaObjectCollection includedSchemas = initialSchema.getIncludes();
		if (includedSchemas == null)
			return null;
		Iterator iter1 = includedSchemas.getIterator();
		while (iter1.hasNext()) {
			Object obj = iter1.next();
			if (obj == null)
				continue;

			org.apache.ws.commons.schema.XmlSchema theIncludedOrImportedSchema = null;

			if (obj.getClass().getName()
					.contains("org.apache.ws.commons.schema.XmlSchemaInclude")) {
				org.apache.ws.commons.schema.XmlSchemaInclude includedSchema = (org.apache.ws.commons.schema.XmlSchemaInclude) obj;
				theIncludedOrImportedSchema = includedSchema.getSchema();
				System.out.println();
			} else if (obj.getClass().getName()
					.contains("org.apache.ws.commons.schema.XmlSchemaImport")) {
				org.apache.ws.commons.schema.XmlSchemaImport importedSchema = (org.apache.ws.commons.schema.XmlSchemaImport) obj;
				theIncludedOrImportedSchema = importedSchema.getSchema();
				// theIncludedOrImportedSchema.get
				System.out.println();
			}
			if (theIncludedOrImportedSchema == null)
				continue;

			XmlSchemaObjectTable attsCollectionTable = theIncludedOrImportedSchema
FileProjectLine
org\universAAL\lddi\exporter\activityhub\util\LogTracker.javauniversAAL LDDI Exporter of ActivityHub devices (ISO 11073-10471)32
org\universAAL\lddi\lib\activityhub\util\LogTracker.javauniversAAL LDDI Library for ISO/IEEE 11073 standard - ActivityHub Specification32
public class LogTracker extends ServiceTracker implements LogService {

	@Override
	public Object addingService(ServiceReference reference) {
		Object ret = super.addingService(reference);
		log(LOG_DEBUG,"LogService added!");
		return ret;
	}

	@Override
	public void modifiedService(ServiceReference reference, Object service) {
		super.modifiedService(reference, service);
		log(LOG_DEBUG,"LogService modified!");
	}

	@Override
	public void removedService(ServiceReference reference, Object service) {
		super.removedService(reference, service);
		log(LOG_DEBUG,"LogService removed!");
	}

	public LogTracker(BundleContext context) {
		super(context, LogService.class.getName(), null);
	}

	public void log(int level, String message) {
		log(null, level, message, null);
	}

	public void log(int level, String message, Throwable exception) {
		log(null, level, message, exception);
	}

	public void log(ServiceReference sr, int level, String message) {
		log(sr, level, message, null);
	}

	public void log(ServiceReference sr, int level, String message,
			Throwable exception) {
		LogService log = (LogService) getService(); //obtain optional, unary LogService
		if (log != null) {
			log.log(sr, level, message, exception);
		}
	}

}
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10415APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation26
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10417APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation26
	public Aarq10417APDUtest(){
		
		apdu = new byte[]{
				(byte)0xE2, (byte)0x00, 						//choice APDU
				(byte)0x00, (byte)0x32, 						//length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // association version
				(byte)0x00, (byte)0x01, (byte)0x00, (byte)0x2A, // data protocol list = 1, length 42
				(byte)0x50, (byte)0x79,  						// data protocol id 20601
				(byte)0x00, (byte)0x26,							// data proto info length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // protocol version
				(byte)0x80, (byte)0x00, 						// encoding rules (MDER)
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00,	// nomenclature version
				(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, // functional units
				(byte)0x00, (byte)0x80, (byte)0x00, (byte)0x00, // sysType (agent)
				(byte)0x00, (byte)0x08, 						// sys-id length (8)
				(byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44, // sys-id
				(byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88,
				(byte)0x06, (byte)0xA4, 						 //dev config id (standard 700 -> blood pressure)
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10407APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation26
org\universAAL\lddi\lib\ieeex73std\testchannel20601\UnknownCfg.javauniversAAL LDDI Library IEEE x073 standard implementation26
	public UnknownCfg(){
		
		apdu = new byte[]{
				(byte)0xE2, (byte)0x00, 						//choice APDU
				(byte)0x00, (byte)0x32, 						//length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // association version
				(byte)0x00, (byte)0x01, (byte)0x00, (byte)0x2A, // data protocol list = 1, length 42
				(byte)0x50, (byte)0x79,  						// data protocol id 20601
				(byte)0x00, (byte)0x26,							// data proto info length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // protocol version
				(byte)0xA0, (byte)0x00, 						// encoding rules (MDER)
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00,	// nomenclature version
				(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, // functional units
				(byte)0x00, (byte)0x80, (byte)0x00, (byte)0x00, // sysType (agent)
				(byte)0x00, (byte)0x08, 						// sys-id length (8)
				(byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44, // sys-id
				(byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88,
				(byte)0x40, (byte)0x00, 						 //dev config id (standard 700 -> blood pressure)
FileProjectLine
org\universAAL\lddi\exporter\activityhub\util\LogTracker.javauniversAAL LDDI Exporter of ActivityHub devices (ISO 11073-10471)32
org\universAAL\lddi\knx\devicemanager\util\LogTracker.javauniversAAL LDDI KNX device manager32
public class LogTracker extends ServiceTracker implements LogService {

	@Override
	public Object addingService(ServiceReference reference) {
		Object ret = super.addingService(reference);
//		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService added!");
		log(LOG_DEBUG,"LogService added!");
		return ret;
	}

	@Override
	public void modifiedService(ServiceReference reference, Object service) {
		super.modifiedService(reference, service);
//		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService modified!");
		log(LOG_DEBUG,"LogService modified!");
	}

	@Override
	public void removedService(ServiceReference reference, Object service) {
		super.removedService(reference, service);
//		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService removed!");
		log(LOG_DEBUG,"LogService removed!");
	}

	public LogTracker(BundleContext context) {
		super(context, LogService.class.getName(), null);
	}

	public void log(int level, String message) {
		log(null, level, message, null);
	}

	public void log(int level, String message, Throwable exception) {
		log(null, level, message, exception);
	}

	public void log(ServiceReference sr, int level, String message) {
		log(sr, level, message, null);
	}

	public void log(ServiceReference sr, int level, String message,
			Throwable exception) {
		LogService log = (LogService) getService(); //obtain optional, unary LogService
		if (log != null) {
			log.log(sr, level, message, exception);
		} else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway3062
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway3233
														.println("WARNING @line ~1208... UNDEFINED Variable name!!!");
											}
											// no1.setNamespaceURI(elem1.getSchemaTypeName().getNamespaceURI());
											// no1.additionalInfo =
											// elem1.getSchemaTypeName().getNamespaceURI();
											ComplexObject unionCO = SimpleTypesParser
													.parseSimpleType(
															null,
															elem1.getSchemaType(),
															no1, theDefinition,
															service);
											if (unionCO == null) {
												if (no1.getAdditionalInfo() != null
														&& no1.getAdditionalInfo()
																.contains(
																		"isListType")) {
													ComplexObject noArrayCO = new ComplexObject();
													noArrayCO.setObjectName(no1
															.getObjectName());
													noArrayCO
															.setObjectType(new QName(
																	no1.getObjectType()
																			.getNamespaceURI(),
																	no1.getObjectType()
																			.getLocalPart()
																			+ "[]",
																	no1.getObjectType()
																			.getPrefix()));
													noArrayCO
															.setIsArrayType(true);
													noArrayCO
															.getHasNativeObjects()
															.add(no1);
													// noArrayCO.setIsOptional(no1.isIsOptional());
													containedCO
															.getHasComplexObjects()
															.add(noArrayCO);

												} else {
													containedCO
															.getHasNativeObjects()
															.add(no1);
												}
											} else {
												ComplexObject co1 = new ComplexObject();
												co1.setObjectName(no1
														.getObjectName());
												if (elem1.getSchemaType()
														.getQName() != null) {
													co1.setObjectType(elem1
															.getSchemaType()
															.getQName());
												} else {
													System.out.println();
												}
												co1.getHasComplexObjects().add(
														unionCO);
												containedCO
														.getHasExtendedObjects()
														.add(co1);
											}
										}
FileProjectLine
org\universAAL\samples\ctxtbus\HistoryCaller.javauniversAAL Samples Context bus tester82
org\universAAL\samples\ctxtbus\HistoryCaller.javauniversAAL Samples Context bus tester192
		.call(getGetEventsSPARQLRequest(query));
	if (response.getCallStatus() == CallStatus.succeeded) {
	    Object value = getReturnValue(response.getOutputs(),
		    OUTPUT_LIST_OF_EVENTS);
	    if (value instanceof Resource) {
		if (((Resource) value).getURI().contains("#nil")) {
		    log.info("History Client - result is empty");
		    return 0;
		}
	    } else {
		try {
		    ContextEvent[] events = (ContextEvent[]) ((List) value)
			    .toArray(new ContextEvent[((List) value).size()]);

		    for (int j = 0; j < events.length; j++) {
			count++;
			log.info("Retrieved context event from CHe:\n"
				+ "    Subject     ="
				+ events[j].getSubjectURI() + "\n"
				+ "    Subject type="
				+ events[j].getSubjectTypeURI() + "\n"
				+ "    Predicate   ="
				+ events[j].getRDFPredicate() + "\n"
				+ "    Object      ="
				+ events[j].getRDFObject());
			log.info(Activator.ser.serialize(events[j]));
		    }
		} catch (Exception e) {
		    log.info("History Client: List of events corrupt!", e);
		}
	    }
	} else
	    log.info("History Client - status of getEvents(): "
		    + response.getCallStatus());
	return count;
    }

    private ServiceRequest getGetEventsSPARQLRequest(String query) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway542
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway572
				Object obj = inHeaderObjsIter.next();
				if (obj.getClass().getName().contains("NativeObject")) {
					NativeObject no = (NativeObject) obj;
					no.setHasParent(oper);

					QName[] qNarray = new QName[inQNamesSoFar.size() + 1];
					for (int i = 0; i < inQNamesSoFar.size(); i++) {
						qNarray[i] = (QName) inQNamesSoFar.get(i);
					}
					qNarray[qNarray.length - 1] = no.getObjectName();

				} else if (obj.getClass().getName().contains("ComplexObject")) {
					ComplexObject co = (ComplexObject) obj;
					co.setHasParent(oper);

					QName[] qNarray = new QName[inQNamesSoFar.size() + 1];
					for (int i = 0; i < inQNamesSoFar.size(); i++) {
						qNarray[i] = (QName) inQNamesSoFar.get(i);
					}
					qNarray[qNarray.length - 1] = co.getObjectName();

					Vector newQNamesVector = (Vector) inQNamesSoFar.clone();
					newQNamesVector.add(qNarray[qNarray.length - 1]);

					fixComplexObjectPathIterative(co, newQNamesVector, 0);
				}
			}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2273
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2861
											}
										}

										// -ta.append(prefix+"-"+attName+" ["+attType+"]  "+additionalInfo);

										// Find the Type of the attName...
										// ITERATIVE PROCESS.........
										if (attType
												.startsWith(nativeTypePrefix)) {
											// EINAI NATIVE TYPE
											NativeObject no1 = new NativeObject();
											no1.setObjectName(new QName(attName));
											no1.setObjectType(new QName(attType
													+ " (NATIVE)"));
											co.getHasNativeObjects().add(no1);

										} else if (attType
												.startsWith(targetNamespacePrefix)) {
											// PSAXNW GIA TO TYPE MESA STO
											// definition

											ComplexObject co1 = new ComplexObject();
											co1.setObjectName(new QName(attName));
											co1.setAdditionalInfo(additionalInfo);
											co1.setObjectType(new QName(attType
													+ " (COMPLEX)"));

											String type1 = attType.substring(4,
													attType.length());
											if (type1.startsWith("ArrayOf")) {
												type1 = type1.replaceFirst(
														"ArrayOf", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (type1.endsWith("Array")) {
												type1 = type1.substring(0,
														type1.length() - 5);
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (attType.endsWith("[]")) {
												type1 = type1.replace("[]", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											}
											parseTypeIterative(s1, type1,
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\MyVerticalFlowLayout.javauniversAAL UI Handler Swing Look and Feel Classic507
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\Layout\VerticalFlowLayout.javauniversAAL UI Handler Swing492
    }

    /**
     * Lays out the container. This method lets each 
     * <i>visible</i> component take
     * its preferred size by reshaping the components in the
     * target container in order to satisfy the alignment of
     * this <code>VerticalFlowLayout</code> object.
     *
     * @param target the specified component being laid out
     * @see Container
     * @see       java.awt.Container#doLayout
     */
    public void layoutContainer(Container target) {
      synchronized (target.getTreeLock()) {
	Insets insets = target.getInsets();
	int maxwidth = target.getWidth() - (insets.left + insets.right + hgap*2);
	int maxheight = target.getHeight() - (insets.top + insets.bottom + vgap*2);
	int nmembers = target.getComponentCount();
	int x = insets.left + hgap, y = 0;
	int colw = 0, start = 0;

        boolean ltr = target.getComponentOrientation().isLeftToRight();

	for (int i = 0 ; i < nmembers ; i++) {
	    Component m = target.getComponent(i);
	    if (m.isVisible()) {
		Dimension d = m.getPreferredSize();
		if (maximizeOtherDimension) {
			d.width = maxwidth;
		}
		m.setSize(d.width, d.height);

		if ((y == 0) || ((y + d.height) <= maxheight)) {
		    if (y > 0) {
			y += vgap;
		    }
		    y += d.height;
		    colw = Math.max(colw, d.width);
		} else {
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\OntologyType.javauniversAAL Middleware Interfaces (Core)72
org\universAAL\middleware\deploymanager\uapp\model\OntologyType.javauniversAAL Middleware XSD Schemas71
@XmlType(name = "ontologyType", propOrder = {
    "name",
    "uri",
    "location"
})
public class OntologyType
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    @XmlSchemaType(name = "anyURI")
    protected String uri;
    @XmlElement(required = true)
    protected OntologyType.Location location;

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

    /**
     * Gets the value of the uri property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getUri() {
        return uri;
    }

    /**
     * Sets the value of the uri property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setUri(String value) {
        this.uri = value;
    }

    public boolean isSetUri() {
        return (this.uri!= null);
    }

    /**
     * Gets the value of the location property.
     *
     * @return
     *     possible object is
     *     {@link OntologyType.Location }
     *
     */
    public OntologyType.Location getLocation() {
        return location;
    }

    /**
     * Sets the value of the location property.
     *
     * @param value
     *     allowed object is
     *     {@link OntologyType.Location }
     *
     */
    public void setLocation(OntologyType.Location value) {
        this.location = value;
    }

    public boolean isSetLocation() {
        return (this.location!= null);
    }


    /**
     * <p>Java class for anonymous complex type.
     *
     * <p>The following schema fragment specifies the expected content contained within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;choice maxOccurs="3" minOccurs="0">
     *         &lt;element name="path" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="runtimeId" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         &lt;element name="url" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *       &lt;/choice>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "pathOrRuntimeIdOrUrl"
    })
    public static class Location
        implements Serializable
    {

        private final static long serialVersionUID = 12343L;
        @XmlElementRefs({
            @XmlElementRef(name = "runtimeId", namespace = "http://www.universaal.org/aal-uapp/v1.0.2", type = JAXBElement.class),
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1229
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1282
																elementGotFromTheSymbolTable,
																theSymbolTable,
																sh.getMessage(),
																theParsedDefinition);
														if (nativeOrComplexObject != null) {
															if (nativeOrComplexObject
																	.getClass()
																	.getName()
																	.contains(
																			"NativeObject")) {
																NativeObject no = (NativeObject) nativeOrComplexObject;
																if (sh.getPart() != null
																		&& sh.getPart()
																				.length() > 0) {
																	no.setObjectName(new QName(
																			sh.getPart()));
																}
																if (sh.getRequired() != null
																		&& sh.getRequired() == false) {
																	no.setIsOptional(true);
																}
																mitsosOperationInput
																		.getHasSoapHeaders()
																		.add(no);
															} else if (nativeOrComplexObject
																	.getClass()
																	.getName()
																	.contains(
																			"ComplexObject")) {
																ComplexObject co = (ComplexObject) nativeOrComplexObject;
																if (sh.getPart() != null
																		&& sh.getPart()
																				.length() > 0) {
																	co.setObjectName(new QName(
																			sh.getPart()));
																}
																if (sh.getRequired() != null
																		&& sh.getRequired() == false) {
																	co.setIsOptional(true);
																}
																mitsosOperationInput
																		.getHasSoapHeaders()
																		.add(co);
															}
														}
													} else {
FileProjectLine
org\universAAL\hw\exporter\zigbee\ha\devices\ExporterActuatorCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation156
org\universAAL\support\utils\service\mid\UtilActuator.javauniversAAL Support Utilities API126
	ServiceProfile[] profiles = new ServiceProfile[3];

	PropertyPath ppath = new PropertyPath(null, true, new String[] {
		DeviceService.PROP_CONTROLS, Actuator.PROP_HAS_VALUE });

	ProcessInput input = new ProcessInput(namespace + IN_DEVICE);
	input.setParameterType(actuator.getClassURI());
	input.setCardinality(1, 0);

	MergedRestriction r = MergedRestriction.getFixedValueRestriction(
		DeviceService.PROP_CONTROLS, actuator);

	Service getOnOff = (Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SERVICE_GET_ON_OFF);
	profiles[0] = getOnOff.getProfile();
	ProcessOutput output = new ProcessOutput(namespace + OUT_GET_ON_OFF);
	output.setCardinality(1, 1);
	profiles[0].addOutput(output);
	profiles[0].addSimpleOutputBinding(output, ppath.getThePath());
	profiles[0].addInput(input);
	profiles[0].getTheService().addInstanceLevelRestriction(r,
		new String[] { DeviceService.PROP_CONTROLS });

	Service turnOff = (Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SERVICE_TURN_OFF);
	profiles[1] = turnOff.getProfile();
	profiles[1].addChangeEffect(ppath.getThePath(), StatusValue.NotActivated);
FileProjectLine
org\universAAL\ui\dm\ui\preferences\buffer\UISubprofileInitializator.javauniversAAL UI Dialog Manager 2.0184
org\universAAL\ui\dm\ui\preferences\buffer\UISubprofileInitializator.javauniversAAL UI Dialog Manager 2.0272
	alertPref.setAlertOption(AlertType.visualOnly);
	uiPrefsSubProfile.setAlertPreferences(alertPref);

	AccessMode accessMode = new AccessMode(uiPrefsSubProfile.getURI()
		+ "AccessMode");
	accessMode.setAuditoryModeStatus(Status.on);
	accessMode.setOlfactoryModeStatus(Status.off);
	accessMode.setTactileModeStatus(Status.off);
	accessMode.setVisualModeStatus(Status.on);
	accessMode.setTextualModeStatus(Status.on);
	uiPrefsSubProfile.setAccessMode(accessMode);

	AuditoryPreferences auditoryPreferences = new AuditoryPreferences(
		uiPrefsSubProfile.getURI() + "AuditoryPreferences");
	auditoryPreferences.setKeySoundStatus(Status.off);
	auditoryPreferences.setPitch(Intensity.medium);
	auditoryPreferences.setSpeechRate(Intensity.medium);
	auditoryPreferences.setVolume(Intensity.medium);
	auditoryPreferences.setVoiceGender(VoiceGender.female);
	auditoryPreferences.setSystemSounds(Status.on);
	uiPrefsSubProfile.setAudioPreferences(auditoryPreferences);

	SystemMenuPreferences systemMenuPreferences = new SystemMenuPreferences(
		uiPrefsSubProfile.getURI() + "SystemMenuPreferences");
	systemMenuPreferences
		.setMainMenuConfiguration(MainMenuConfigurationType.taskBar);
	systemMenuPreferences.setUIRequestPersistance(Status.on);
	systemMenuPreferences
		.setPendingDialogBuilder(PendingDialogsBuilderType.table);
	systemMenuPreferences
		.setPendingMessageBuilder(PendingMessageBuilderType.simpleTable);
	systemMenuPreferences.setSearchFeatureIsFirst(Status.on);
	uiPrefsSubProfile.setSystemMenuPreferences(systemMenuPreferences);

	VisualPreferences visualPreferences = new VisualPreferences(
		uiPrefsSubProfile.getURI() + "VisualPreferences");
	visualPreferences.setBackgroundColor(ColorType.lightBlue);
	visualPreferences.setBrightness(Intensity.medium);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2674
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2800
								.getNodeValue().equals(baseType)) {
					NodeList childrenOfChildOfSchema = n.getChildNodes();
					if (childrenOfChildOfSchema != null) {
						for (int j = 0; j < childrenOfChildOfSchema.getLength(); j++) {
							Node n1 = childrenOfChildOfSchema.item(j);
							// //-System.out.println("GAAAAAAAAAAAOOOOOOO "+n1.getNodeName());
							NodeList childrenOfTheDamned = n1.getChildNodes();
							if (childrenOfTheDamned != null) {
								for (int k = 0; k < childrenOfTheDamned
										.getLength(); k++) {
									// //-System.out.println("\tGAAAAAAAAAAAAAAAAAAOOOOOOOOOOO "+childrenOfTheDamned.item(k).getNodeName());

									if (childrenOfTheDamned.item(k)
											.getNodeName().contains("element")) {
										NamedNodeMap attributesOfType = childrenOfTheDamned
												.item(k).getAttributes();
										// //-System.out.println("WWW GAMWTOOOO...... TYPES...");
										String attName = "";
										String attType = "";
										String additionalInfo = "";

										// EDW EINAI OOOOLH H MAGKIA MOU ME TA
										// TYPES!!!!!!!!!!!!!!!
										// WWW GAMWTOOOO
										// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW!!!!!!!!!!!!!!!!!!!!!!!!
										// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
										// WWWWW
										// W
										// W
										for (int k1 = 0; k1 < attributesOfType
												.getLength(); k1++) {
											Node att = attributesOfType
													.item(k1);
											if (att.getNodeName()
													.equalsIgnoreCase("name")) {
												// //-System.out.println("\tName: "+att.getNodeValue());
												attName = att.getNodeValue();
											} else if (att.getNodeName()
													.equalsIgnoreCase("type")) {
												// //-System.out.println("\tType: "+att.getNodeValue());
												attType = att.getNodeValue();
											} else {
												// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
												additionalInfo += att
														.getNodeName()
														+ ":"
														+ att.getNodeValue()
														+ "   ";
											}
										}

										String prefix = "\n\t\t\t\t";

										/*
										 * if(!fromLiteral){ prefix+="\t"; }
										 */

										if (iterNumber > 0) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2397
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3153
													iterNumber + 1, co);

											NodeList childrenOfChildOfSchema1 = childrenOfTheDamned
													.item(k).getChildNodes();

											if (childrenOfChildOfSchema1 != null) {
												for (int j1 = 0; j1 < childrenOfChildOfSchema1
														.getLength(); j1++) {
													Node n11 = childrenOfChildOfSchema1
															.item(j1);
													// //-System.out.println("GAAAAAAAAAAAOOOOOOO "+n1.getNodeName());
													NodeList childrenOfTheDamned1 = n11
															.getChildNodes();
													if (childrenOfTheDamned1 != null) {
														for (int k5 = 0; k5 < childrenOfTheDamned1
																.getLength(); k5++) {
															// //-System.out.println("\tGAAAAAAAAAAAAAAAAAAOOOOOOOOOOO "+childrenOfTheDamned1.item(k5).getNodeName());

															if (childrenOfTheDamned1
																	.item(k5)
																	.getNodeName()
																	.contains(
																			"element")) {
																NamedNodeMap attributesOfType = childrenOfTheDamned1
																		.item(k5)
																		.getAttributes();
																// //-System.out.println("WWW GAMWTOOOO...... TYPES...");
																String attName = "";
																String attType = "";
																String additionalInfo = "";

																// EDW EINAI
																// OOOOLH H
																// MAGKIA MOU ME
																// TA
																// TYPES!!!!!!!!!!!!!!!
																// WWW GAMWTOOOO
																// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW!!!!!!!!!!!!!!!!!!!!!!!!
																// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
																// WWWWW
																// W
																// W
																for (int k51 = 0; k51 < attributesOfType
																		.getLength(); k51++) {
																	Node att = attributesOfType
																			.item(k51);
																	if (att.getNodeName()
																			.equalsIgnoreCase(
																					"name")) {
																		// //-System.out.println("\tName: "+att.getNodeValue());
																		attName = att
																				.getNodeValue();
																	} else if (att
																			.getNodeName()
																			.equalsIgnoreCase(
																					"type")) {
																		// //-System.out.println("\tType: "+att.getNodeValue());
																		attType = att
																				.getNodeValue();
																	} else {
																		// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
																		additionalInfo += att
																				.getNodeName()
																				+ ":"
																				+ att.getNodeValue()
																				+ "   ";
																	}
																}
FileProjectLine
org\universAAL\middleware\context\ContextEvent.javauniversAAL Middleware Context Bus (Core)214
org\universAAL\ontology\che\ContextEvent.javauniversAAL Ontology Context History Entrepot170
	setRDFObject(eventObject);
	// setTimestamp(new Long(System.currentTimeMillis()))
	// The timestamp can in this case be unset for wildcarding, and set
	// later
    }

    /**
     * Get the confidence of the event.
     * 
     * @return The confidence represented as a percentage (0 to 100)
     */
    public Integer getConfidence() {
	return (Integer) getProperty(PROP_CONTEXT_CONFIDENCE);
    }

    /**
     * Get the expiration time.
     * 
     * @return The amount of milliseconds after reception from which the
     *         information in the event is no longer valid
     */
    public Long getExpirationTime() {
	return (Long) getProperty(PROP_CONTEXT_EXPIRATION_TIME);
    }

    public int getPropSerializationType(String propURI) {
	return (PROP_RDF_SUBJECT.equals(propURI) || PROP_CONTEXT_PROVIDER
		.equals(propURI)) ? PROP_SERIALIZATION_REDUCED
		: PROP_SERIALIZATION_FULL;
    }

    /**
     * Get the object of the event.
     * 
     * @return The object of the event (a Resource)
     */
    public Object getRDFObject() {
	return getProperty(PROP_RDF_OBJECT);
    }

    /**
     * Get the predicate of the event.
     * 
     * @return The URI of the predicate of the event
     */
    public String getRDFPredicate() {
	Object o = getProperty(PROP_RDF_PREDICATE);
	return (o instanceof Resource) ? o.toString() : null;
    }

    /**
     * Get the ContextProvider of the event.
     * 
     * @return The {@link org.universAAL.middleware.context.owl.ContextProvider}
     *         representing the provider that originated the event
     */
    public ContextProvider getProvider() {
	return (ContextProvider) props.get(PROP_CONTEXT_PROVIDER);
    }

    /**
     * Get the subject of the event.
     * 
     * @return The {@link org.universAAL.middleware.rdf.Resource} that is the
     *         subject to the event
     */
    public Resource getRDFSubject() {
	return (Resource) getProperty(PROP_RDF_SUBJECT);
    }

    /**
     * Get the type of the subject of the event.
     * 
     * @return The URI of the type of the subject to the event
     */
    public String getSubjectTypeURI() {
	Resource subject = (Resource) getProperty(PROP_RDF_SUBJECT);
	return (subject == null) ? null : subject.getType();
    }

    /**
     * Get the URI of the subject of the event.
     * 
     * @return The URI of the individual that is the subject to the event
     */
    public String getSubjectURI() {
	Resource subject = (Resource) getProperty(PROP_RDF_SUBJECT);
	return (subject == null) ? null : subject.getURI();
    }

    /**
     * Get the timestamp of the event.
     * 
     * @return The timestamp, in UNIX format, associated to the event
     */
    public Long getTimestamp() {
	return (Long) getProperty(PROP_CONTEXT_TIMESTAMP);
    }

    public boolean isWellFormed() {
	// return (getRDFSubject() != null && getRDFPredicate() != null &&
	// getRDFObject() != null);
	// We do not evaluate wellformedness because anything can be null
	return true;
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway459
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway296
								List extensibilityElementsList = bindingOper
										.getBindingInput()
										.getExtensibilityElements();
								if (extensibilityElementsList != null) {
									for (int f1 = 0; f1 < extensibilityElementsList
											.size(); f1++) {
										javax.wsdl.extensions.ExtensibilityElement extel = (javax.wsdl.extensions.ExtensibilityElement) extensibilityElementsList
												.get(f1);
										try {
											com.ibm.wsdl.extensions.soap.SOAPBodyImpl soapBodyImpl = (com.ibm.wsdl.extensions.soap.SOAPBodyImpl) extensibilityElementsList
													.get(f1);
											if (soapBodyImpl.getUse().equals(
													"encoded")) {
												operationUse = "encoded";
											} else if (soapBodyImpl.getUse()
													.equals("literal")) {
												operationUse = "literal";
											}
										} catch (Exception e) {
											try {
												com.ibm.wsdl.extensions.soap12.SOAP12BodyImpl soapBodyImpl = (com.ibm.wsdl.extensions.soap12.SOAP12BodyImpl) extensibilityElementsList
														.get(f1);
												if (soapBodyImpl.getUse()
														.equals("encoded")) {
													operationUse = "encoded";
												} else if (soapBodyImpl
														.getUse().equals(
																"literal")) {
													operationUse = "literal";
												}
											} catch (Exception e1) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway921
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1829
											sequenceCO.getHasComplexObjects()
													.add(unionCO);
										}
										System.out.println();
									} else {
										if (no1 != null
												&& no1.getAdditionalInfo() != null
												&& no1.getAdditionalInfo()
														.contains("isListType")) {
											if (newSimpleOrComplexObjectElement
													.getMaxOccurs() > 1) {
												ComplexObject noArrayCO = new ComplexObject();
												noArrayCO.setObjectName(no1
														.getObjectName());
												noArrayCO
														.setObjectType(new QName(
																no1.getObjectType()
																		.getNamespaceURI(),
																no1.getObjectType()
																		.getLocalPart()
																		+ "[][]",
																no1.getObjectType()
																		.getPrefix()));
												noArrayCO.setIsArrayType(true);

												ComplexObject noArrayCO_ListNO = new ComplexObject();
												noArrayCO_ListNO
														.setObjectName(no1
																.getObjectName());
												noArrayCO_ListNO
														.setObjectType(new QName(
																no1.getObjectType()
																		.getNamespaceURI(),
																no1.getObjectType()
																		.getLocalPart()
																		+ "[]",
																no1.getObjectType()
																		.getPrefix()));
												noArrayCO_ListNO
														.setIsArrayType(true);
												noArrayCO_ListNO
														.setIsOptional(no1
																.isIsOptional());
												noArrayCO_ListNO
														.getHasNativeObjects()
														.add(no1);

												noArrayCO
														.getHasComplexObjects()
														.add(noArrayCO_ListNO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2674
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2215
										.getNodeValue().equals(inPartTypeName)) {
							NodeList childrenOfChildOfSchema = n
									.getChildNodes();
							if (childrenOfChildOfSchema != null) {
								for (int j = 0; j < childrenOfChildOfSchema
										.getLength(); j++) {
									Node n1 = childrenOfChildOfSchema.item(j);
									// ////-System.out.println("GAAAAAAAAAAAOOOOOOO "+n1.getNodeName());
									NodeList childrenOfTheDamned = n1
											.getChildNodes();
									if (childrenOfTheDamned != null) {
										for (int k = 0; k < childrenOfTheDamned
												.getLength(); k++) {
											// ////-System.out.println("\tGAAAAAAAAAAAAAAAAAAOOOOOOOOOOO "+childrenOfTheDamned.item(k).getNodeName());

											if (childrenOfTheDamned.item(k)
													.getNodeName()
													.contains("element")) {
												NamedNodeMap attributesOfType = childrenOfTheDamned
														.item(k)
														.getAttributes();
												// //-System.out.println("WWW GAMWTOOOO...... TYPES...");
												String attName = "";
												String attType = "";
												String additionalInfo = "";

												// EDW EINAI OOOOLH H MAGKIA MOU
												// ME TA TYPES!!!!!!!!!!!!!!!
												// WWW GAMWTOOOO
												// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW!!!!!!!!!!!!!!!!!!!!!!!!
												// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
												// WWWWW
												// W
												// W
												for (int k1 = 0; k1 < attributesOfType
														.getLength(); k1++) {
													Node att = attributesOfType
															.item(k1);
													if (att.getNodeName()
															.equalsIgnoreCase(
																	"name")) {
														// //-System.out.println("\tName: "+att.getNodeValue());
														attName = att
																.getNodeValue();
													} else if (att
															.getNodeName()
															.equalsIgnoreCase(
																	"type")) {
														// //-System.out.println("\tType: "+att.getNodeValue());
														attType = att
																.getNodeValue();
													} else {
														// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
														additionalInfo += att
																.getNodeName()
																+ ":"
																+ att.getNodeValue()
																+ "   ";
													}
												}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1214
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway1790
					if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("Array")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().substring(0,
										inPartType.getLocalPart().length() - 5)
								+ "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().startsWith("ArrayOf")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart().replaceFirst(
										"ArrayOf", "") + "[] )";
					} else if (inPartType.getLocalPart() != null
							&& inPartType.getLocalPart().endsWith("[]")) {
						stringToAppendForArray = "  ( "
								+ inPartType.getLocalPart() + " )";
					}
					if (stringToAppendForArray != null) {
						// -ta.append(stringToAppendForArray);
					}

					NativeObject no = null;
					ComplexObject co = null;

					if (stringToAppendForArray == null) {// DEN EINAI ARRAY
						if (inPartType.getNamespaceURI().equals(
								namespaces.get(nativeTypePrefix
										.replace(":", "")))) {
							// IT IS A NATIVE TYPE
							no = new NativeObject();
							no.setObjectName(new QName(inPartName));
							no.setObjectType(new QName(inPartType
									.getLocalPart() + " (NATIVE)"));
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1997
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2318
							if (childrenOfTheDamned.getLength() > 0) {
								for (int k = 0; k < childrenOfTheDamned
										.getLength(); k++) {
									// ////-System.out.println("\t"+childrenOfTheDamned.item(k).getNodeName());
									NodeList childrenOfTheChildrenOfTheDamned = childrenOfTheDamned
											.item(k).getChildNodes();
									if (childrenOfTheChildrenOfTheDamned != null) {
										for (int k2 = 0; k2 < childrenOfTheChildrenOfTheDamned
												.getLength(); k2++) {
											if (childrenOfTheChildrenOfTheDamned
													.item(k2).getNodeName()
													.contains("element")) {
												NamedNodeMap attributesOfType = childrenOfTheChildrenOfTheDamned
														.item(k2)
														.getAttributes();
												// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
												String attName = "";
												String attType = "";
												String additionalInfo = "";

												// EDW EINAI OOOOLH H MAGKIA MOU
												// ME TA TYPES!!!!!!!!!!!!!!!
												for (int k1 = 0; k1 < attributesOfType
														.getLength(); k1++) {
													Node att = attributesOfType
															.item(k1);
													if (att.getNodeName()
															.equalsIgnoreCase(
																	"name")) {
														// ////-System.out.println("\tName: "+att.getNodeValue());
														attName = att
																.getNodeValue();
													} else if (att
															.getNodeName()
															.equalsIgnoreCase(
																	"type")) {
														// ////-System.out.println("\tType: "+att.getNodeValue());
														attType = att
																.getNodeValue();
													} else {
														// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
														additionalInfo += att
																.getNodeName()
																+ ":"
																+ att.getNodeValue()
																+ "   ";
													}
												}

												// -ta.append("\n\t\t\tName: "+attName);
												additionalInfo = additionalInfo
														.trim();
												// -ta.append("\n\t\t\tType: "+attType+"  ("+additionalInfo+")");

												// //-ta.append("\n\t\t\t\t-"+attName+" ["+attType+"]  "+additionalInfo);

												// Find the Type of the
												// attName...
												// ITERATIVE PROCESS.........
												if (attType
														.startsWith(MitsosParser.nativeTypePrefix)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway921
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1358
									choiceCO.getHasExtendedObjects().add(co1);
								}
								System.out.println();
							} else {
								if (no1 != null
										&& no1.getAdditionalInfo() != null
										&& no1.getAdditionalInfo().contains(
												"isListType")) {
									if (newSimpleOrComplexObjectElement
											.getMaxOccurs() > 1) {
										ComplexObject noArrayCO = new ComplexObject();
										noArrayCO.setObjectName(no1
												.getObjectName());
										noArrayCO.setObjectType(new QName(no1
												.getObjectType()
												.getNamespaceURI(), no1
												.getObjectType().getLocalPart()
												+ "[][]", no1.getObjectType()
												.getPrefix()));
										noArrayCO.setIsArrayType(true);

										ComplexObject noArrayCO_ListNO = new ComplexObject();
										noArrayCO_ListNO.setObjectName(no1
												.getObjectName());
										noArrayCO_ListNO
												.setObjectType(new QName(no1
														.getObjectType()
														.getNamespaceURI(), no1
														.getObjectType()
														.getLocalPart()
														+ "[]", no1
														.getObjectType()
														.getPrefix()));
										noArrayCO_ListNO.setIsArrayType(true);
										noArrayCO_ListNO.setIsOptional(no1
												.isIsOptional());
										noArrayCO_ListNO.getHasNativeObjects()
												.add(no1);

										noArrayCO.getHasComplexObjects().add(
												noArrayCO_ListNO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway976
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1553
                                                        if (no1 != null && no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType")) {
                                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                                ComplexObject noArrayCO = new ComplexObject();
                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);

                                                                ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                                noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                                noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO_ListNO.setIsArrayType(true);
                                                                noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                                noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                                noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                                co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1325
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1769
                        org.apache.ws.commons.schema.XmlSchemaChoice ctChoice = (XmlSchemaChoice) restriction.getParticle();

                        ComplexObject co1 = new ComplexObject();
                        co1.setObjectName(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                        co1.setObjectType(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                        co1.setIsAbstract(true);

                        AdditionalTypesParser.parseXMLSchemaChoiceElement(service, ctChoice, co1,
                                theDefinition, calledFromAbstractTypeParser);


                        if (ctChoice.getMinOccurs() == 0) {
                            co1.setIsOptional(true);
                        }

                        if (ctChoice.getMaxOccurs() > 1) {
                            //Array Type
                            ComplexObject arrayCO = new ComplexObject();
                            arrayCO.setObjectName(co1.getObjectName());
                            //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                    co1.getObjectType().getLocalPart() + "[]",
                                    co1.getObjectType().getPrefix()));
                            arrayCO.setIsArrayType(true);
                            arrayCO.getHasComplexObjects().add(co1);
                            arrayCO.setIsOptional(co1.isIsOptional());
                            co.getHasComplexObjects().add(arrayCO);
                        } else {
                            co.getHasComplexObjects().add(co1);
                        }

                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                        System.out.println("aaa!");

                    } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1054
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1501
                                                    if (content1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction")) {
                                                        System.out.println("123");
                                                        org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction restr =
                                                                (org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction) content1;
                                                        XmlSchemaObjectCollection facetsCol = (XmlSchemaObjectCollection) restr.getFacets();
                                                        NativeObject no = new NativeObject();
                                                        no.setObjectName(objectXMLSchemaElement.getQName());
                                                        no.setObjectType(restr.getBaseTypeName());
                                                        //no.setNamespaceURI(restr.getBaseTypeName().getNamespaceURI());
                                                        //no.setAdditionalInfo(restr.getBaseTypeName().getNamespaceURI()+"       ");

                                                        if (facetsCol != null && facetsCol.getCount() > 0) {
                                                            Iterator iter1 = facetsCol.getIterator();
                                                            while (iter1.hasNext()) {
                                                                org.apache.ws.commons.schema.XmlSchemaEnumerationFacet facet =
                                                                        (org.apache.ws.commons.schema.XmlSchemaEnumerationFacet) iter1.next();
                                                                no.setAdditionalInfo(no.getAdditionalInfo() + facet.getValue() + "   ");
                                                                no.getHasAllowedValues().add(facet.getValue());
                                                            }
                                                        }

                                                        co.getHasNativeObjects().add(no);
                                                    } else {
FileProjectLine
org\universAAL\ontology\profile\ProfileOntology.javauniversAAL Ontology Profiling274
org\universAAL\ontology\vcard\VCardOntology.javauniversAAL Ontology Profiling216
	oci.addSuperClass(ManagedIndividual.MY_URI);
	oci.addDatatypeProperty(VCard.PROP_BDAY).setFunctional();
	oci.addRestriction(MergedRestriction
		.getAllValuesRestrictionWithCardinality(VCard.PROP_BDAY,
			TypeMapper.getDatatypeURI(XMLGregorianCalendar.class),
			1, 1));
	oci.addObjectProperty(VCard.PROP_EMAIL);
	oci.addRestriction(MergedRestriction.getAllValuesRestriction(
		VCard.PROP_EMAIL, Email.MY_URI));
	oci.addDatatypeProperty(VCard.PROP_FN).setFunctional();
	oci.addRestriction(MergedRestriction
		.getAllValuesRestrictionWithCardinality(VCard.PROP_FN,
			TypeMapper.getDatatypeURI(String.class), 1, 1));
	oci.addObjectProperty(VCard.PROP_N).setFunctional();
	oci.addRestriction(MergedRestriction
		.getAllValuesRestrictionWithCardinality(VCard.PROP_N,
			Name.MY_URI, 1, 1));
	oci.addObjectProperty(VCard.PROP_ORG);
	oci.addRestriction(MergedRestriction.getAllValuesRestriction(
		VCard.PROP_ORG, Organization.MY_URI));
	oci.addObjectProperty(VCard.PROP_PHOTO);
	oci.addObjectProperty(VCard.PROP_TEL);
	oci.addRestriction(MergedRestriction.getAllValuesRestriction(
		VCard.PROP_TEL, Tel.MY_URI));
	oci.addObjectProperty(VCard.PROP_URL);
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)419
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)430
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 -
								// 191
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 -
								// 204
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 -
								// 217
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 -
								// 230
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 -
								// 243
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway892
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1125
                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                        co1.setObjectType(new QName("http://www.w3.org/2001/XMLSchema", "XmlSchemaChoice"));
                                        co1.setIsAbstract(true);

                                        AdditionalTypesParser.parseXMLSchemaChoiceElement(service, newSimpleOrComplexObjectElement, co1,
                                                theDefinition, calledFromAbstractTypeParser);


                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");

                                    } else if (obj1.getClass().getName().contains("XmlSchemaGroupRef")) {
FileProjectLine
org\universAAL\middleware\owl\Intersection.javauniversAAL Middleware Data Representation (Core)85
org\universAAL\middleware\owl\Union.javauniversAAL Middleware Data Representation (Core)68
	Union result = new Union();
	for (Iterator i = types.iterator(); i.hasNext();)
	    result.types.add(((TypeExpression) i.next()).copy());
	return result;
    }

    /** @see org.universAAL.middleware.owl.TypeExpression#getNamedSuperclasses() */
    public String[] getNamedSuperclasses() {
	ArrayList l = new ArrayList();
	String[] tmp;
	for (Iterator i = types.iterator(); i.hasNext();) {
	    tmp = ((TypeExpression) i.next()).getNamedSuperclasses();
	    if (tmp != null)
		for (int j = 0; j < tmp.length; j++)
		    collectTypesMinimized(tmp[j], l);
	}
	return (String[]) l.toArray(new String[l.size()]);
    }

    /** @see org.universAAL.middleware.owl.TypeExpression#getUpperEnumeration() */
    public Object[] getUpperEnumeration() {
	ArrayList l = new ArrayList();
	Object[] tmp;
	for (Iterator i = types.iterator(); i.hasNext();) {
	    tmp = ((TypeExpression) i.next()).getUpperEnumeration();
	    if (tmp.length == 0)
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)262
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)273
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 179 -
								// 191
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 192 -
								// 204
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 205 -
								// 217
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 218 -
								// 230
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 231 -
								// 243
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9 // Decimal 244 - 255
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2058
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2407
												} else if (attType
														.startsWith(MitsosParser.targetNamespacePrefix)) {
													// PSAXNW GIA TO TYPE MESA
													// STO definition
													// ////-System.out.println("#########################################  COMPLEX!!!! ITERATIVE");
													String type1 = attType
															.substring(
																	4,
																	attType.length());

													ComplexObject co = new ComplexObject();
													co.setObjectName(new QName(
															attName));
													co.setObjectType(new QName(
															attType));

													if (type1
															.startsWith("ArrayOf")) {
														type1 = type1
																.replaceFirst(
																		"ArrayOf",
																		"");
														// -ta.append("  ("+type1+"[])");
													} else if (type1
															.endsWith("Array")) {
														type1 = type1
																.substring(
																		0,
																		type1.length() - 5);
														// -ta.append("  ("+type1+"[])");
													} else if (attType
															.endsWith("[]")) {
														type1 = type1.replace(
																"[]", "");
														// -ta.append("  ("+type1+"[])");
													}
													co.setObjectType(new QName(
															type1));

													co.setAdditionalInfo(additionalInfo);

													Node parsedAttribute = parseTypeIterativeForXSDImport(
															importedSchema,
															type1, 0, true, co);

													if (operationInputs != null) {
														operationInputs
																.getHasNativeOrComplexObjects()
																.add(co);
													} else if (operationOutputs != null) {
														operationOutputs
																.getHasNativeOrComplexObjects()
																.add(co);
													}

												} else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway482
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway502
	private static Iterator findTheArrayObjectNodesInTheResponseBody(
			MessageContext inMsgCtx, NativeObject no, ComplexObject co) {
		if (inMsgCtx == null || inMsgCtx.getEnvelope() == null
				|| inMsgCtx.getEnvelope().getBody() == null) {
			return null;
		}
		Vector<OMElementImpl> vec = new Vector<OMElementImpl>();
		SOAPEnvelope response = inMsgCtx.getEnvelope();
		SOAPBody body = response.getBody();
		QName objectQName = null;
		if (no != null) {
			objectQName = no.getObjectName();
		} else if (co != null) {
			objectQName = co.getObjectName();

		}
		// Search first mesa sta children tou body
		Iterator iter1 = body.getChildren();
		while (iter1.hasNext()) {
			org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) iter1
					.next();
			Iterator it2 = childOMElement.getChildren();
			while (it2.hasNext()) {
				OMElementImpl childOMElement2 = (OMElementImpl) it2.next();
				if (childOMElement2.getQName().getLocalPart()
						.equals(objectQName.getLocalPart())) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway608
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway2260
				} else {
					if (no1 != null && no1.getAdditionalInfo() != null
							&& no1.getAdditionalInfo().contains("isListType")) {
						if (schElemOfType.getMaxOccurs() > 1) {
							ComplexObject noArrayCO = new ComplexObject();
							noArrayCO.setObjectName(no1.getObjectName());
							noArrayCO.setObjectType(new QName(no1
									.getObjectType().getNamespaceURI(), no1
									.getObjectType().getLocalPart() + "[][]",
									no1.getObjectType().getPrefix()));
							noArrayCO.setIsArrayType(true);

							ComplexObject noArrayCO_ListNO = new ComplexObject();
							noArrayCO_ListNO.setObjectName(no1.getObjectName());
							noArrayCO_ListNO.setObjectType(new QName(no1
									.getObjectType().getNamespaceURI(), no1
									.getObjectType().getLocalPart() + "[]", no1
									.getObjectType().getPrefix()));
							noArrayCO_ListNO.setIsArrayType(true);
							noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
							noArrayCO_ListNO.getHasNativeObjects().add(no1);

							noArrayCO.getHasComplexObjects().add(
									noArrayCO_ListNO);
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\FeaturesRoot.javauniversAAL Middleware Interfaces (Core)64
org\universAAL\middleware\deploymanager\uapp\model\FeaturesRoot.javauniversAAL Middleware XSD Schemas62
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "featuresRoot", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "repositoryOrFeature"
})
public class FeaturesRoot
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElements({
        @XmlElement(name = "repository", type = String.class),
        @XmlElement(name = "feature", type = Feature.class)
    })
    protected List<Serializable> repositoryOrFeature;
    @XmlAttribute(name = "name")
    protected String name;

    /**
     * Gets the value of the repositoryOrFeature property.
     *
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the repositoryOrFeature property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRepositoryOrFeature().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * {@link Feature }
     *
     *
     */
    public List<Serializable> getRepositoryOrFeature() {
        if (repositoryOrFeature == null) {
            repositoryOrFeature = new ArrayList<Serializable>();
        }
        return this.repositoryOrFeature;
    }

    public boolean isSetRepositoryOrFeature() {
        return ((this.repositoryOrFeature!= null)&&(!this.repositoryOrFeature.isEmpty()));
    }

    public void unsetRepositoryOrFeature() {
        this.repositoryOrFeature = null;
    }

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway706
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway761
					co1.setHasParent(co);
					co1.setIsInput(co.isIsInput());

					QName[] qNarray = new QName[qNamesSoFar.size() + 1];
					for (int i = 0; i < qNamesSoFar.size(); i++) {
						if (qNamesSoFar.get(i) != null) {
							QName qName1 = new QName(
									((QName) qNamesSoFar.get(i))
											.getNamespaceURI(),
									((QName) qNamesSoFar.get(i)).getLocalPart(),
									((QName) qNamesSoFar.get(i)).getPrefix());
							qNarray[i] = qName1;
						} else {
							qNarray[i] = new QName("");
						}
					}
					qNarray[qNarray.length - 1] = co1.getObjectName();

					Vector newQNamesVector = (Vector) qNamesSoFar.clone();
					newQNamesVector.add(qNarray[qNarray.length - 1]);

					count++;
					if (count < 30) {
						fixComplexObjectPathIterative(co1, newQNamesVector,
								count);
					}
				}
FileProjectLine
org\universAAL\samples\lighting\client_regular\LightClient.javauniversAAL Samples AAPI Regular Lighting Client134
org\universAAL\samples\lighting\client\LightClient.javauniversAAL Samples Lighting Client (OSGi)177
		start();
	}
	
	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setLayout(null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	* Auto-generated method for setting the popup menu for a component
	*/
	private void setComponentPopupMenu(final java.awt.Component parent, final javax.swing.JPopupMenu menu) {
		parent.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mousePressed(java.awt.event.MouseEvent e) {
				if(e.isPopupTrigger())
					menu.show(parent, e.getX(), e.getY());
			}
			public void mouseReleased(java.awt.event.MouseEvent e) {
				if(e.isPopupTrigger())
					menu.show(parent, e.getX(), e.getY());
			}
		});
	}
	

	
	private AbstractAction getOn() {
		if(On == null) {
			On = new AbstractAction("On", null) {
				public void actionPerformed(ActionEvent evt) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2408
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2511
											.startsWith(
													MitsosParser.targetNamespacePrefix)) {// COMPLEX
																							// TYPE
										// PSAXNW GIA TO TYPE MESA STO
										// definition
										// ////-System.out.println("#########################################  COMPLEX!!!! ITERATIVE");
										String type1 = attType.substring(4,
												attType.length());

										ComplexObject co = new ComplexObject();
										co.setObjectName(new QName(attName));
										co.setObjectType(new QName(attType));

										if (type1.startsWith("ArrayOf")) {
											type1 = type1.replaceFirst(
													"ArrayOf", "");
											// -ta.append("  ("+type1+"[])");
										} else if (type1.endsWith("Array")) {
											type1 = type1.substring(0,
													type1.length() - 5);
											// -ta.append("  ("+type1+"[])");
										} else if (attType.endsWith("[]")) {
											type1 = type1.replace("[]", "");
											// -ta.append("  ("+type1+"[])");
										}
										co.setObjectType(new QName(type1));

										co.setAdditionalInfo(additionalInfo);

										Node parsedAttribute = parseTypeIterativeForXSDImport(
												importedSchema, type1, 0, true,
												co);

										if (operationInputs != null) {
											operationInputs
													.getHasNativeOrComplexObjects()
													.add(co);
										} else if (operationOutputs != null) {
											operationOutputs
													.getHasNativeOrComplexObjects()
													.add(co);
										}

									} else if (n1.getAttributes()
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2318
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway632
							if (childrenOfTheDamned != null) {
								for (int k = 0; k < childrenOfTheDamned
										.getLength(); k++) {
									// ////-System.out.println("\t"+childrenOfTheDamned.item(k).getNodeName());
									NodeList childrenOfTheChildrenOfTheDamned = childrenOfTheDamned
											.item(k).getChildNodes();
									if (childrenOfTheChildrenOfTheDamned != null) {
										for (int k2 = 0; k2 < childrenOfTheChildrenOfTheDamned
												.getLength(); k2++) {
											if (childrenOfTheChildrenOfTheDamned
													.item(k2).getNodeName()
													.contains("element")) {
												NamedNodeMap attributesOfType = childrenOfTheChildrenOfTheDamned
														.item(k2)
														.getAttributes();
												// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
												String attName = "";
												String attType = "";
												String additionalInfo = "";

												// EDW EINAI OOOOLH H MAGKIA MOU
												// ME TA TYPES!!!!!!!!!!!!!!!
												for (int k1 = 0; k1 < attributesOfType
														.getLength(); k1++) {
													Node att = attributesOfType
															.item(k1);
													if (att.getNodeName()
															.equalsIgnoreCase(
																	"name")) {
														// ////-System.out.println("\tName: "+att.getNodeValue());
														attName = att
																.getNodeValue();
													} else if (att
															.getNodeName()
															.equalsIgnoreCase(
																	"type")) {
														// ////-System.out.println("\tType: "+att.getNodeValue());
														attType = att
																.getNodeValue();
													} else {
														// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
														additionalInfo += att
																.getNodeName()
																+ ":"
																+ att.getNodeValue()
																+ "   ";
													}
												}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2059
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2511
											.startsWith(
													MitsosParser.targetNamespacePrefix)) {// COMPLEX
																							// TYPE
										// PSAXNW GIA TO TYPE MESA STO
										// definition
										// ////-System.out.println("#########################################  COMPLEX!!!! ITERATIVE");
										String type1 = attType.substring(4,
												attType.length());

										ComplexObject co = new ComplexObject();
										co.setObjectName(new QName(attName));
										co.setObjectType(new QName(attType));

										if (type1.startsWith("ArrayOf")) {
											type1 = type1.replaceFirst(
													"ArrayOf", "");
											// -ta.append("  ("+type1+"[])");
										} else if (type1.endsWith("Array")) {
											type1 = type1.substring(0,
													type1.length() - 5);
											// -ta.append("  ("+type1+"[])");
										} else if (attType.endsWith("[]")) {
											type1 = type1.replace("[]", "");
											// -ta.append("  ("+type1+"[])");
										}
										co.setObjectType(new QName(type1));

										co.setAdditionalInfo(additionalInfo);

										Node parsedAttribute = parseTypeIterativeForXSDImport(
												importedSchema, type1, 0, true,
												co);

										if (operationInputs != null) {
											operationInputs
													.getHasNativeOrComplexObjects()
													.add(co);
										} else if (operationOutputs != null) {
											operationOutputs
													.getHasNativeOrComplexObjects()
													.add(co);
										}

									} else if (n1.getAttributes()
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway683
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1180
										co.getHasNativeObjects().add(no1);
									}
								} else {
									ComplexObject co2 = new ComplexObject();
									co2.setObjectName(no1.getObjectName());
									if (xmlSchemaType.getQName() != null) {
										co2.setObjectType(xmlSchemaType
												.getQName());
									} else {
										System.out.println();
									}
									co2.getHasComplexObjects().add(unionCO);
									co.getHasComplexObjects().add(co2);
								}

							} else if (xmlSchemaType
									.getClass()
									.toString()
									.contains(
											"org.apache.ws.commons.schema.XmlSchemaComplexType")) {
								ComplexObject co1 = new ComplexObject();

								// Panta prin apo ayto ton tropo klisis prepei
								// na exw dwsei prwta to onoma tou co
								if (newSimpleOrComplexObjectElement.getQName() != null) {
									co1.setObjectName(newSimpleOrComplexObjectElement
											.getQName());// Panta prin apo ayto
															// ton tropo klisis
															// prepei na exw
															// dwsei prwta to
															// onoma tou co
								} else if (newSimpleOrComplexObjectElement
										.getRefName() != null) {
									co1.setObjectName(newSimpleOrComplexObjectElement
											.getRefName());
								} else if (newSimpleOrComplexObjectElement
										.getName() != null) {
									co1.setObjectName(new QName(
											newSimpleOrComplexObjectElement
													.getName()));
								} else {
									co1.setObjectName(new QName(
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway996
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1570
                                                                ComplexObject noArrayCO = new ComplexObject();
                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);
                                                                noArrayCO.getHasNativeObjects().add(no1);
                                                                noArrayCO.setIsOptional(no1.isIsOptional());
                                                                co.getHasComplexObjects().add(noArrayCO);
                                                            }
                                                        } else {
                                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                                ComplexObject noArrayCO = new ComplexObject();

                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);
                                                                noArrayCO.getHasNativeObjects().add(no1);
                                                                co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3099
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3310
																			false,
																			co1);
																	co.getHasComplexObjects()
																			.add(co1);

																} else {
																	// PSAXNW
																	// GIA TO
																	// TYPE MESA
																	// STO
																	// definition

																	ComplexObject co1 = new ComplexObject();
																	co1.setObjectName(new QName(
																			attName));
																	co1.setAdditionalInfo(additionalInfo);
																	co1.setObjectType(new QName(
																			attType
																					+ " (COMPLEX)"));

																	String type1 = attType
																			.substring(
																					attType.indexOf(":") + 1,
																					attType.length());
																	if (type1
																			.startsWith("ArrayOf")) {
																		type1 = type1
																				.replaceFirst(
																						"ArrayOf",
																						"");
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	} else if (type1
																			.endsWith("Array")) {
																		type1 = type1
																				.substring(
																						0,
																						type1.length() - 5);
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	} else if (attType
																			.endsWith("[]")) {
																		type1 = type1
																				.replace(
																						"[]",
																						"");
																		// -ta.append("  ("+type1+"[])");
																		co1.setObjectType(new QName(
																				type1
																						+ "[]"));
																	}
																	parseTypeIterative(
																			s1,
																			type1,
																			iterNumber + 1,
FileProjectLine
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server259
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server293
			.replace(Queries.ARG1, profile.getURI()))));
	if(result1==null||result2==null)return null;
	Resource bag = (Resource) Hub.parser.deserialize(result1 + " "
		+ result2, Queries.AUXBAG);
	if (bag != null) {
	    Object content = bag.getProperty(Queries.AUXBAGPROP);
	    ArrayList list = new ArrayList();
	    OntologyManagement mng = OntologyManagement.getInstance();
	    if (content instanceof List) {
		Iterator iter = ((ArrayList) content).iterator();
		while (iter.hasNext()) {
		    Resource res = (Resource) iter.next();
		    list.add(mng.getResource(
			    mng.getMostSpecializedClass(res.getTypes()),
			    res.getURI()));
		}
	    } else {
		Resource res = (Resource) content;
		list.add(mng.getResource(
			mng.getMostSpecializedClass(res.getTypes()),
			res.getURI()));
	    }
	    return list;
	} else {
	    return null;
	}
    }


//    public Resource getSubProfileOfUser(Resource user) {
//	String resultx = getResult(defaultCaller
//		.call(getDoSPARQLRequest(Queries.Q_GET_PRF_OF_USR_XTRA.replace(
//			Queries.ARG1, user.getURI()))));
//	Object objx = Hub.parser.deserialize(resultx);
//	if (objx == null)
//	    return null;
//	String result = getResult(defaultCaller
//		.call(getDoSPARQLRequest(Queries.Q_GET_PRF_OF_USR.replace(
//			Queries.ARG1, user.getURI()))));
//	String uri = ((Resource) objx).getURI();
//	return (Resource) Hub.parser.deserialize(result, uri);
//    }
    
    // :::::::::::::OTHER ADDS:::::::::::::::::

    protected void addProfileToUser(Resource user, Resource profile) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2339
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2909
													iterNumber, false, co1);
											co.getHasComplexObjects().add(co1);

										} else {
											// PSAXNW GIA TO TYPE MESA STO
											// definition

											ComplexObject co1 = new ComplexObject();
											co1.setObjectName(new QName(attName));
											co1.setAdditionalInfo(additionalInfo);
											co1.setObjectType(new QName(attType
													+ " (COMPLEX)"));

											String type1 = attType.substring(
													attType.indexOf(":") + 1,
													attType.length());
											if (type1.startsWith("ArrayOf")) {
												type1 = type1.replaceFirst(
														"ArrayOf", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (type1.endsWith("Array")) {
												type1 = type1.substring(0,
														type1.length() - 5);
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (attType.endsWith("[]")) {
												type1 = type1.replace("[]", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											}
											parseTypeIterative(s1, type1,
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service106
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)99
	private String remoteDeviceType = null;

	/** Native functions */

	/**
	 *  Start dbus platform for message interchanging within processes in Linux OS.
	 *  
	 * @return if the Dbus platform is correctly initialized.
	 */
	private native boolean startDbusPlatform();

	/**
	 * Get the path for the local Bluetooth adapter which is in use at the moment.
	 * 
	 * @return local bluetooth adapter path
	 */
	private native String getLocalBluetoothAdapterPath();

	/**
	 * Show path of all local bluetooth adapters available at PC (may be more than one).
	 */
	private native void showLocalBluetoothAdaptersPath();

	/**
	 * Show all properties of the DEFAULT local bluetooth adapter. In case a computer has more than one Bluetooth adapter, 
	 * there will be one in use by default.
	 */
	private native void showDefaultLocalBluetoothAdaptersProperties();

	/**
	 * Get the object path of a remote device given a MAC address (format:XX:XX:XX:XX:XX:XX).
	 * 
	 * @param macAddressRemoteDevice the MAC address of the desired remote device (the format of the MAC is XX:XX:XX:XX:XX:XX).
	 * @return the path for the remote Bluetooth device in the local machine.
	 */
	private native String getRemoteBluetoothAdapterPath(String macAddressRemoteDevice);

	/**
	 * Show all properties of a remote device (it should be first created with getRemoteBluetoothAdapterPath method).
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @see showDefaultLocalBluetoothAdaptersProperties()
	 */
	private native void showRemoteBluetoothAdapterProperties(String remoteDevicePath);

	/**
	 * Modify a property of a remote device.
	 * This will be used for enabling the "Trusted" property in a remote Health Device Profile capable device for being establish a connection.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @param propertyKey the name of the property to be modified.
	 * @param propertyValue the new value for the property.
	 */
	private native void setPropertyRemoteDevice(String remoteDevicePath,String propertyKey,boolean propertyValue);

	/**
	 * Create a new HDP application and gets the object path of the new created application.
	 * 
	 * @param dataTypeValue which kind of a HDP capable device will be used.
	 * @param roleValue set the role of the HDP role that the local machine will be playing. Usually, "Sink"
	 * @param shortDescriptionValue custom string for helping the remote devices to identify the local machine they are connected to.
	 * @param channelTypeValue set whether the channel is working with trusted or streaming mode.
	 * @return the path of the new Health Device Profile application newly created in the local machine. 
	 */
	private native String createHDPApplication(String dataTypeValue,String roleValue,String shortDescriptionValue,String channelTypeValue);

	/**
	 * Destroy an HDP application.
	 * 
	 * @param objectPathHDPApplication the path of the Health Device Profile application to be destroyed. 
	 */
	private native void destroyHDPApplication(String objectPathHDPApplication);	

	/**
	 * Checks DBUS system availability.
	 * 
	 * @return true if the Dbus system is available, or false if not.
	 */
	private native boolean getDbusSystemAvailability();

	/**
	 * Add a specific rule to follow HDP messages inside DBUS. 
	 * 
	 * @return true if the local application is subscribed to HDP messages in DBus.
	 */
	private native boolean enableHDPListener();

	/**
	 * 	Wait for new incoming HDP connections.
	 */
	private native void waitHDPConnections();

	/**
	 * Get the object path of the HDP channel ready to send/receive data to/from Continua devices.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.  
	 * @return the path of the data channel from a Health Device Profile application.  
	 */
	private native String getHDPDataChannelPath(String remoteDevicePath);

	/**
	 * Show the properties of a HDP data channel previously created.
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application.  
	 */
	private native void showHDPDataChannelProperties(String hdpDataChannelPath);

	/**
	 * Get the file descriptor associated to a HDP data channel
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 * @return the number that identifies the file descriptor in a Linux OS.
	 */
	private native int getHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Release the file descriptor associated to this HDP data channel (HDP application will be closed).
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 */
	private native void releaseHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Wait for HDP data frames from Continua Health devices. These frames will be compliant with ISO/IEEE 11073 standard.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void waitHDPDataFrames(int hdpDataChannelFileDescriptor);

	/**
	 * Get the input data frame from a Continua Health device. The data will be retrieved in raw format (byte array), and will be processed by the
	 * ISO/IEEE 11073 library included.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the data a remote device sent, in raw format.
	 */
	private native byte[] getHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Get the number of bytes read from input data frames.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the size of the data frame received.
	 */
	private native int getSizeHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Show HDP data frame received. 
	 *  
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void showHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Send HDP data frames to Continua Health devices after processing the ones previously received and generate the proper response to them.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @param hdpDataFrame the raw byte array of the data that will be sent back to a Continua device.
	 */
	private native void sendHDPDataToDevice(int hdpDataChannelFileDescriptor,byte[] hdpDataFrame);

	/**
	 * Free all employed resources and end HDP manager in a well-known status
	 * 
	 */
	private native void closeHDPManager(); 
	
	/** Constructor */
	public hdpManager(String str) {	
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)99
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher97
	private Publisher uaalPublisher = null;	

	/** Native functions */

	/**
	 *  Start dbus platform for message interchanging within processes in Linux OS.
	 *  
	 * @return if the Dbus platform is correctly initialized.
	 */
	private native boolean startDbusPlatform();

	/**
	 * Get the path for the local Bluetooth adapter which is in use at the moment.
	 * 
	 * @return local bluetooth adapter path
	 */
	private native String getLocalBluetoothAdapterPath();

	/**
	 * Show path of all local bluetooth adapters available at PC (may be more than one).
	 */
	private native void showLocalBluetoothAdaptersPath();

	/**
	 * Show all properties of the DEFAULT local bluetooth adapter. In case a computer has more than one Bluetooth adapter, 
	 * there will be one in use by default.
	 */
	private native void showDefaultLocalBluetoothAdaptersProperties();

	/**
	 * Get the object path of a remote device given a MAC address (format:XX:XX:XX:XX:XX:XX).
	 * 
	 * @param macAddressRemoteDevice the MAC address of the desired remote device (the format of the MAC is XX:XX:XX:XX:XX:XX).
	 * @return the path for the remote Bluetooth device in the local machine.
	 */
	private native String getRemoteBluetoothAdapterPath(String macAddressRemoteDevice);

	/**
	 * Show all properties of a remote device (it should be first created with getRemoteBluetoothAdapterPath method).
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @see showDefaultLocalBluetoothAdaptersProperties()
	 */
	private native void showRemoteBluetoothAdapterProperties(String remoteDevicePath);

	/**
	 * Modify a property of a remote device.
	 * This will be used for enabling the "Trusted" property in a remote Health Device Profile capable device for being establish a connection.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @param propertyKey the name of the property to be modified.
	 * @param propertyValue the new value for the property.
	 */
	private native void setPropertyRemoteDevice(String remoteDevicePath,String propertyKey,boolean propertyValue);

	/**
	 * Create a new HDP application and gets the object path of the new created application.
	 * 
	 * @param dataTypeValue which kind of a HDP capable device will be used.
	 * @param roleValue set the role of the HDP role that the local machine will be playing. Usually, "Sink"
	 * @param shortDescriptionValue custom string for helping the remote devices to identify the local machine they are connected to.
	 * @param channelTypeValue set whether the channel is working with trusted or streaming mode.
	 * @return the path of the new Health Device Profile application newly created in the local machine. 
	 */
	private native String createHDPApplication(String dataTypeValue,String roleValue,String shortDescriptionValue,String channelTypeValue);

	/**
	 * Destroy an HDP application.
	 * 
	 * @param objectPathHDPApplication the path of the Health Device Profile application to be destroyed. 
	 */
	private native void destroyHDPApplication(String objectPathHDPApplication);	

	/**
	 * Checks DBUS system availability.
	 * 
	 * @return true if the Dbus system is available, or false if not.
	 */
	private native boolean getDbusSystemAvailability();

	/**
	 * Add a specific rule to follow HDP messages inside DBUS. 
	 * 
	 * @return true if the local application is subscribed to HDP messages in DBus.
	 */
	private native boolean enableHDPListener();

	/**
	 * 	Wait for new incoming HDP connections.
	 */
	private native void waitHDPConnections();

	/**
	 * Get the object path of the HDP channel ready to send/receive data to/from Continua devices.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.  
	 * @return the path of the data channel from a Health Device Profile application.  
	 */
	private native String getHDPDataChannelPath(String remoteDevicePath);

	/**
	 * Show the properties of a HDP data channel previously created.
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application.  
	 */
	private native void showHDPDataChannelProperties(String hdpDataChannelPath);

	/**
	 * Get the file descriptor associated to a HDP data channel
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 * @return the number that identifies the file descriptor in a Linux OS.
	 */
	private native int getHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Release the file descriptor associated to this HDP data channel (HDP application will be closed).
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 */
	private native void releaseHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Wait for HDP data frames from Continua Health devices. These frames will be compliant with ISO/IEEE 11073 standard.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void waitHDPDataFrames(int hdpDataChannelFileDescriptor);

	/**
	 * Get the input data frame from a Continua Health device. The data will be retrieved in raw format (byte array), and will be processed by the
	 * ISO/IEEE 11073 library included.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the data a remote device sent, in raw format.
	 */
	private native byte[] getHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Get the number of bytes read from input data frames.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the size of the data frame received.
	 */
	private native int getSizeHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Show HDP data frame received. 
	 *  
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void showHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Send HDP data frames to Continua Health devices after processing the ones previously received and generate the proper response to them.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @param hdpDataFrame the raw byte array of the data that will be sent back to a Continua device.
	 */
	private native void sendHDPDataToDevice(int hdpDataChannelFileDescriptor,byte[] hdpDataFrame);

	/**
	 * Free all employed resources and end HDP manager in a well-known status
	 * 
	 */
	private native void closeHDPManager(); 
	
	/** Constructor */
	public hdpManager(Publisher p) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2909
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3099
														fromLiteral, co1);
												co.getHasComplexObjects().add(
														co1);

											} else {
												// PSAXNW GIA TO TYPE MESA STO
												// definition

												ComplexObject co1 = new ComplexObject();
												co1.setObjectName(new QName(
														attName));
												co1.setAdditionalInfo(additionalInfo);
												co1.setObjectType(new QName(
														attType + " (COMPLEX)"));

												String type1 = attType
														.substring(
																attType.indexOf(":") + 1,
																attType.length());
												if (type1.startsWith("ArrayOf")) {
													type1 = type1.replaceFirst(
															"ArrayOf", "");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (type1
														.endsWith("Array")) {
													type1 = type1.substring(0,
															type1.length() - 5);
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (attType
														.endsWith("[]")) {
													type1 = type1.replace("[]",
															"");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												}
												parseTypeIterative(s1, type1,
														iterNumber + 1,
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service106
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher97
	private Publisher uaalPublisher = null;	

	/** Native functions */

	/**
	 *  Start dbus platform for message interchanging within processes in Linux OS.
	 *  
	 * @return if the Dbus platform is correctly initialized.
	 */
	private native boolean startDbusPlatform();

	/**
	 * Get the path for the local Bluetooth adapter which is in use at the moment.
	 * 
	 * @return local bluetooth adapter path
	 */
	private native String getLocalBluetoothAdapterPath();

	/**
	 * Show path of all local bluetooth adapters available at PC (may be more than one).
	 */
	private native void showLocalBluetoothAdaptersPath();

	/**
	 * Show all properties of the DEFAULT local bluetooth adapter. In case a computer has more than one Bluetooth adapter, 
	 * there will be one in use by default.
	 */
	private native void showDefaultLocalBluetoothAdaptersProperties();

	/**
	 * Get the object path of a remote device given a MAC address (format:XX:XX:XX:XX:XX:XX).
	 * 
	 * @param macAddressRemoteDevice the MAC address of the desired remote device (the format of the MAC is XX:XX:XX:XX:XX:XX).
	 * @return the path for the remote Bluetooth device in the local machine.
	 */
	private native String getRemoteBluetoothAdapterPath(String macAddressRemoteDevice);

	/**
	 * Show all properties of a remote device (it should be first created with getRemoteBluetoothAdapterPath method).
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @see showDefaultLocalBluetoothAdaptersProperties()
	 */
	private native void showRemoteBluetoothAdapterProperties(String remoteDevicePath);

	/**
	 * Modify a property of a remote device.
	 * This will be used for enabling the "Trusted" property in a remote Health Device Profile capable device for being establish a connection.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.
	 * @param propertyKey the name of the property to be modified.
	 * @param propertyValue the new value for the property.
	 */
	private native void setPropertyRemoteDevice(String remoteDevicePath,String propertyKey,boolean propertyValue);

	/**
	 * Create a new HDP application and gets the object path of the new created application.
	 * 
	 * @param dataTypeValue which kind of a HDP capable device will be used.
	 * @param roleValue set the role of the HDP role that the local machine will be playing. Usually, "Sink"
	 * @param shortDescriptionValue custom string for helping the remote devices to identify the local machine they are connected to.
	 * @param channelTypeValue set whether the channel is working with trusted or streaming mode.
	 * @return the path of the new Health Device Profile application newly created in the local machine. 
	 */
	private native String createHDPApplication(String dataTypeValue,String roleValue,String shortDescriptionValue,String channelTypeValue);

	/**
	 * Destroy an HDP application.
	 * 
	 * @param objectPathHDPApplication the path of the Health Device Profile application to be destroyed. 
	 */
	private native void destroyHDPApplication(String objectPathHDPApplication);	

	/**
	 * Checks DBUS system availability.
	 * 
	 * @return true if the Dbus system is available, or false if not.
	 */
	private native boolean getDbusSystemAvailability();

	/**
	 * Add a specific rule to follow HDP messages inside DBUS. 
	 * 
	 * @return true if the local application is subscribed to HDP messages in DBus.
	 */
	private native boolean enableHDPListener();

	/**
	 * 	Wait for new incoming HDP connections.
	 */
	private native void waitHDPConnections();

	/**
	 * Get the object path of the HDP channel ready to send/receive data to/from Continua devices.
	 * 
	 * @param remoteDevicePath the path for the remote Bluetooth device in the local machine.  
	 * @return the path of the data channel from a Health Device Profile application.  
	 */
	private native String getHDPDataChannelPath(String remoteDevicePath);

	/**
	 * Show the properties of a HDP data channel previously created.
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application.  
	 */
	private native void showHDPDataChannelProperties(String hdpDataChannelPath);

	/**
	 * Get the file descriptor associated to a HDP data channel
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 * @return the number that identifies the file descriptor in a Linux OS.
	 */
	private native int getHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Release the file descriptor associated to this HDP data channel (HDP application will be closed).
	 * 
	 * @param hdpDataChannelPath the path of the data channel from a Health Device Profile application. 
	 */
	private native void releaseHDPDataChannelFileDescriptor(String hdpDataChannelPath);

	/**
	 * Wait for HDP data frames from Continua Health devices. These frames will be compliant with ISO/IEEE 11073 standard.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void waitHDPDataFrames(int hdpDataChannelFileDescriptor);

	/**
	 * Get the input data frame from a Continua Health device. The data will be retrieved in raw format (byte array), and will be processed by the
	 * ISO/IEEE 11073 library included.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the data a remote device sent, in raw format.
	 */
	private native byte[] getHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Get the number of bytes read from input data frames.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @return the size of the data frame received.
	 */
	private native int getSizeHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Show HDP data frame received. 
	 *  
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 */
	private native void showHDPDataFrame(int hdpDataChannelFileDescriptor);

	/**
	 * Send HDP data frames to Continua Health devices after processing the ones previously received and generate the proper response to them.
	 * 
	 * @param hdpDataChannelFileDescriptor the file descriptor that identifies a HDP data channel.
	 * @param hdpDataFrame the raw byte array of the data that will be sent back to a Continua device.
	 */
	private native void sendHDPDataToDevice(int hdpDataChannelFileDescriptor,byte[] hdpDataFrame);

	/**
	 * Free all employed resources and end HDP manager in a well-known status
	 * 
	 */
	private native void closeHDPManager(); 
	
	/** Constructor */
	public hdpManager(Publisher p) {
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)228
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)413
	public static void publishDataToContextBus() {
		// Publish data to uAAL context bus. Ensure that values are not NULL
					uaalX73Publisher = new Publisher(ctx);			
					if(realMeasurement) {				
						// Real values
						if(remoteDeviceType.equals("WeightingScale")) {					
							if(finalMeasuredWeightData != -1.0) {						
								double temp_1 = shortDecimalNumber(finalMeasuredWeightData)*1000;
								int temp = (int) temp_1;						
								uaalX73Publisher.publishWeightEvent(temp);	
								//stopPublisherGUI();
							}	
						} else {
							if((finalDiaBloodPressureData != -1)&&(finalHrBloodPressureData != -1)&&(finalSysBloodPressureData != -1)) {						
								int temp_0 = (int) finalSysBloodPressureData;
								int temp_1 = (int) finalDiaBloodPressureData;
								int temp_2 = (int) finalHrBloodPressureData;						
								uaalX73Publisher.publishBloodPressureEvent(temp_0,temp_1,temp_2);	
								//stopPublisherGUI();
							}
						}				
					} else {				
						// Random values
						if(remoteDeviceType.equals("WeightingScale")) {
							uaalX73Publisher.publishWeightEvent(Integer.parseInt(uaalPublisherWeightValueTextfield.getText()));
							//stopPublisherGUI();
						} else {					
							uaalX73Publisher.publishBloodPressureEvent(Integer.parseInt(uaalPublisherBloodPressureSysValueTextfield.getText()),
									   Integer.parseInt(uaalPublisherBloodPressureDiaValueTextfield.getText()),
									   Integer.parseInt(uaalPublisherBloodPressurePulValueTextfield.getText()));
							//stopPublisherGUI();
						}
					}
	}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2339
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3099
														fromLiteral, co1);
												co.getHasComplexObjects().add(
														co1);

											} else {
												// PSAXNW GIA TO TYPE MESA STO
												// definition

												ComplexObject co1 = new ComplexObject();
												co1.setObjectName(new QName(
														attName));
												co1.setAdditionalInfo(additionalInfo);
												co1.setObjectType(new QName(
														attType + " (COMPLEX)"));

												String type1 = attType
														.substring(
																attType.indexOf(":") + 1,
																attType.length());
												if (type1.startsWith("ArrayOf")) {
													type1 = type1.replaceFirst(
															"ArrayOf", "");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (type1
														.endsWith("Array")) {
													type1 = type1.substring(0,
															type1.length() - 5);
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												} else if (attType
														.endsWith("[]")) {
													type1 = type1.replace("[]",
															"");
													// -ta.append("  ("+type1+"[])");
													co1.setObjectType(new QName(
															type1 + "[]"));
												}
												parseTypeIterative(s1, type1,
FileProjectLine
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test252
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)348
	}
	
	/** Create JLabel */
	public JLabel createJLabel(String name,int x,int y,int weight,int height,int fontType,int fontSize) {
		JLabel output = null;
		output = new JLabel(name);	
		output.setBounds(x,y,weight,height);
		output.setFont(new Font("Courier",fontType,fontSize));	
		output.setHorizontalTextPosition(SwingConstants.CENTER);
		return output;
	}
	
	/** Create JTextfield */
	public JTextField createJTextfield(int x,int y,int weight,int height,int fontType,int fontSize) {
		JTextField output = null;
		output = new JTextField(10);	
		output.setBounds(x,y,weight,height);
		output.setEditable(false);
		output.setColumns(10);
		output.setHorizontalAlignment(JTextField.CENTER);
		output.setFont(new Font("Courier",fontType,fontSize));		
		return output;
	}
	
	/** Add components to panel */
	public void addJLabelComponent(JComponent component) {
		if(component != null)
			mainPublisherPanel.add(component);
	}
	
	/** Reset components */
	public void resetComponentsStatus() {
FileProjectLine
org\universAAL\ui\dm\userInteraction\systemMenu\ClassicSystemMenuProvider.javauniversAAL UI Dialog Manager 2.073
org\universAAL\ui\dm\userInteraction\systemMenu\SmartPendingSystemMenuProvider.javauniversAAL UI Dialog Manager 2.076
    public SmartPendingSystemMenuProvider(UserDialogManager udm) {
	userDM = udm;
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.universAAL.ui.dm.interfaces.ISubmitGroupListener#handle(org.universAAL
     * .middleware.ui.UIResponse)
     */
    public void handle(UIResponse response) {
	String submissionID = response.getSubmissionID();
	if (EXIT_CALL.equals(submissionID)) {
	    // do nothing?
	}
	if (MENU_CALL.equals(submissionID)) {
	    userDM.showMainMenu();
	}
	if (MESSAGES_CALL.equals(submissionID)) {
	    userDM.openPendingMessagedDialog();
	}
	if (OPEN_DIALOGS_CALL.equals(submissionID)) {
	    userDM.openPendingDialogsDialog();
	}

    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.universAAL.ui.dm.interfaces.ISubmitGroupListener#listDeclaredSubmitIds
     * ()
     */
    public Set<String> listDeclaredSubmitIds() {
	TreeSet<String> s = new TreeSet<String>();
	s.add(EXIT_CALL);
	s.add(MENU_CALL);
	s.add(MESSAGES_CALL);
	s.add(OPEN_DIALOGS_CALL);
	return s;
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.universAAL.ui.dm.interfaces.ISystemMenuProvider#getSystemMenu(org.
     * universAAL.middleware.ui.UIRequest)
     */
    public Group getSystemMenu(UIRequest request) {
	MessageLocaleHelper messageLocaleHelper = userDM.getLocaleHelper();
	Form f = request.getDialogForm();
	Group stdButtons = f.getStandardButtons();
	switch (f.getDialogType().ord()) {
	case DialogType.SYS_MENU:
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p20601\ActionArgumentSimple.javauniversAAL LDDI Library IEEE x073 standard implementation38
org\universAAL\lddi\lib\ieeex73std\x73\p20601\ActionResultSimple.javauniversAAL LDDI Library IEEE x073 standard implementation38
    public class ActionResultSimple implements IASN1PreparedElement {
            
        @ASN1Element ( name = "obj-handle", isOptional =  false , hasTag =  false  , hasDefaultValue =  false  )
    
	private HANDLE obj_handle = null;
                
  
        @ASN1Element ( name = "action-type", isOptional =  false , hasTag =  false  , hasDefaultValue =  false  )
    
	private OID_Type action_type = null;
                
  @ASN1Any( name = "" )
    
        @ASN1Element ( name = "action-info-args", isOptional =  false , hasTag =  false  , hasDefaultValue =  false  )
    
	private byte[] action_info_args = null;
                
  
        
        public HANDLE getObj_handle () {
            return this.obj_handle;
        }

        

        public void setObj_handle (HANDLE value) {
            this.obj_handle = value;
        }
        
  
        
        public OID_Type getAction_type () {
            return this.action_type;
        }

        

        public void setAction_type (OID_Type value) {
            this.action_type = value;
        }
        
  
        
        public byte[] getAction_info_args () {
            return this.action_info_args;
        }

        

        public void setAction_info_args (byte[] value) {
            this.action_info_args = value;
        }
        
  
                    
        
        public void initWithDefaults() {
            
        }

        private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ActionResultSimple.class);
FileProjectLine
org\universAAL\context\che\database\impl\SesameBackendCrdClc2Cnf.javauniversAAL Context CHE - Module for Sesame store with cardinality96
org\universAAL\context\che\database\impl\SesameBackendCrdCnf.javauniversAAL Context CHE - Module for Sesame store with cardinality96
    public SesameBackendWithConfidence(int confidence) {
	super();
	this.setThreshold(confidence);
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.universAAL.context.che.database.impl.SesameBackend#storeEvent(org
     * .universAAL.middleware.context.ContextEvent)
     */
    @Override
    synchronized public void storeEvent(ContextEvent e) {
	try {
	    RepositoryConnection con = myRepository.getConnection();
	    try {
		log.debug("storeEvent",
			"Adding event to store, if enough confidence");
		Integer conf = e.getConfidence();
		if (conf != null) {
		    if (conf.intValue() < threshold) {
			TurtleParser sesameParser = new TurtleParser();
			StatementCollector stHandler = new StatementCollector();
			sesameParser.setRDFHandler(stHandler);
			sesameParser.parse(
				new StringReader(uAALParser.serialize(e)),
				e.getURI());
			Iterator<Statement> sts = stHandler.getStatements()
				.iterator();
			while (sts.hasNext()) {
			    Statement st = sts.next();
			    if (st.getSubject().stringValue()
				    .equals(e.getURI())) {
				con.add(st);
				// store only stmts having event as subject
			    }
			}
			log.info("storeEvent",
FileProjectLine
org\universAAL\samples\uibus\OPublisher.javauniversAAL Samples UI bus tester247
org\universAAL\samples\uibus\OPublisher.javauniversAAL Samples UI bus tester389
		String PROP_TABLE = "http://ontology.aal-persona.org/Tests.owl#table";
		    String PROP_COL = "http://ontology.aal-persona.org/Tests.owl#column";
		    List rows = new ArrayList();
		      Resource cell = new Resource();
		      cell.setProperty(PROP_COL + "1", new Integer(1));
		      cell.setProperty(PROP_COL + "2", "two");
		      cell.setProperty(PROP_COL + "3", new Float(3));
		      rows.add(cell);
		      //...
		      cell = new Resource();
		      cell.setProperty(PROP_COL + "1", new Integer(2));
		      cell.setProperty(PROP_COL + "2", "three");
		      cell.setProperty(PROP_COL + "3", new Float(4));
		      rows.add(cell);
		      //...
		      cell = new Resource();
		      cell.setProperty(PROP_COL + "1", new Integer(3));
		      cell.setProperty(PROP_COL + "2", "four");
		      cell.setProperty(PROP_COL + "3", new Float(5));
		      rows.add(cell);
		      Resource dataRoot = new Resource();
		      dataRoot.setProperty(PROP_TABLE, rows);
FileProjectLine
org\universAAL\lddi\knx\driver\KnxDpt1Driver.javauniversAAL LDDI KNX Exporter95
org\universAAL\lddi\knx\refinementdriver\dpt1\activityhub\KnxDpt1RefinementDriver.javauniversAAL LDDI KNX Refinement driver for Datapoint Type 1.* to ISO 11073-10471 device136
			this.context.registerService(Driver.class.getName(), this, propDriver);
	}
	
//	/**
//	 * @see org.osgi.service.cm.ManagedServiceFactory#updated(java.lang.String, java.util.Dictionary)
//	 * 
//	 * update method from ManagedServiceFactory
//	 * is called extra for every config in the factory
//	 * the pid is generated by ConfigAdmin
//	 */
//	public void updated(String pid, Dictionary properties)
//			throws ConfigurationException {
//		this.logger.log(LogService.LOG_INFO, "KnxDpt1Driver updated for driver instance " + pid +
//				". Mapping properties from KNX groupDevice to ISO 11073 groupDevice: " + properties);
//
//		if (properties != null) {
//			//			properties.get("isoDeviceType");
//			//			properties.get("deviceNature");
//			//			properties.get("deviceType");
//
//			String knxAddress = (String) properties.get("knxGroupAddress");
//			//String newKnxAddress = knxAddress.replace('-', '/');
//			// update knxGroupAddress value
//			//properties.put("knxGroupAddress", newKnxAddress);
//
//			// create new knx groupDevice config
//			KnxDeviceConfig knxDevConf = new KnxDeviceConfig(knxAddress, properties, pid);
//
//			// update configuration map
//			this.configurationMap.put(pid, knxDevConf);
//
//			// update driver instance if there is one already
//			KnxDpt1Instance instance = this.connectedDriverInstanceMap.get(pid);
//			if ( instance != null ) {
//				if ( instance.updateConfiguration(properties) ) {				
//					this.logger.log(LogService.LOG_INFO, "Successfully updated configuration of driver instance " + pid);
//				} else {
//					this.logger.log(LogService.LOG_ERROR, "Error on updating configuration of driver instance " + pid);
//				}
//			} else {
//				// new instances are created after a groupDevice reference appears; in attach method
//			}
//		} else {
//			// if there are no properties for a specific pid it should be deleted !?
//			
//			KnxDpt1Instance instance = this.connectedDriverInstanceMap.get(pid);
//			instance.detachDriver();
//			this.connectedDriverInstanceMap.remove(pid);
//
//			// delete configuration
//			this.configurationMap.remove(pid);
//
//			this.logger.log(LogService.LOG_INFO, "Driver instance and associated objects for " +
//					pid + " destroyed!");
//		}
//	}


	/** 
	 * called from OSGI DeviceManager
	 * check device services if they have identical device_category as this driver 
	 * @see org.osgi.service.device.Driver#match(org.osgi.framework.ServiceReference)
	 */ 
	public int match(ServiceReference reference) throws Exception {
		// reference = groupDevice service
		int matchValue = Device.MATCH_NONE;
//		String groupDeviceCategory = null;
		KnxGroupDeviceCategory groupDeviceCategory = null;

		try {
			groupDeviceCategory = KnxGroupDeviceCategoryUtil.getCategory(
					(String)reference.getProperty(Constants.DEVICE_CATEGORY)	);
		} catch (ClassCastException e) {
			this.logger.log(LogService.LOG_DEBUG, "Could not cast DEVICE_CATEGORY of requesting" +
					" device service " + reference.getProperty(org.osgi.framework.Constants.SERVICE_ID) + " to String. No match!");
			return matchValue;
		}
		
		// match check
		// more possible properties to match: description, serial, id
		if ( groupDeviceCategory == MY_KNX_DEVICE_CATEGORY ) {
			matchValue = IKnxDpt1.MATCH_CLASS;
		} else {
			this.logger.log(LogService.LOG_DEBUG, "Requesting device service " + groupDeviceCategory +
					" doesn't match with driver. No match!");
		}
		
		return matchValue; //must be > 0 to match
	}


	/**
	 * @see org.osgi.service.device.Driver#attach(org.osgi.framework.ServiceReference)
	 * attach the device service reference to a "driving" instance; couple them
	 */
	public String attach(ServiceReference reference) throws Exception {

		// get groupAddress
		KnxDpt1GroupDevice knxDev = (KnxDpt1GroupDevice) this.context.getService(reference);

		if  ( this.connectedDriverInstanceMap.containsKey(knxDev.getGroupAddress()) ) {
			this.logger.log(LogService.LOG_WARNING, "There is already a driver instance available for " +
					" the groupDevice " + knxDev.getGroupAddress());
			return "driver already exists for this groupDevice!";
		}
FileProjectLine
org\universAAL\ui\dm\userInteraction\PendingDialogBuilder.javauniversAAL UI Dialog Manager 2.0106
org\universAAL\ui\dm\userInteraction\PendingDialogBuilderWithSubmits.javauniversAAL UI Dialog Manager 2.053
	MessageLocaleHelper ulh = userDM.getLocaleHelper();
	List<Resource> dialogs = new ArrayList<Resource>();
	sentItems = new ArrayList<String>();
	Form f = null;
	List<UIRequest> allDialogs = new ArrayList<UIRequest>();
	allDialogs.addAll(dialogPool.listAllSuspended());
	allDialogs.addAll(dialogPool.listAllActive());
	for (UIRequest req : allDialogs) {
	    Form tmp = req.getDialogForm();
	    Resource aux = new Resource();
	    aux.setProperty(PROP_DLG_LIST_DIALOG_DATE, tmp.getCreationTime());
	    aux.setProperty(PROP_DLG_LIST_DIALOG_TITLE, tmp.getTitle());
	    aux.setProperty(PROP_DLG_LIST_DIALOG_ID, tmp.getDialogID());
	    dialogs.add(aux);
	    sentItems.add(req.getDialogID());
	}
	// if there are dialogs available for the current user,
	// create a new form with a list of all dialogs
	if (!dialogs.isEmpty()) {
	    Resource msgList = new Resource();
	    msgList.setProperty(PROP_DLG_LIST_DIALOG_LIST, dialogs);
	    msgList.setProperty(PROP_DLG_LIST_SENT_ITEMS, sentItems);
	    f = Form.newDialog(ulh.getString(MessageConstants.MENU_PROVIDER_PENDING_DIALOGS),
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Part.javauniversAAL Middleware Interfaces (Core)100
org\universAAL\middleware\deploymanager\uapp\model\Part.javauniversAAL Middleware XSD Schemas248
    public List<DeploymentUnit> getDeploymentUnit() {
        if (deploymentUnit == null) {
            deploymentUnit = new ArrayList<DeploymentUnit>();
        }
        return this.deploymentUnit;
    }

    public boolean isSetDeploymentUnit() {
        return ((this.deploymentUnit!= null)&&(!this.deploymentUnit.isEmpty()));
    }

    public void unsetDeploymentUnit() {
        this.deploymentUnit = null;
    }

    /**
     * Gets the value of the executionUnit property.
     *
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the executionUnit property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getExecutionUnit().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ExecutionUnit }
     *
     *
     */
    public List<ExecutionUnit> getExecutionUnit() {
        if (executionUnit == null) {
            executionUnit = new ArrayList<ExecutionUnit>();
        }
        return this.executionUnit;
    }

    public boolean isSetExecutionUnit() {
        return ((this.executionUnit!= null)&&(!this.executionUnit.isEmpty()));
    }

    public void unsetExecutionUnit() {
        this.executionUnit = null;
    }

    /**
     * Gets the value of the partId property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getPartId() {
        return partId;
    }

    /**
     * Sets the value of the partId property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPartId(String value) {
        this.partId = value;
    }

    public boolean isSetPartId() {
        return (this.partId!= null);
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway217
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway451
									.getContent();
							if (typeList.getItemTypeName() != null) {
								no.setObjectType(typeList.getItemTypeName());
							} else {
								if (typeList.getItemType() != null
										&& typeList.getItemType().getQName() != null) {
									no.setObjectType(typeList.getItemType()
											.getQName());
								} else if (typeList.getItemType() != null
										&& typeList.getItemType().getName() != null) {
									no.setObjectType(new QName(typeList
											.getItemType().getName()));
								} else {
									theDefinition.getContainingErrors().add(
											"ERROR @line ~3564");
									System.out.println("ERROR @line ~3564");
								}
							}
							if (no.getObjectName() == null) {
								no.setObjectName(new QName(
										"http://www.w3.org/2001/XMLSchema",
										"list"));
							}
							System.out.println();
							no.setAdditionalInfo("isListType");
							System.out.println();
							// no.setObjectType(restrictionContent.getBaseTypeName());
						} else if (xmlSchemaSimpleType.getContent() != null
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\FeaturesRoot.javauniversAAL Middleware Interfaces (Core)65
org\universAAL\middleware\connectors\deploy\karaf\model\FeaturesRoot.javauniversAAL Middleware XSD Schemas62
@XmlType(name = "featuresRoot", propOrder = {
    "repositoryOrFeature"
})
public class FeaturesRoot
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElements({
        @XmlElement(name = "repository", type = String.class),
        @XmlElement(name = "feature", type = Feature.class)
    })
    protected List<Serializable> repositoryOrFeature;
    @XmlAttribute(name = "name")
    protected String name;

    /**
     * Gets the value of the repositoryOrFeature property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the repositoryOrFeature property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRepositoryOrFeature().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     * {@link Feature }
     * 
     * 
     */
    public List<Serializable> getRepositoryOrFeature() {
        if (repositoryOrFeature == null) {
            repositoryOrFeature = new ArrayList<Serializable>();
        }
        return this.repositoryOrFeature;
    }

    public boolean isSetRepositoryOrFeature() {
        return ((this.repositoryOrFeature!= null)&&(!this.repositoryOrFeature.isEmpty()));
    }

    public void unsetRepositoryOrFeature() {
        this.repositoryOrFeature = null;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

}
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)1154
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway868
	byte[] DECODABET = getDecodabet(options);

	// Example: Dk==
	if (source[srcOffset + 2] == EQUALS_SIGN) {
	    // Two ways to do the same thing. Don't know which way I like best.
	    // int outBuff = ( ( DECODABET[ source[ srcOffset ] ] << 24 ) >>> 6
	    // )
	    // | ( ( DECODABET[ source[ srcOffset + 1] ] << 24 ) >>> 12 );
	    int outBuff = ((DECODABET[source[srcOffset]] & 0xFF) << 18)
		    | ((DECODABET[source[srcOffset + 1]] & 0xFF) << 12);

	    destination[destOffset] = (byte) (outBuff >>> 16);
	    return 1;
	}

	// Example: DkL=
	else if (source[srcOffset + 3] == EQUALS_SIGN) {
	    // Two ways to do the same thing. Don't know which way I like best.
	    // int outBuff = ( ( DECODABET[ source[ srcOffset ] ] << 24 ) >>> 6
	    // )
	    // | ( ( DECODABET[ source[ srcOffset + 1 ] ] << 24 ) >>> 12 )
	    // | ( ( DECODABET[ source[ srcOffset + 2 ] ] << 24 ) >>> 18 );
	    int outBuff = ((DECODABET[source[srcOffset]] & 0xFF) << 18)
		    | ((DECODABET[source[srcOffset + 1]] & 0xFF) << 12)
		    | ((DECODABET[source[srcOffset + 2]] & 0xFF) << 6);

	    destination[destOffset] = (byte) (outBuff >>> 16);
	    destination[destOffset + 1] = (byte) (outBuff >>> 8);
	    return 2;
	}

	// Example: DkLE
	else {
FileProjectLine
org\universAAL\middleware\context\ContextEvent.javauniversAAL Middleware Context Bus (Core)438
org\universAAL\ontology\che\ContextEvent.javauniversAAL Ontology Context History Entrepot417
	else if (value instanceof ContextProvider) {
	    if (propURI.equals(PROP_CONTEXT_PROVIDER))
		return setProvider((ContextProvider) value);
	} else if (value instanceof Resource) {
	    if (propURI.equals(PROP_RDF_SUBJECT))
		return setRDFSubject((Resource) value);
	    else if (propURI.equals(PROP_RDF_PREDICATE))
		return setRDFPredicate(((Resource) value).getURI());
	} else if (value instanceof String) {
	    if (propURI.equals(PROP_RDF_PREDICATE))
		return setRDFPredicate((String) value);
	} else if (value instanceof Long) {
	    if (propURI.equals(PROP_CONTEXT_TIMESTAMP))
		return setTimestamp((Long) value);
	    else if (propURI.equals(PROP_CONTEXT_EXPIRATION_TIME))
		return setExpirationTime((Long) value);
	} else if (value instanceof Integer) {
	    if (propURI.equals(PROP_CONTEXT_CONFIDENCE))
		return setConfidence((Integer) value);
	}
	return false;
    }

    public String getClassURI() {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway411
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway263
							}
						}
						List opers = binding.getBindingOperations();
						if (opers != null) {
							for (int i = 0; i < opers.size(); i++) {
								BindingOperation bindingOper = (BindingOperation) opers
										.get(i);
								if (bindingStyle == null) {
									List l11 = bindingOper
											.getExtensibilityElements();
									for (int i11 = 0; i11 < l11.size(); i11++) {
										try {
											com.ibm.wsdl.extensions.soap.SOAPOperationImpl soapOperImpl = (com.ibm.wsdl.extensions.soap.SOAPOperationImpl) l11
													.get(i11);
											bindingStyle = soapOperImpl
													.getStyle();
										} catch (Exception e) {
											try {
												com.ibm.wsdl.extensions.soap12.SOAP12OperationImpl soapOperImpl = (com.ibm.wsdl.extensions.soap12.SOAP12OperationImpl) l11
														.get(i11);
												bindingStyle = soapOperImpl
														.getStyle();
											} catch (Exception e1) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway929
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1554
                                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                                ComplexObject noArrayCO = new ComplexObject();
                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);

                                                                ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                                noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                                noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO_ListNO.setIsArrayType(true);
                                                                noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                                noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                                noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                                co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway737
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1227
											.println("WARNING @line ~1678... UNDEFINED Variable name!!!");
								}
								ComplexTypesParser.parseComplexType(service,
										null, xmlSchemaType, co1,
										theDefinition, false);
								if (newSimpleOrComplexObjectElement
										.getMinOccurs() == 0
										|| newSimpleOrComplexObjectElement
												.isNillable()) {
									co1.setIsOptional(true);
								}

								if (newSimpleOrComplexObjectElement != null
										&& newSimpleOrComplexObjectElement
												.getMaxOccurs() > 1) {
									ComplexObject coArrayCO = new ComplexObject();
									coArrayCO
											.setObjectName(co1.getObjectName());
									// co1.setObjectType(new QName("XA!"));
									coArrayCO.setObjectType(new QName(co1
											.getObjectType().getNamespaceURI(),
											co1.getObjectType().getLocalPart()
													+ "[]", co1.getObjectType()
													.getPrefix()));
									coArrayCO.setIsArrayType(true);
									coArrayCO.getHasComplexObjects().add(co1);
									coArrayCO.setIsOptional(co1.isIsOptional());
									co.getHasComplexObjects().add(coArrayCO);

								} else {
									co.getHasComplexObjects().add(co1);
								}

								typeParsed = true;

							}

							if (!typeParsed) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway222
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1554
                                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                                ComplexObject noArrayCO = new ComplexObject();
                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[][]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);

                                                                ComplexObject noArrayCO_ListNO = new ComplexObject();
                                                                noArrayCO_ListNO.setObjectName(no1.getObjectName());
                                                                noArrayCO_ListNO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO_ListNO.setIsArrayType(true);
                                                                noArrayCO_ListNO.setIsOptional(no1.isIsOptional());
                                                                noArrayCO_ListNO.getHasNativeObjects().add(no1);

                                                                noArrayCO.getHasComplexObjects().add(noArrayCO_ListNO);
                                                                co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway407
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2736
											if (attType
													.startsWith(MitsosParser.targetNamespacePrefix)) {
												String type1 = attType
														.substring(
																MitsosParser.targetNamespacePrefix
																		.length(),
																attType.length());

												ComplexObject newComplexObject = new ComplexObject();
												newComplexObject
														.setObjectName(new QName(
																attName));
												newComplexObject
														.setAdditionalInfo(additionalInfo);
												newComplexObject
														.setObjectType(new QName(
																type1));

												if (type1.startsWith("ArrayOf")) {
													type1 = type1.replaceFirst(
															"ArrayOf", "");
													// -ta.append("  ("+type1+"[])");
													newComplexObject
															.setObjectType(new QName(
																	type1
																			+ "[]"));
												} else if (type1
														.endsWith("Array")) {
													type1 = type1.substring(0,
															type1.length() - 5);
													// -ta.append("  ("+type1+"[])");
													newComplexObject
															.setObjectType(new QName(
																	type1
																			+ "[]"));
												} else if (attType
														.endsWith("[]")) {
													type1 = type1.replace("[]",
															"");
													// -ta.append("  ("+type1+"[])");
													newComplexObject
															.setObjectType(new QName(
																	type1
																			+ "[]"));
												}
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)703
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1492
						    pp[1]);
					    if (oj instanceof AbsLocation)
						if (ok == null)
						    points[k]++;
						else {
						    float dj = ((AbsLocation) oj)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    float dk = ((AbsLocation) ok)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    if (dj > dk)
							points[k]++;
						    else if (dk > dj)
							points[j]++;
						}
					    else {
						points[j]++;
						if (!(ok instanceof AbsLocation))
						    points[k]++;
					    }
					}
				    }
				    break;
				}
			    }
			    int ind = 0, min = points[0];
			    for (int i = 1; i < size; i++)
				if (points[i] < min) {
				    ind = i;
				    min = points[i];
				}
			    for (int j = 0; j < ind; j++, size--)
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway859
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1625
                                        ComplexObject co1 = new ComplexObject();
                                        co1.setObjectName(new QName("any"));
                                        co1.setObjectType(new QName("Object"));

                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType().getLocalPart()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");
                                    } else if (obj1.getClass().getName().contains("XmlSchemaChoice")) {
FileProjectLine
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test252
org\universAAL\lddi\subscriber\test\gui\GUI.javauniversAAL LDDI Continua Manager service subscriber test166
	}	
	
	/** Create JLabel */
	public JLabel createJLabel(String name,int x,int y,int weight,int height,int fontType,int fontSize) {
		JLabel output = null;
		output = new JLabel(name);	
		output.setBounds(x,y,weight,height);
		output.setFont(new Font("Courier",fontType,fontSize));	
		output.setHorizontalTextPosition(SwingConstants.CENTER);
		return output;
	}
	
	/** Create JTextfield */
	public JTextField createJTextfield(int x,int y,int weight,int height,int fontType,int fontSize) {
		JTextField output = null;
		output = new JTextField(10);	
		output.setBounds(x,y,weight,height);
		output.setEditable(false);
		output.setColumns(10);
		output.setHorizontalAlignment(JTextField.CENTER);
		output.setFont(new Font("Courier",fontType,fontSize));		
		return output;
	}
	
	/** Add components to panel */
	public void addJLabelComponent(JComponent component) {
		if(component != null)
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\MyVerticalFlowLayout.javauniversAAL UI Handler Swing Look and Feel Classic548
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\Layout\VerticalFlowLayout.javauniversAAL UI Handler Swing533
		    moveComponents(target, x, insets.top + vgap, colw, maxheight - y, start, i, ltr);
		    y = d.height;
		    x += hgap + colw;
		    colw = d.width;
		    start = i;
		}
	    }
	}
	moveComponents(target, x, insets.top + vgap, colw, maxheight - y, start, nmembers, ltr);
      }
    }

    //
    // the internal serial version which says which version was written
    // - 0 (default) for versions before the Java 2 platform, v1.2
    // - 1 for version >= Java 2 platform v1.2, which includes "newAlign" field
    //
    private static final int currentSerialVersion = 1;
    /**
     * This represent the <code>currentSerialVersion</code>
     * which is bein used.  It will be one of two values :
     * <code>0</code> versions before Java 2 platform v1.2..
     * <code>1</code> versions after  Java 2 platform v1.2..
     *
     * @serial
     * @since 1.2
     */
    private int serialVersionOnStream = currentSerialVersion;

    /**
     * Reads this object out of a serialization stream, handling
     * objects written by older versions of the class that didn't contain all
     * of the fields we use now..
     */
    private void readObject(ObjectInputStream stream)
         throws IOException, ClassNotFoundException
    {
        stream.defaultReadObject();

        if (serialVersionOnStream < 1) {
            // "newAlign" field wasn't present, so use the old "align" field.
            setAlignment(this.align);
        }
        serialVersionOnStream = currentSerialVersion;
    }

    /**
     * Returns a string representation of this <code>VerticalFlowLayout</code>
     * object and its values.
     * @return     a string representation of this layout
     */
    public String toString() {
	String str = "";
	switch (align) {
	  case TOP:        str = ",align=top"; break;
	  case CENTER:      str = ",align=center"; break;
	  case BOTTOM:       str = ",align=bottom"; break;
	  case LEADING:     str = ",align=leading"; break;
	  case TRAILING:    str = ",align=trailing"; break;
	  default: 	//something whent wrong...
FileProjectLine
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server408
org\universAAL\context\space\serv\SCaller.javaAAL Space Server513
		}

	    }
	    if (returnValue instanceof String) {
		return (String) returnValue;
	    } else {
		return null;
	    }
	}
    }

    /**
     * Splits a Turtle serialized string into prefixes and content, so it can be
     * used inside SPARQL queries.
     * 
     * @param serialized
     *            The turtle string
     * @return An array of length 2. The first item [0] is the string with the
     *         prefixes, and the second [1] is the string with the triples
     *         content
     */
    public static String[] splitPrefixes(String serialized) {
	int lastprefix = 0, lastprefixdot = 0, lastprefixuri = 0;
	lastprefix = serialized.toLowerCase().lastIndexOf("@prefix");
	if (lastprefix >= 0) {
	    lastprefixuri = serialized.substring(lastprefix).indexOf(">");
	    lastprefixdot = serialized.substring(lastprefix + lastprefixuri)
		    .indexOf(".");
	}
	String[] result = new String[2];
	result[0] = serialized
		.substring(0, lastprefixuri + lastprefixdot + lastprefix + 1)
		.replace("@", " ").replace(">.", "> ").replace(" .", " ")
		.replace(". ", " ");
	result[1] = serialized.substring(lastprefixuri + lastprefixdot
		+ lastprefix + 1);
	return result;
    }
FileProjectLine
org\universAAL\ontology\shape\ConeSegment.javauniversAAL Ontology Physical World190
org\universAAL\ontology\shape\LineSegment.javauniversAAL Ontology Physical World156
		(float) (1f / lineDir.getY()), (float) (1f / lineDir.getZ()),
		new CoordinateSystem());

	// if the component is negative, signDir is true
	boolean signDirX = invDir.getX() < 0;
	boolean signDirY = invDir.getY() < 0;
	boolean signDirZ = invDir.getZ() < 0;

	// the center point of the box shape in the common coordinate system
	Point center = box.getCenter().getInHigherCoordinateSystem(common);

	// creates arrays with the minimum and maximum values for the x, y and z
	// components of the box shape
	double[] min = { center.getX() - box.getWidth() / 2f,
		center.getY() - box.getDepth() / 2f,
		center.getZ() - box.getHeight() / 2f };
	double[] max = { center.getX() + box.getWidth() / 2f,
		center.getY() + box.getDepth() / 2f,
		center.getZ() + box.getHeight() / 2f };

	// 
	double[] bbox;
	bbox = signDirX ? max : min;
	double tmin = (bbox[0] - lineStart.getX()) * invDir.getX();
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway107
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway322
				co1.hasExtendedObjects = new Vector();
				for (int i = 0; i < co.getHasExtendedObjects().size(); i++) {
					Object obj = co.getHasExtendedObjects().get(i);
					if (obj.getClass().getName().contains("ComplexObject")) {
						ComplexObject inExtCO = (ComplexObject) obj;
						ComplexObject extCO = new ComplexObject();
						extCO.objectName = new QName(
								inExtCO.objectName.getNamespaceURI(),
								inExtCO.objectName.getLocalPart(),
								inExtCO.objectName.getPrefix());
						extCO.objectType = new QName(
								inExtCO.objectType.getNamespaceURI(),
								inExtCO.objectType.getLocalPart(),
								inExtCO.objectType.getPrefix());
						extCO.hasComplexObjects = new Vector();
						extCO.hasNativeObjects = new Vector();
						extCO.hasExtendedObjects = new Vector();
						extCO.isInput = inExtCO.isInput;
						extCO.hasParent = inExtCO.hasParent;
FileProjectLine
org\universAAL\hw\exporter\zigbee\ha\devices\DimmerLightCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation74
org\universAAL\hw\exporter\zigbee\ha\devices\OnOffLightCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation79
		"OnOffLightCallee", new String[] { "Ready to subscribe" }, null);
	zbDevice = serv;
	// Info
	String deviceSuffix = zbDevice.getZBDevice().getUniqueIdenfier()
		.replace("\"", "");
	String deviceURI = NAMESPACE + "actuator" + deviceSuffix;
	ontologyDevice = new LightActuator(deviceURI);
	// Commissioning
	String locationSuffix = Activator.getProperties().getProperty(
		deviceSuffix);
	if (locationSuffix != null
		&& !locationSuffix.equals(Activator.UNINITIALIZED_SUFFIX)) {
	    ontologyDevice
		    .setLocation(new Room(
			    Constants.uAAL_MIDDLEWARE_LOCAL_ID_PREFIX
				    + locationSuffix));
	} else {
	    Properties prop = Activator.getProperties();
	    prop.setProperty(deviceSuffix, Activator.UNINITIALIZED_SUFFIX);
	    Activator.setProperties(prop);
	}
	// Serv reg
	newProfiles = getServiceProfiles(NAMESPACE, DeviceService.MY_URI,
		ontologyDevice);
	this.addNewServiceProfiles(newProfiles);
	// Context reg
	ContextProvider info = new ContextProvider(NAMESPACE
		+ "zbLightingContextProvider");
	info.setType(ContextProviderType.controller);
	cp = new DefaultContextPublisher(context, info);
	// ZB reg
	if (zbDevice.getOnOff().subscribe(this)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1295
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway838
					}

				} else {

					Object res123 = ParsingUtils
							.tryToFindAndParseAttributeForSpecificObject(
									theDefinition, service,
									extension.getBaseTypeName());
					// to res123 se ayti tin periptwi einai to baseCO

					if (res123 != null) {
						if (res123.getClass().getName()
								.contains("NativeObject")) {
							// CHECK THIS!!!!
							// An mpei edw prepi na ELEGKSW AN EINAI SWSTO POU
							// MPAINEI ETSI TO res123 mesa sto co
							co.getHasNativeObjects().add(res123);

						} else if (res123.getClass().getName()
								.contains("ComplexObject")) {
							baseCO = (ComplexObject) res123;
							for (int i = 0; i < baseCO.getHasNativeObjects()
									.size(); i++) {
								co.getHasNativeObjects().add(
										baseCO.getHasNativeObjects().get(i));
							}
							for (int i = 0; i < baseCO.getHasComplexObjects()
									.size(); i++) {
								co.getHasComplexObjects().add(
										baseCO.getHasComplexObjects().get(i));
							}
						}
					} else {
FileProjectLine
org\universAAL\context\sesame\sail\CardinCollect2NativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite49
org\universAAL\context\sesame\sail\CardinCollectNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite45
			if(hasMaxCardinality1(pred, contexts)){
			    removeStatements(subj, pred, null, true, contexts);
			}else if(objIsClosedCollection(obj, contexts)){
			    removeStatements(subj, pred, null, true, contexts);
			}
			//END PATCH
			boolean wasNew = nativeStore.getTripleStore().storeTriple(subjID, predID, objID, contextID,
					explicit);
			result |= wasNew;

			if (wasNew) {
				// The triple was not yet present in the triple store
				sailChangedEvent.setStatementsAdded(true);

				if (hasConnectionListeners()) {
					Statement st;

					if (context != null) {
						st = valueStore.createStatement(subj, pred, obj, context);
					}
					else {
						st = valueStore.createStatement(subj, pred, obj);
					}

					notifyStatementAdded(st);
				}
			}
		}
	}
	catch (IOException e) {
		throw new SailException(e);
	}
	catch (RuntimeException e) {
		logger.error("Encountered an unexpected problem while trying to add a statement", e);
		throw e;
	}

	return result;
    }

    private boolean objIsClosedCollection(Value obj, Resource[] contexts)
FileProjectLine
org\universAAL\lddi\samples\activityhub\client\ActivityHubClient.javauniversAAL Samples Activity Hub Client147
org\universAAL\lddi\samples\device\client\DeviceClient.javauniversAAL Samples Device Client163
			switchOffButton.setAction(switchDeviceOff());
		}

		{
			label2 = new JLabel("Device Info");
			frame.getContentPane().add(label2);
			label2.setBounds(20, 150, 200, 20);

			frame.getContentPane().add(jsp1);
			jsp1.setBounds(20, 170, 900, 150);
		}

		{
			label3 = new JLabel("Context Events");
			frame.getContentPane().add(label3);
			label3.setBounds(20, 330, 200, 20);
			
			frame.getContentPane().add(jsp2);
			jsp2.setBounds(20, 350, 900, 180);
		}

		{
			label4 = new JLabel("Log");
			frame.getContentPane().add(label4);
			label4.setBounds(20, 540, 200, 20);

			frame.getContentPane().add(jsp3);
			jsp3.setBounds(20, 560, 900, 180);
		}
	}
	
	
//	private AbstractAction setDeviceValue() {
//		if(Info3 == null) {
//			Info2 = new AbstractAction("set device value", null) {
//				public void actionPerformed(ActionEvent evt) {
//					myParent.serviceCaller.switchActuator((String)jList1.getSelectedValue(), 
//							Integer.parseInt(field1.getText()));
//				}
//			};
//		}
//		return Info3;
//	}

	private AbstractAction switchDeviceOn() {
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\SubdialogTriggerLAF.javauniversAAL UI Handler Swing Look and Feel Classic89
org\universAAL\ui\handler\gui\swing\classic\SubmitLAF.javauniversAAL UI Handler Swing Look and Feel Classic99
		if(height<MIN_HEIGHT)height=MIN_HEIGHT;
		Image img, newimg;
		img = ColorLAF.button_normal.getImage() ;  
		newimg = img.getScaledInstance( width, height,  java.awt.Image.SCALE_SMOOTH ) ;
		((AbstractButton) e.getComponent()).setIcon(new ImageIcon( newimg ));
		
		img = ColorLAF.button_pressed.getImage() ;  
		newimg = img.getScaledInstance( width, height,  java.awt.Image.SCALE_SMOOTH ) ;
		((AbstractButton) e.getComponent()).setPressedIcon(new ImageIcon( newimg ));
		
		img = ColorLAF.button_focused.getImage() ;  
		newimg = img.getScaledInstance( width, height,  java.awt.Image.SCALE_SMOOTH ) ;
		((AbstractButton) e.getComponent()).setRolloverIcon(new ImageIcon( newimg ));
//		}
	    }
	}
    }
    
    public void componentMoved(ComponentEvent e) {
    }
    
    public void componentHidden(ComponentEvent e) {
    }

}
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)1373
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1032
	if (bytes != null && bytes.length >= 4) {

	    int head = ((int) bytes[0] & 0xff) | ((bytes[1] << 8) & 0xff00);
	    if (java.util.zip.GZIPInputStream.GZIP_MAGIC == head) {
		java.io.ByteArrayInputStream bais = null;
		java.util.zip.GZIPInputStream gzis = null;
		java.io.ByteArrayOutputStream baos = null;
		byte[] buffer = new byte[2048];
		int length = 0;

		try {
		    baos = new java.io.ByteArrayOutputStream();
		    bais = new java.io.ByteArrayInputStream(bytes);
		    gzis = new java.util.zip.GZIPInputStream(bais);

		    while ((length = gzis.read(buffer)) >= 0) {
			baos.write(buffer, 0, length);
		    } // end while: reading input

		    // No error? Get new bytes.
		    bytes = baos.toByteArray();

		} // end try
		catch (java.io.IOException e) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1626
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2684
										.getChildNodes();
								if (childrenOfTheDamned != null) {
									for (int k = 0; k < childrenOfTheDamned
											.getLength(); k++) {
										// ////-System.out.println("\t"+childrenOfTheDamned.item(k).getNodeName());
										if (childrenOfTheDamned.item(k)
												.getNodeName()
												.contains("element")) {
											NamedNodeMap attributesOfType = childrenOfTheDamned
													.item(k).getAttributes();
											// //-System.out.println("WWW GAMWTOOOO...... TYPES... ITERATIVE ");//
											// +typeName +" "+n.getNodeName() );
											String attName = "";
											String attType = "";
											String additionalInfo = "";
											for (int k1 = 0; k1 < attributesOfType
													.getLength(); k1++) {
												Node att = attributesOfType
														.item(k1);
												if (att.getNodeName()
														.equalsIgnoreCase(
																"name")) {
													// //-System.out.println("\tName: "+att.getNodeValue());
													attName = att
															.getNodeValue();
												} else if (att.getNodeName()
														.equalsIgnoreCase(
																"type")) {
													// //-System.out.println("\tType: "+att.getNodeValue());
													attType = att
															.getNodeValue();
												} else {
													// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
													additionalInfo += att
															.getNodeName()
															+ ":"
															+ att.getNodeValue()
															+ "   ";
												}
											}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway222
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway2263
																.getMaxOccurs() > 1) {
															ComplexObject noArrayCO = new ComplexObject();
															noArrayCO
																	.setObjectName(no1
																			.getObjectName());
															noArrayCO
																	.setObjectType(new QName(
																			no1.getObjectType()
																					.getNamespaceURI(),
																			no1.getObjectType()
																					.getLocalPart()
																					+ "[][]",
																			no1.getObjectType()
																					.getPrefix()));
															noArrayCO
																	.setIsArrayType(true);

															ComplexObject noArrayCO_ListNO = new ComplexObject();
															noArrayCO_ListNO
																	.setObjectName(no1
																			.getObjectName());
															noArrayCO_ListNO
																	.setObjectType(new QName(
																			no1.getObjectType()
																					.getNamespaceURI(),
																			no1.getObjectType()
																					.getLocalPart()
																					+ "[]",
																			no1.getObjectType()
																					.getPrefix()));
															noArrayCO_ListNO
																	.setIsArrayType(true);
															noArrayCO_ListNO
																	.setIsOptional(no1
																			.isIsOptional());
															noArrayCO_ListNO
																	.getHasNativeObjects()
																	.add(no1);

															noArrayCO
																	.getHasComplexObjects()
																	.add(noArrayCO_ListNO);
FileProjectLine
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server364
org\universAAL\context\space\serv\SCaller.javaAAL Space Server468
    }
    
    /**
     * Prepares the call to the Do SPARQL service of CHE.
     * 
     * @param query
     *            The SPARQL query
     * @return The prepared request
     */
    private ServiceRequest getDoSPARQLRequest(String query) {
	ServiceRequest getQuery = new ServiceRequest(new ContextHistoryService(
		null), null);

	MergedRestriction r = MergedRestriction.getFixedValueRestriction(
		ContextHistoryService.PROP_PROCESSES, query);

	getQuery.getRequestedService().addInstanceLevelRestriction(r,
		new String[] { ContextHistoryService.PROP_PROCESSES });
	getQuery.addSimpleOutputBinding(
		new ProcessOutput(OUTPUT_RESULT_STRING), new PropertyPath(null,
			true,
			new String[] { ContextHistoryService.PROP_RETURNS })
			.getThePath());
	return getQuery;
    }

    /**
     * Helper method to get the result from the Service Response of CHE.
     * 
     * @param call
     *            The service response
     * @return the result SPARQL string
     */
    private String getResult(ServiceResponse call) {
	Object returnValue = null;
	List outputs = call.getOutputs();
	if (outputs == null) {
	    return null;
	} else {
	    for (Iterator i = outputs.iterator(); i.hasNext();) {
		ProcessOutput output = (ProcessOutput) i.next();
		if (output.getURI().equals(OUTPUT_RESULT_STRING)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway719
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway776
					}
				} else {
					// EINAI NATIVE TYPE
					NamedNodeMap nnm = n.getAttributes();
					String additionalInfo = "";
					for (int i = 0; i < nnm.getLength(); i++) {
						if (nnm.item(i) != null) {
							if (nnm.item(i).getNodeName() != null) {
								if (!nnm.item(i).getNodeName().equals("name")
										&& !nnm.item(i).getNodeName()
												.equals("type")) {
									additionalInfo += " "
											+ nnm.item(i).getNodeValue();
								}
							}
						}
					}
					NativeObject newNativeObject = new NativeObject();
					newNativeObject.setObjectName(co.getObjectName());
					newNativeObject.setAdditionalInfo(additionalInfo);
					newNativeObject.setObjectType(new QName(typeA));

					// //MitsosParser.parsedObjectsHashmap.put(newNativeObject.objectType,
					// newNativeObject);
					co.getHasNativeObjects().add(newNativeObject);

				}
			}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1095
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1131
                                                theDefinition, calledFromAbstractTypeParser);


                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");

                                    } else if (obj1.getClass().getName().contains("XmlSchemaGroupRef")) {
FileProjectLine
org\universAAL\ontology\shape\ConeSegment.javauniversAAL Ontology Physical World144
org\universAAL\ontology\shape\LineSegment.javauniversAAL Ontology Physical World109
    }

    /**
     * calculates the distance between a LineSegment and a specified shape
     * object
     */
    public float getDistanceTo(Shape shape) {
	if (shape == null)
	    throw new IllegalArgumentException();

	if (shape instanceof Sphere) {
	    float dist = getDistanceTo(((Sphere) shape).getCenter());
	    dist -= ((Sphere) shape).getRadius();
	    if (dist < 0)
		return Point.INTERSECTING;
	    else
		return dist;
	}

	if (shape instanceof Box) {
	    Point start = getStart();
	    Point end = getEnd();
	    Point dir = new Point(end.getX() - start.getX(), end.getY()
		    - start.getY(), end.getZ() - start.getZ(), start
		    .getCoordinateSystem());
	    return distanceRay(start, dir, (Box) shape, 0, 1);
	}

	return Point.NOT_COMPUTABLE_DISTANCE;
    }

    private float distanceRay(Point lineStart, Point lineDir, Box box,
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\Select1RadioButtonLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel40
org\universAAL\ui\gui\swing\bluesteelLAF\SelectCheckBoxLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel40
	public void udpate(){
		super.update();
		ColorLAF color = Init.getInstance(getRenderer()).getColorLAF();
		ComponentBorder.addLabeledBorder(getLabelModel().getComponent(), jc, color);
        ((JPanel)jc).setLayout(new FormLayout(color.getGap()));
		needsLabel = false;
        Component[] comps = ((JPanel)jc).getComponents();
		for (int i = 0; i < comps.length; i++) {
			comps[i].setMinimumSize(comps[i].getPreferredSize());
			((JComponent)comps[i]).setOpaque(false);
			((JComponent)comps[i]).setToolTipText(((AbstractButton)comps[i]).getText());
		}
	}
	
	@Override
	public void updateAsMissing() {
		// TODO Auto-generated method stub
		
	}

}
FileProjectLine
org\universAAL\lddi\samples\activityhub\client\ActivityHubClient.javauniversAAL Samples Activity Hub Client246
org\universAAL\lddi\samples\device\client\DeviceClient.javauniversAAL Samples Device Client251
	}
	
//	/**
//	 * AbstractAction for button getInfo
//	 * initiates service call to parent
//	 * @return
//	 */
//	private AbstractAction getInfo() {
//		if(Info2 == null) {
//
//			Info2 = new AbstractAction("get sensor details", null) {
//				
//				public void actionPerformed(ActionEvent evt) {
//					
//					int type = 0;
//					if (devices.get((String)jList1.getSelectedValue()) != null) {
//						type = devices.get((String)jList1.getSelectedValue()).getDeviceCategory().getTypeCode();
//					}
//					
//					myParent.serviceConsumer.getDeviceInfo((String)jList1.getSelectedValue(),type
//							);
//				}
//			};
//		}
//		return Info2;
//	}
	

//	/** 
//	 * create new activityhubsensors from iso11073 library, not from ontology!
//	 * store them in map this.activityHubSensors
//	 * 
//	 * @param resourceURI instanceId
//	 * @param sensorType must be identical from the ontology model to the iso11073 library model !!
//	 */
//	public void addDevice(String resourceURI, int sensorType) {
//		String deviceId = resourceURI.substring(resourceURI.indexOf('#')+1); // e.g. controlledActivityHubDevice1/1/1
//		ActivityHubSensor ahs = (ActivityHubSensor) ActivityHubFactory.createInstance(
//				ActivityHubDeviceCategory.get(sensorType), null, 
//				deviceId, null);
//		
//		this.devices.put(resourceURI, ahs);
//		
//		addTextToLogArea("Added new ActivityHubSensor. Category: " + ahs.getDeviceCategory().toString() +
//				" deviceId: " + ahs.getDeviceId());
//	}

//	/**
//	 * just display the sensors that are already in the datastore this.activityHubSensors
//	 * in the first list on the GUI
//	 * Should be called after all sensors are stored through multiple calls of addActivityHubSensor
//	 */
//	public void showSensorList() {
//		jList1.setListData(this.devices.keySet().toArray());
//	}

	
	/**
	 * send all text lines from the given array to addTextToDeviceArea
	 * @param multiple text lines for 1 device info response  
	 */
	public void showDeviceInfo(String[] listData) {
		for (String line : listData) {
			addTextToDeviceArea(line);
		}
	}

	/**
	 * Helper class that displays the given text on the deviceInfoArea on the GUI
	 * adding a line break
	 * and set focus always to the bottom of the textArea
	 * @param text
	 */
	public void addTextToDeviceArea(String text) {
		deviceInfoArea.setText(deviceInfoArea.getText() + text + "\n");
	    deviceInfoArea.setCaretPosition(deviceInfoArea.getDocument().getLength());
	}
	
	
	/**
	 * send all text lines from the given array to addTextToContextArea
	 * @param multiple text lines for 1 context event  
	 */
	public void showContextEvent(String[] listData) {
		for (String line : listData) {
			addTextToContextArea(line);
		}
	}

	/**
	 * Helper class that displays the given text on the contextArea on the GUI
	 * adding a line break
	 * and set focus always to the bottom of the textArea
	 * @param text
	 */
	public void addTextToContextArea(String text) {
		contextArea.setText(contextArea.getText() + text + "\n");
	    contextArea.setCaretPosition(contextArea.getDocument().getLength());
	}
	
	/**
	 * Helper class that displays the given text on the logArea on the GUI
	 * adding a line break
	 * @param text
	 */
	public void addTextToLogArea(String text) {
		logArea.setText(logArea.getText() + text + "\n");
	}

	
	/**
	 * 
	 */
	public void deleteGui() {
		frame.dispose();
	}

}
FileProjectLine
org\universAAL\samples\lighting\server_regular\LightingProviderLevel1.javauniversAAL Samples AAPI Regular Lighting Server51
org\universAAL\samples\lighting\server_regular\LightingProviderLevel2.javauniversAAL Samples AAPI Regular Lighting Server67
    }

    public ServiceResponse handleCall(ServiceCall call) {
	if (call == null)
	    return null;

	String operation = call.getProcessURI();
	if (operation == null)
	    return null;

	if (operation.startsWith(LightingServerURIs.GetControlledLamps.URI))
	    return getControlledLamps();

	LightSource input = (LightSource) call
		.getInputValue(LightingServerURIs.GetLampInfo.Input.LAMP_URI);
	if (input == null)
	    return null;

	if (operation.startsWith(LightingServerURIs.GetLampInfo.URI))
	    return getLampInfo(input);

	if (operation.startsWith(LightingServerURIs.TurnOff.URI))
	    return turnOff(input);

	if (operation.startsWith(LightingServerURIs.TurnOn.URI))
	    return turnOn(input);

	return null;
    }

    // create a service response that including all available light sources
    private ServiceResponse getControlledLamps() {
    	AapiServiceResponse sr = new AapiServiceResponse(CallStatus.succeeded);
	List al = new ArrayList(Arrays.asList(theServer.getControlledLamps()));
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)58
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)58
public class GUI extends JDialog implements ActionListener {
	
// Attributes
	
	/** Serializable object */
	private static final long serialVersionUID = 1L;	
	
	/** uAAL publisher window */
	private JDialog uaalPublisher = null;
	
	/** Main and secondary panels */
	public static JPanel mainPanel = null;
	private JPanel radiobuttonPanel = null;
	private JPanel mainPublisherPanel = null;
	
	/** Components */
	private JRadioButton realMeasurementButton = null;		
	private JRadioButton simulatedMeasurementButton = null;
	private ButtonGroup radioButtonsGroup = null;
	private JButton bloodPressureButton = null;
	private JButton weighingScaleButton = null;
	private JLabel uaalLogoLabel = null;
	private JLabel uaalPublisherMainLabel = null;
	private JLabel uaalPublisherLogoLabel = null;	
	private JLabel uaalPublisherWeightValueLabel = null;
	public static JTextField uaalPublisherWeightValueTextfield = null;
	private JLabel uaalPublisherWeightUnitLabel = null;
	public static JTextField uaalPublisherWeightUnitTextfield = null;
	private JLabel uaalPublisherBloodPressureSysValueLabel = null;
	public static JTextField uaalPublisherBloodPressureSysValueTextfield = null;
	private JLabel uaalPublisherBloodPressureDiaValueLabel = null;
	public static JTextField uaalPublisherBloodPressureDiaValueTextfield = null;
	private JLabel uaalPublisherBloodPressurePulValueLabel = null;
	public static JTextField uaalPublisherBloodPressurePulValueTextfield = null;
	private JButton uaalPublisherButton = null;
	
	/** Constants */
	private static final String weighingScaleImage = "ws.png";
	private static final String bloodPressureImage = "bp.png";
	private static final String uaalLogoImage = "uaal_logo_resized.jpg";
	
	/** Bundle context object */
	private static BundleContext ctx = null;
FileProjectLine
org\universAAL\context\sesame\sail\CardinCollect2NativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite18
org\universAAL\context\sesame\sail\CardinCollectNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite16
    protected CardinCollectNativeStoreConnection(
	    CardinalityNativeStore nativeStore) throws IOException {
	super(nativeStore);
    }

    @Override
    protected boolean addStatement(Resource subj, URI pred, Value obj,
	    boolean explicit, Resource... contexts) throws SailException {
	OpenRDFUtil.verifyContextNotNull(contexts);

	boolean result = false;

	try {
		ValueStore valueStore = nativeStore.getValueStore();
		int subjID = valueStore.storeValue(subj);
		int predID = valueStore.storeValue(pred);
		int objID = valueStore.storeValue(obj);

		if (contexts.length == 0) {
			contexts = new Resource[] { null };
		}

		for (Resource context : contexts) {
			int contextID = 0;
			if (context != null) {
				contextID = valueStore.storeValue(context);
			}

			//START PATCH
			if(hasMaxCardinality1(pred, contexts)){
			    removeStatements(subj, pred, null, true, contexts);
			}else if(objIsClosedCollection(obj, contexts)){
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway58
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway292
		System.out.println(this.objectName.getLocalPart());

		newCO.hasComplexObjects = new Vector();

		Iterator iter1 = this.hasComplexObjects.iterator();
		while (iter1.hasNext()) {
			ComplexObject co = (ComplexObject) iter1.next();
			co.setHasParent(this);

			if (checkIfCOhasParentTheSameCO(co)) {
				ComplexObject co1 = new ComplexObject();
				co1.objectName = new QName(co.objectName.getNamespaceURI(),
						co.objectName.getLocalPart(), co.objectName.getPrefix());
				co1.objectType = new QName(co.objectType.getNamespaceURI(),
						co.objectType.getLocalPart(), co.objectType.getPrefix());
				co1.hasComplexObjects = new Vector();
				co1.hasNativeObjects = new Vector();
				co1.hasExtendedObjects = new Vector();
				co1.isInput = co.isInput;
				co1.hasParent = co.hasParent;
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1091
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1138
													} catch (Exception ex) {
														ComplexObject coArrayCO = new ComplexObject();
														coArrayCO
																.setObjectName(co1
																		.getObjectName());
														// co1.setObjectType(new
														// QName("XA!"));
														if (!co1.getObjectType()
																.getLocalPart()
																.contains("[]")) {
															coArrayCO
																	.setObjectType(new QName(
																			co1.getObjectType()
																					.getNamespaceURI(),
																			co1.getObjectType()
																					.getLocalPart()
																					+ "[]",
																			co1.getObjectType()
																					.getPrefix()));
														} else {
															coArrayCO
																	.setObjectType(new QName(
																			co1.getObjectType()
																					.getNamespaceURI(),
																			co1.getObjectType()
																					.getLocalPart(),
																			co1.getObjectType()
																					.getPrefix()));
														}
														coArrayCO
																.setIsArrayType(true);
														coArrayCO
																.getHasComplexObjects()
																.add(co1);
														coArrayCO
																.setIsOptional(co1
																		.isIsOptional());
														dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.add(coArrayCO);
													}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1231
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway783
                                                parseComplexType(service, null, xmlSchemaType, co1, theDefinition, calledFromAbstractTypeParser);

                                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                                    co1.setIsOptional(true);
                                                }

                                                if (newSimpleOrComplexObjectElement != null && newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                                    ComplexObject coArrayCO = new ComplexObject();
                                                    coArrayCO.setObjectName(co1.getObjectName());
                                                    //co1.setObjectType(new QName("XA!"));
                                                    coArrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                            co1.getObjectType().getLocalPart() + "[]",
                                                            co1.getObjectType().getPrefix()));
                                                    coArrayCO.setIsArrayType(true);
                                                    coArrayCO.getHasComplexObjects().add(co1);
                                                    coArrayCO.setIsOptional(co1.isIsOptional());
                                                    co.getHasComplexObjects().add(coArrayCO);

                                                } else {
                                                    co.getHasComplexObjects().add(co1);
                                                }
                                                typeParsed = true;
                                            }
                                            if (!typeParsed) {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)2145
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1741
		super.out.write(theBytes, off, len);
		return;
	    } // end if: supsended

	    for (int i = 0; i < len; i++) {
		write(theBytes[off + i]);
	    } // end for: each byte written

	} // end write

	/**
	 * Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer
	 * without closing the stream.
	 */
	public void flushBase64() throws java.io.IOException {
	    if (position > 0) {
		if (encode) {
		    out.write(encode3to4(b4, buffer, position, options));
		    position = 0;
		} // end if: encoding
		else {
		    throw new java.io.IOException(
			    "Base64 input not properly padded.");
		} // end else: decoding
	    } // end if: buffer partially full

	} // end flush

	/**
	 * Flushes and closes (I think, in the superclass) the stream.
	 * 
	 * @since 1.3
	 */
	public void close() throws java.io.IOException {
	    // 1. Ensure that pending characters are written
	    flushBase64();

	    // 2. Actually close the stream
	    // Base class both flushes and closes.
	    super.close();

	    buffer = null;
	    out = null;
	} // end close

	/**
	 * Suspends encoding of the stream. May be helpful if you need to embed
	 * a piece of base640-encoded data in a stream.
	 * 
	 * @since 1.5.1
	 */
	public void suspendEncoding() throws java.io.IOException {
	    flushBase64();
	    this.suspendEncoding = true;
	} // end suspendEncoding

	/**
	 * Resumes encoding of the stream. May be helpful if you need to embed a
	 * piece of base640-encoded data in a stream.
	 * 
	 * @since 1.5.1
	 */
	public void resumeEncoding() {
	    this.suspendEncoding = false;
	} // end resumeEncoding

    } // end inner class OutputStream

} // end class Base64
FileProjectLine
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server209
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server261
	Resource bag = (Resource) Hub.parser.deserialize(result1 + " "
		+ result2, Queries.AUXBAG);
	if (bag != null) {
	    Object content = bag.getProperty(Queries.AUXBAGPROP);
	    ArrayList list = new ArrayList();
	    OntologyManagement mng = OntologyManagement.getInstance();
	    if (content instanceof List) {
		Iterator iter = ((ArrayList) content).iterator();
		while (iter.hasNext()) {
		    Resource res = (Resource) iter.next();
		    list.add(mng.getResource(
			    mng.getMostSpecializedClass(res.getTypes()),
			    res.getURI()));
		}
	    } else {
		Resource res = (Resource) content;
		list.add(mng.getResource(
			mng.getMostSpecializedClass(res.getTypes()),
			res.getURI()));
	    }
	    return list;
	} else {
	    return null;
	}
    }

    protected ArrayList getSubProfilesOfProfile(Resource profile) {
FileProjectLine
org\universAAL\middleware\aalspace\json\model\AALSpace.javauniversAAL Middleware XSD Schemas143
org\universAAL\middleware\interfaces\aalspace\xml\model\Aalspace.javauniversAAL Middleware XSD Schemas414
        protected String spaceDescription;

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#getProfile()
	 */
        public String getProfile() {
            return profile;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#setProfile(java.lang.String)
	 */
        public void setProfile(String value) {
            this.profile = value;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#isSetProfile()
	 */
        public boolean isSetProfile() {
            return (this.profile!= null);
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#getSpaceId()
	 */
        public String getSpaceId() {
            return spaceId;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#setSpaceId(java.lang.String)
	 */
        public void setSpaceId(String value) {
            this.spaceId = value;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#isSetSpaceId()
	 */
        public boolean isSetSpaceId() {
            return (this.spaceId!= null);
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#getSpaceName()
	 */
        public String getSpaceName() {
            return spaceName;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#setSpaceName(java.lang.String)
	 */
        public void setSpaceName(String value) {
            this.spaceName = value;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#isSetSpaceName()
	 */
        public boolean isSetSpaceName() {
            return (this.spaceName!= null);
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#getSpaceDescription()
	 */
        public String getSpaceDescription() {
            return spaceDescription;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#setSpaceDescription(java.lang.String)
	 */
        public void setSpaceDescription(String value) {
            this.spaceDescription = value;
        }

        /* (non-Javadoc)
	 * @see org.universAAL.middleware.interfaces.aalspace.model.ISpaceDescriptor#isSetSpaceDescription()
	 */
        public boolean isSetSpaceDescription() {
            return (this.spaceDescription!= null);
        }

    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway153
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway188
			Iterator iter2 = omElement.getChildren();
			while (iter2.hasNext()) {
				Object obj = iter2.next();
				System.out.println(obj.getClass().getName());
				if (obj.getClass().getName()
						.contains("org.apache.axiom.om.impl.llom.OMTextImpl")) {
					org.apache.axiom.om.impl.llom.OMTextImpl t = (org.apache.axiom.om.impl.llom.OMTextImpl) obj;
					System.out.println(t.getText());

				} else if (obj
						.getClass()
						.getName()
						.contains("org.apache.axiom.om.impl.llom.OMElementImpl")) {
					org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) obj;
					OMElementImpl result = findOMNodeWithTheSpecific_ID_AmongChildren_ITERATIVE(
							childOMElement, null, idToFind);
					return result;
				}
			}

			return null;
		}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway677
org\universAAL\ri\wsdlToolkit\ioApi\NativeObject.javauniversAAL Remote Interoperability Internet Gateway163
	}

	public void getParents(Object obj, List list, int parentDepth) {
		if (list.size() > parentDepth) {
			return;
		}
		if (obj instanceof NativeObject) {
			NativeObject no = (NativeObject) obj;
			if (no.getHasParent() instanceof ComplexObject) {
				ComplexObject co = ((ComplexObject) no.getHasParent());
				list.add(co.getObjectName().getLocalPart());
				getParents(co, list, parentDepth);
			}
		} else if (obj instanceof ComplexObject) {
			ComplexObject co = (ComplexObject) obj;
			if (co.getHasParent() instanceof ComplexObject) {
				ComplexObject co1 = ((ComplexObject) co.getHasParent());
				list.add(co1.getObjectName().getLocalPart());
				getParents(co1, list, parentDepth);
			}
		}
	}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway640
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway845
									extension.getBaseTypeName());
					// to res123 se ayti tin periptwi einai to baseCO

					if (res123 != null) {
						if (res123.getClass().getName()
								.contains("NativeObject")) {
							// CHECK THIS!!!!
							// An mpei edw prepi na ELEGKSW AN EINAI SWSTO POU
							// MPAINEI ETSI TO res123 mesa sto co
							co.getHasNativeObjects().add(res123);

						} else if (res123.getClass().getName()
								.contains("ComplexObject")) {
							baseCO = (ComplexObject) res123;
							for (int i = 0; i < baseCO.getHasNativeObjects()
									.size(); i++) {
								co.getHasNativeObjects().add(
										baseCO.getHasNativeObjects().get(i));
							}
							for (int i = 0; i < baseCO.getHasComplexObjects()
									.size(); i++) {
								co.getHasComplexObjects().add(
										baseCO.getHasComplexObjects().get(i));
							}
						}
					} else {
						if (extension.getBaseTypeName().getNamespaceURI()
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1319
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1789
										.getClass()
										.toString()
										.contains(
												"org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
									NativeObject no1 = new NativeObject();
									ComplexObject unionCO = SimpleTypesParser
											.parseSimpleType(
													newSimpleOrComplexObjectElement,
													null, no1, theDefinition,
													service);
									if (newSimpleOrComplexObjectElement
											.getMinOccurs() == 0
											|| newSimpleOrComplexObjectElement
													.isNillable()) {
										no1.setIsOptional(true);
									}
									if (unionCO != null) {
										if (newSimpleOrComplexObjectElement
												.getMaxOccurs() > 1) {
											ComplexObject noArrayCO = new ComplexObject();

											noArrayCO.setObjectName(no1
													.getObjectName());
											noArrayCO.setObjectType(new QName(
													no1.getObjectType()
															.getNamespaceURI(),
													no1.getObjectType()
															.getLocalPart()
															+ "[]", no1
															.getObjectType()
															.getPrefix()));
											noArrayCO.setIsArrayType(true);
											noArrayCO.getHasComplexObjects()
													.add(unionCO);
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation72
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation108
				(byte)0x37, (byte)0x00,
				(byte)0x09, (byte)0x96,
				(byte)0x00, (byte)0x02,
				(byte)0x06, (byte)0xC3,
				
				// Measure 5
				(byte)0x00, (byte)0x01,
				(byte)0x00, (byte)0x03,
				(byte)0x00, (byte)0x1A,
				(byte)0x0A, (byte)0x56,
				(byte)0x00, (byte)0x04,
				(byte)0xFE, (byte)0x00,
				(byte)0x1C, (byte)0x5C,
				(byte)0x09, (byte)0x90,
				(byte)0x00, (byte)0x08,
				(byte)0x20, (byte)0x12,
				(byte)0x05, (byte)0x08,
				(byte)0x15, (byte)0x20,
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation54
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation90
				(byte)0x29, (byte)0x00,
				(byte)0x09, (byte)0x96,
				(byte)0x00, (byte)0x02,
				(byte)0x06, (byte)0xC3,
				
				// Measure 4
				(byte)0x00, (byte)0x01,
				(byte)0x00, (byte)0x03,
				(byte)0x00, (byte)0x1A,
				(byte)0x0A, (byte)0x56,
				(byte)0x00, (byte)0x04,
				(byte)0xFE, (byte)0x00,
				(byte)0x1C, (byte)0x66,
				(byte)0x09, (byte)0x90,
				(byte)0x00, (byte)0x08,
				(byte)0x20, (byte)0x12,
				(byte)0x05, (byte)0x08,
				(byte)0x15, (byte)0x19,
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)356
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher344
				showHDPDataChannelProperties(hdpDataChannelPath);
				// We need a valid file descriptor prior sending or receiving data bytes between managers and agents. If the file descriptor getted is not
				// valid a -1 value will be returned
				hdpDataChannelFileDescriptor = getHDPDataChannelFileDescriptor(hdpDataChannelPath);
				System.out.println("Number of file descriptor: "+hdpDataChannelFileDescriptor);
				// Notify the connection to the FSM of the Manager
				fsm = x73manager.getFSM();
				fsm.transportActivate();
				System.out.println(fsm.getStringTransportState());
				// Wait until right HDP data frame will be available in our assigned file descriptor
				waitHDPDataFrames(hdpDataChannelFileDescriptor);
			} else 
				System.out.println("HDP channel not available");
		}
	}

	/* HDP data received */
	public void onDataReceived() {
		// Show the received data frame (each byte in hex mode)
		showHDPDataFrame(hdpDataChannelFileDescriptor);
		// Get the number of bytes read (size of the buffer array with VALID data)
		int numberBytes = getSizeHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from native code): "+numberBytes);
		// Get the input data frame as a whole
		hdpReceivedDataFrame = getHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from JAVA): "+hdpReceivedDataFrame.length);
		System.out.println("Answering agent data frames");		
		rmp = x73manager.getMessageProcessor();
		byte[] response = x73manager.getAPDU(hdpReceivedDataFrame);
		sendHDPDataToDevice(hdpDataChannelFileDescriptor,response);		
		if(fsm.getStringChannelState().equals("ASSOCIATED - OPERATING")) {			 
			if (finalData != null) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway591
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway783
                                                parseComplexType(service, null, xmlSchemaType, co1, theDefinition, calledFromAbstractTypeParser);

                                                if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                                    co1.setIsOptional(true);
                                                }

                                                if (newSimpleOrComplexObjectElement != null && newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                                    ComplexObject coArrayCO = new ComplexObject();
                                                    coArrayCO.setObjectName(co1.getObjectName());
                                                    //co1.setObjectType(new QName("XA!"));
                                                    coArrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                            co1.getObjectType().getLocalPart() + "[]",
                                                            co1.getObjectType().getPrefix()));
                                                    coArrayCO.setIsArrayType(true);
                                                    coArrayCO.getHasComplexObjects().add(co1);
                                                    coArrayCO.setIsOptional(co1.isIsOptional());
                                                    co.getHasComplexObjects().add(coArrayCO);

                                                } else {
                                                    co.getHasComplexObjects().add(co1);
                                                }
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service363
org\universAAL\lddi\weighingscale\publisher\hdpManager.javauniversAAL Samples LDDI Weighing scale agent publisher344
				showHDPDataChannelProperties(hdpDataChannelPath);
				// We need a valid file descriptor prior sending or receiving data bytes between managers and agents. If the file descriptor getted is not
				// valid a -1 value will be returned
				hdpDataChannelFileDescriptor = getHDPDataChannelFileDescriptor(hdpDataChannelPath);
				System.out.println("Number of file descriptor: "+hdpDataChannelFileDescriptor);
				// Notify the connection to the FSM of the Manager
				fsm = x73manager.getFSM();
				fsm.transportActivate();
				System.out.println(fsm.getStringTransportState());
				// Wait until right HDP data frame will be available in our assigned file descriptor
				waitHDPDataFrames(hdpDataChannelFileDescriptor);
			} else 
				System.out.println("HDP channel not available");
		}
	}

	/* HDP data received */
	public void onDataReceived() {
		// Show the received data frame (each byte in hex mode)
		showHDPDataFrame(hdpDataChannelFileDescriptor);
		// Get the number of bytes read (size of the buffer array with VALID data)
		int numberBytes = getSizeHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from native code): "+numberBytes);
		// Get the input data frame as a whole
		hdpReceivedDataFrame = getHDPDataFrame(hdpDataChannelFileDescriptor);
		System.out.println("Number of bytes received (call from JAVA): "+hdpReceivedDataFrame.length);
		System.out.println("Answering agent data frames");		
		rmp = x73manager.getMessageProcessor();
		byte[] response = x73manager.getAPDU(hdpReceivedDataFrame);
		sendHDPDataToDevice(hdpDataChannelFileDescriptor,response);		
		if(fsm.getStringChannelState().equals("ASSOCIATED - OPERATING")) {			 
			if (finalData != null) {
FileProjectLine
org\universAAL\ui\handler\gui\swing\model\FormControl\RepeatModelGrid.javauniversAAL UI Handler Swing141
org\universAAL\ui\handler\gui\swing\model\FormControl\RepeatModelTable.javauniversAAL UI Handler Swing138
			buttonPanel.add(new DownTableButton());
		}
		return buttonPanel;
	}
	
	/**
	 * Class representing the Add button for Tables.
	 * @author amedrano
	 */
	public class AddTableButton extends JButton implements ActionListener {

		public AddTableButton(Icon icon) {
			super(icon);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Add");
		}

		public AddTableButton(String text, Icon icon) {
			super(text, icon);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Add");
		}

		public AddTableButton(String text) {
			super(text);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Add");
		}

		/**
		 * Java Serializer Variable
		 */
		private static final long serialVersionUID = 1L;

		/**
		 * Constructor for Add button
		 */
		public AddTableButton() {
			super();
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Add");
		}

		/** {@inheritDoc}*/
		public void actionPerformed(ActionEvent e) {
FileProjectLine
org\universAAL\samples\lighting\client\LightingConsumer.javauniversAAL Samples Lighting Client (OSGi)247
org\universAAL\ri\gateway\support\android\LightingConsumer.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node253
    public static boolean dimToValue(final String lampURI, final Integer percent) {

	if ((lampURI == null) || (percent == null)
		|| !(lampURI instanceof String)
		|| !(percent instanceof Integer)) {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class,
		    "dimToValue", new Object[] { "wrong inputs" }, null);
	    return false;
	}

	ServiceResponse sr = caller.call(dimRequest(lampURI, percent));
	LogUtils.logDebug(Activator.mc, LightingConsumer.class, "dimToValue",
		new Object[] { "Call status: ", sr.getCallStatus().name() },
		null);

	if (sr.getCallStatus() == CallStatus.succeeded)
	    return true;
	else {
	    LogUtils
		    .logWarn(
			    Activator.mc,
			    LightingConsumer.class,
			    "dimToValue",
			    new Object[] { "the lamp couldn't be dimmed to the given value" },
			    null);
	    return false;
	}
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1298
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway640
								restriction.getBaseTypeName());
				// to res123 se ayti tin periptwi einai to baseCO

				if (res123 != null) {
					if (res123.getClass().getName().contains("NativeObject")) {
						// CHECK THIS!!!!
						// An mpei edw prepi na ELEGKSW AN EINAI SWSTO POU
						// MPAINEI ETSI TO res123 mesa sto co
						co.getHasNativeObjects().add(res123);

					} else if (res123.getClass().getName()
							.contains("ComplexObject")) {
						baseCO = (ComplexObject) res123;
						for (int i = 0; i < baseCO.getHasNativeObjects().size(); i++) {
							co.getHasNativeObjects().add(
									baseCO.getHasNativeObjects().get(i));
						}
						for (int i = 0; i < baseCO.getHasComplexObjects()
								.size(); i++) {
							co.getHasComplexObjects().add(
									baseCO.getHasComplexObjects().get(i));
						}
					}
				} else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway683
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway739
					no1.setHasParent(co);
					no1.setIsInput(co.isIsInput());

					QName[] qNarray = new QName[qNamesSoFar.size() + 1];
					for (int i = 0; i < qNamesSoFar.size(); i++) {
						// qNarray[i] = (QName) qNamesSoFar.get(i);
						if (qNamesSoFar.get(i) != null) {
							QName qName1 = new QName(
									((QName) qNamesSoFar.get(i))
											.getNamespaceURI(),
									((QName) qNamesSoFar.get(i)).getLocalPart(),
									((QName) qNamesSoFar.get(i)).getPrefix());
							qNarray[i] = qName1;
						} else {
							qNarray[i] = new QName("");
						}
					}
					qNarray[qNarray.length - 1] = no1.getObjectName();

				} else if (obj != null
FileProjectLine
ch\ethz\iks\slp\impl\AttributeReply.javauniversAAL Thirdparty jslp library (Core)184
ch\ethz\iks\slp\impl\ServiceRegistration.javauniversAAL Thirdparty jslp library (Core)229
		url.sign(spiList);

		authBlocks = new AuthenticationBlock[spiList.size()];
		for (int k = 0; k < spiList.size(); k++) {
			int timestamp = SLPUtils.getTimestamp();

			String spi = (String) spiList.get(k);
			byte[] data = getAuthData(spi, timestamp);
			authBlocks[k] = new AuthenticationBlock(
					AuthenticationBlock.BSD_DSA, spi, timestamp, data, null);

		}
	}

	/**
	 * verify this ServiceRegistration.
	 * 
	 * @return true if verification suceeds.
	 * @throws ServiceLocationException
	 *             in case of IO errors.
	 */
	boolean verify() throws ServiceLocationException {
		for (int i = 0; i < authBlocks.length; i++) {
			if (authBlocks[i].verify(getAuthData(authBlocks[i].getSPI(),
					authBlocks[i].getTimestamp()))) {
				return true;
			}
		}
		return false;
	}

	/**
	 * get the authentication data.
	 * 
	 * @param spi
	 *            the SPI.
	 * @param timestamp
	 *            the timestamp.
	 * @return the auth data.
	 * @throws ServiceLocationException
	 *             in case of IO errors.
	 */
	private byte[] getAuthData(final String spi, final int timestamp)
FileProjectLine
org\universAAL\ui\handler\gui\swing\model\FormControl\RepeatModelGrid.javauniversAAL UI Handler Swing192
org\universAAL\ui\handler\gui\swing\model\FormControl\RepeatModelTable.javauniversAAL UI Handler Swing186
				}
			});
			
		}
	}

	/**
	 * Class representing the Delete button for Tables.
	 * @author amedrano
	 */
	public class DeleteTableButton extends JButton implements ActionListener {

		public DeleteTableButton(Icon icon) {
			super(icon);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Delete");
		}

		public DeleteTableButton(String text, Icon icon) {
			super(text, icon);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Delete");
		}

		public DeleteTableButton(String text) {
			super(text);
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Delete");
		}

		/**
		 * Java Serializer Variable
		 */
		private static final long serialVersionUID = 1L;

		
		/**
		 * Constructor for Remove Button
		 */
		public DeleteTableButton() {
			super();
			this.addActionListener(this);
			this.setName(fc.getURI()+"_Delete");
		}
		
		/** {@inheritDoc}*/
		public void actionPerformed(ActionEvent e) {
FileProjectLine
org\universAAL\ontology\multimedia\Stereoset.javauniversAAL Ontology Multimedia Devices47
org\universAAL\ontology\multimedia\TV.javauniversAAL Ontology Multimedia Devices50
    public TV(String uri, Boolean isOnProg, Boolean isOnComm) {
	super(uri);

	if ((isOnProg == null) || (isOnComm == null))
	    throw new IllegalArgumentException();

	props.put(PROP_IS_ON_PROG, isOnProg);
	props.put(PROP_IS_ON_COMM, isOnComm);
    }

    public String getClassURI() {
	return MY_URI;
    }

    public Boolean isOnComm() {
	return (Boolean) props.get(PROP_IS_ON_COMM);
    }

    public Boolean isOnProg() {
	return (Boolean) props.get(PROP_IS_ON_PROG);
    }

    public void setOnProg(Boolean b) {
	if (b != null)
	    props.put(PROP_IS_ON_PROG, b);
    }

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.persona.ontology.ManagedIndividual#getPropSerializationType(java.
     * lang.String)
     */
    public int getPropSerializationType(String propURI) {
	return PROP_SERIALIZATION_FULL;
    }

    /*
     * (non-Javadoc)
     * 
     * @see org.persona.ontology.ManagedIndividual#isWellFormed()
     */
    public boolean isWellFormed() {
	return props.containsKey(PROP_IS_ON_PROG)
		&& props.containsKey(PROP_IS_ON_COMM);
    }
}
FileProjectLine
org\universAAL\lddi\fs20\util\LogTracker.javauniversAAL LDDI FS20 Connector52
org\universAAL\lddi\knx\library\utils\LogTracker.javauniversAAL LDDI KNX Datapoint Type Library52
		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService removed!");
		log(LOG_DEBUG,"LogService removed!");
	}

	public LogTracker(BundleContext context) {
		super(context, LogService.class.getName(), null);
	}

	public void log(int level, String message) {
		log(null, level, message, null);
	}

	public void log(int level, String message, Throwable exception) {
		log(null, level, message, exception);
	}

	public void log(ServiceReference sr, int level, String message) {
		log(sr, level, message, null);
	}

	public void log(ServiceReference sr, int level, String message,
			Throwable exception) {
		LogService log = (LogService) getService(); //obtain optional, unary LogService
		if (log != null) {
			log.log(sr, level, message, exception);
		}
	}

}
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\mder\EncoderMDER.javauniversAAL LDDI Library IEEE x073 standard implementation215
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\ber\BEREncoder.javauniversAAL LDDI Library IEEE x073 standard implementation244
    public int encodeSequenceOf(Object object, OutputStream stream, 
                                   ElementInfo elementInfo) throws Exception {    
        int resultSize = 0;
        Object[] collection = ((java.util.Collection<Object>)object).toArray();
        int sizeOfCollection = 0;
        for(int i=0;i<collection.length;i++) {
            Object obj = collection[collection.length - 1 - i];
            ElementInfo info = new ElementInfo();
            info.setAnnotatedClass(obj.getClass());
            info.setParentAnnotated(elementInfo.getAnnotatedClass());
            if(elementInfo.hasPreparedInfo()) {
                ASN1SequenceOfMetadata seqOfMeta = (ASN1SequenceOfMetadata)elementInfo.getPreparedInfo().getTypeMetadata();
                info.setPreparedInfo( seqOfMeta.getItemClassMetadata() );
            }
            sizeOfCollection+=encodeClassType(obj,stream,info);
        }
        resultSize += sizeOfCollection;
FileProjectLine
org\universAAL\lddi\exporter\activityhub\util\LogTracker.javauniversAAL LDDI Exporter of ActivityHub devices (ISO 11073-10471)49
org\universAAL\lddi\knx\library\utils\LogTracker.javauniversAAL LDDI KNX Datapoint Type Library52
		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService removed!");
		log(LOG_DEBUG,"LogService removed!");
	}

	public LogTracker(BundleContext context) {
		super(context, LogService.class.getName(), null);
	}

	public void log(int level, String message) {
		log(null, level, message, null);
	}

	public void log(int level, String message, Throwable exception) {
		log(null, level, message, exception);
	}

	public void log(ServiceReference sr, int level, String message) {
		log(sr, level, message, null);
	}

	public void log(ServiceReference sr, int level, String message,
			Throwable exception) {
		LogService log = (LogService) getService(); //obtain optional, unary LogService
		if (log != null) {
			log.log(sr, level, message, exception);
		}
	}

}
FileProjectLine
org\universAAL\support\utils\ui\low\Dialog.javauniversAAL Support Utilities API178
org\universAAL\support\utils\ui\low\SubDialog.javauniversAAL Support Utilities API138
	props.put(PROP_DIALOG_FORM, Form.newSubdialog(title, parentDialogURI));
	props.put(PROP_DIALOG_PRIORITY, priority);
	props.put(PROP_DIALOG_LANGUAGE, Locale.getDefault());
	props.put(PROP_DIALOG_PRIVACY_LEVEL, privacy);
    }
    
    /* (non-Javadoc)
     * @see org.universAAL.support.utils.ui.IContainer#add(org.universAAL.samples.ui.utils.SimpleControl)
     */
    public String[] add(Control ctrl){
	return ctrl.create(getDialogForm().getIOControls());
    }
    
    /**
     * Add a Submit Form Control to the Submit group of the SubDialog. Submit
     * group is for Submits that end the SubDialog or lead to new dialogs.
     * 
     * @param ctrl
     *            The Submit to add
     * @return The String representing the ID to be used to identify the Submit
     *         in the response.
     */
    public String addSubmit(SubmitCmd ctrl){
	String[] ref=ctrl.create(getDialogForm().getSubmits());
	return ref[ref.length-1];
    }
    
    /**
     * Add a hidden object so it is sent within the UI request, but not shown to
     * the user. When the UI response is being handled by the UI caller, this
     * hidden input can be retrieved by calling
     * <code>uiresponse.getUserInput(new String[]{ref});</code> , being
     * <code>ref</code> the one you used in this method.
     * 
     * @param ref
     *            The reference you will use to access the hidden object later
     *            from the response
     * @param hidden
     *            The object you want to hide
     */
    public void addHidden(String ref, Object hidden){
	this.getDialogForm().getData().setPropertyPath(new String[]{ref}, hidden);
    }
    
    /**
     * Add an extra property to the form used in this UI request. Extra
     * properties may be used by I/O Handlers to allow the developer to
     * fine-tune things like the layout. The equivalent in native API is to call
     * setProperty() on a Form object. Use this only as recommended by the
     * Handler you intend to use, since it is the Handler the one who will
     * interpret the property.
     * 
     * @param property
     *            The property of a Form that a certain Handler will inspect for
     *            its own purposes.
     * @param extra
     *            The value to be set into the property.
     */
    public void addExtra(String property, Object extra){
	this.getDialogForm().setProperty(property, extra);
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway898
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1095
                                        co1.setObjectType(new QName("Object"));

                                        if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                            co1.setIsOptional(true);
                                        }

                                        if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                            //Array Type
                                            ComplexObject arrayCO = new ComplexObject();
                                            arrayCO.setObjectName(co1.getObjectName());
                                            //arrayCO.setObjectType(new QName(co1.getObjectType().getLocalPart()+"[]"));
                                            arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                                    co1.getObjectType().getLocalPart() + "[]",
                                                    co1.getObjectType().getPrefix()));
                                            arrayCO.setIsArrayType(true);
                                            arrayCO.getHasComplexObjects().add(co1);
                                            arrayCO.setIsOptional(co1.isIsOptional());
                                            co.getHasComplexObjects().add(arrayCO);
                                        } else {
                                            co.getHasComplexObjects().add(co1);
                                        }

                                        //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                                        System.out.println("aaa!");
                                    } else if (obj1.getClass().getName().contains("XmlSchemaChoice")) {
FileProjectLine
org\universAAL\samples\context\reasoner\client\uaalinterface\CHECaller.javauniversAAL Samples Context Situation Reasoner Test Client111
org\universAAL\context\reasoner\CHECaller.javauniversAAL Context Situation Reasoner133
		    Activator.mcontext,
		    CHECaller.class,
		    "callDoSPARQL",
		    new Object[] { "History Client - status of doSparqlQuery(): "
			    + response.getCallStatus() }, null);
	return "";
    }

    /**
     * Prepare the call for CHE
     * 
     * @param query
     *            The CONSTRUCT query
     * @return The request for the call
     */
    private ServiceRequest getDoSPARQLRequest(String query) {
	ServiceRequest getQuery = new ServiceRequest(new ContextHistoryService(
		null), null);

	MergedRestriction r = MergedRestriction.getFixedValueRestriction(
		ContextHistoryService.PROP_PROCESSES, query);

	getQuery.getRequestedService().addInstanceLevelRestriction(r,
		new String[] { ContextHistoryService.PROP_PROCESSES });
	getQuery.addSimpleOutputBinding(
		new ProcessOutput(OUTPUT_RESULT_STRING), new PropertyPath(null,
			true,
			new String[] { ContextHistoryService.PROP_RETURNS })
			.getThePath());
	return getQuery;
    }

    /**
     * Handles the return-value of the CHE Service Request. This means to return
     * the value given in "expectedOutput" if such a result in the given list.
     * In case that there is one then more result for the same parameter the
     * first found will be returned.
     * 
     * @param outputs
     *            List of outputs like given by a ServiceResponse
     * @param expectedOutput
     *            URI of the expected output-parameter
     * @return Value for expectedOutput. Null if there is not such a value.
     */
    @SuppressWarnings("unchecked")
    private Object getReturnValue(List outputs, String expectedOutput) {
	Object returnValue = null;
	if (outputs == null)
	    LogUtils.logInfo(Activator.mcontext, CHECaller.class,
FileProjectLine
org\universAAL\lddi\knx\devicemanager\util\LogTracker.javauniversAAL LDDI KNX device manager51
org\universAAL\lddi\knx\library\utils\LogTracker.javauniversAAL LDDI KNX Datapoint Type Library52
		System.out.println("stdout: [KNX.DEVICEMANAGER] LogService removed!");
		log(LOG_DEBUG,"LogService removed!");
	}

	public LogTracker(BundleContext context) {
		super(context, LogService.class.getName(), null);
	}

	public void log(int level, String message) {
		log(null, level, message, null);
	}

	public void log(int level, String message, Throwable exception) {
		log(null, level, message, exception);
	}

	public void log(ServiceReference sr, int level, String message) {
		log(sr, level, message, null);
	}

	public void log(ServiceReference sr, int level, String message,
			Throwable exception) {
		LogService log = (LogService) getService(); //obtain optional, unary LogService
		if (log != null) {
			log.log(sr, level, message, exception);
		}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway741
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway591
                            parseComplexType(service, null, newSchemaType, co1, theDefinition, calledFromAbstractTypeParser);

                            if (newSimpleOrComplexObjectElement.getMinOccurs() == 0 || newSimpleOrComplexObjectElement.isNillable()) {
                                co1.setIsOptional(true);
                            }
                            if (newSimpleOrComplexObjectElement != null && newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                ComplexObject coArrayCO = new ComplexObject();
                                coArrayCO.setObjectName(co1.getObjectName());

                                coArrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(), co1.getObjectType().getLocalPart() + "[]",
                                        co1.getObjectType().getPrefix()));
                                coArrayCO.setIsArrayType(true);
                                coArrayCO.getHasComplexObjects().add(co1);
                                coArrayCO.setIsOptional(co1.isIsOptional());
                                co.getHasComplexObjects().add(coArrayCO);
                            } else {
                                co.getHasComplexObjects().add(co1);
                            }
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ToBeDefined.javauniversAAL Middleware Interfaces (Core)58
org\universAAL\middleware\deploymanager\uapp\model\ToBeDefined.javauniversAAL Middleware XSD Schemas57
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "toBeDefined", propOrder = {
    "any"
})
public class ToBeDefined
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlAnyElement
    protected List<Element> any;
    @XmlAnyAttribute
    private Map<QName, String> otherAttributes = new HashMap<QName, String>();

    /**
     * Gets the value of the any property.
     *
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the any property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getAny().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Element }
     *
     *
     */
    public List<Element> getAny() {
        if (any == null) {
            any = new ArrayList<Element>();
        }
        return this.any;
    }

    public boolean isSetAny() {
        return ((this.any!= null)&&(!this.any.isEmpty()));
    }

    public void unsetAny() {
        this.any = null;
    }

    /**
     * Gets a map that contains attributes that aren't bound to any typed property on this class.
     *
     * <p>
     * the map is keyed by the name of the attribute and
     * the value is the string value of the attribute.
     *
     * the map returned by this method is live, and you can add new attribute
     * by updating the map directly. Because of this design, there's no setter.
     *
     *
     * @return
     *     always non-null
     */
    public Map<QName, String> getOtherAttributes() {
        return otherAttributes;
    }

}
FileProjectLine
org\universAAL\context\prof\serv\SCaller.javauniversAAL Context Profiling Server211
org\universAAL\context\space\serv\SCaller.javaAAL Space Server450
	if (bag != null) {
	    Object content = bag.getProperty(Queries.AUXBAGPROP);
	    ArrayList list = new ArrayList();
	    OntologyManagement mng=OntologyManagement.getInstance();
	    if (content instanceof List) {
		Iterator iter = ((ArrayList) content).iterator();
		while (iter.hasNext()) {
		    Resource res=(Resource) iter.next();
		    list.add(mng.getResource(mng.getMostSpecializedClass(res.getTypes()),res.getURI()));
		}
	    } else {
		Resource res=(Resource) content;
		list.add(mng.getResource(mng.getMostSpecializedClass(res.getTypes()),res.getURI()));
	    }
	    return list;
	} else {
	    return null;
	}
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway861
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway898
                                    theDefinition, calledFromAbstractTypeParser);


                            if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                                co1.setIsOptional(true);
                            }

                            if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                                //Array Type
                                ComplexObject arrayCO = new ComplexObject();
                                arrayCO.setObjectName(co1.getObjectName());
                                //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                                arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                        co1.getObjectType().getLocalPart() + "[]",
                                        co1.getObjectType().getPrefix()));
                                arrayCO.setIsArrayType(true);
                                arrayCO.getHasComplexObjects().add(co1);
                                arrayCO.setIsOptional(co1.isIsOptional());
                                co.getHasComplexObjects().add(arrayCO);
                            } else {
                                co.getHasComplexObjects().add(co1);
                            }

                            //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                            System.out.println("aaa!");
                        } else if (newObj1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaGroupRef")) {
FileProjectLine
org\universAAL\container\JUnit\JUnitModuleContext.javauniversAAL Middleware Container JUnit107
org\universAAL\middleware\container\osgi\uAALBundleContext.javauniversAAL Middleware OSGi Container234
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#logDebug(java.lang.String,
     *      java.lang.Throwable)
     */
    public void logDebug(String tag, String message, Throwable t) {
	logger.debug(tag + ": " + message, t);
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#logError(java.lang.String,
     *      java.lang.Throwable)
     */
    public void logError(String tag, String message, Throwable t) {
	logger.error(tag + ": " + message, t);
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#logInfo(java.lang.String,
     *      java.lang.Throwable)
     */
    public void logInfo(String tag, String message, Throwable t) {
	logger.info(tag + ": " + message, t);
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#logWarn(java.lang.String,
     *      java.lang.Throwable)
     */
    public void logWarn(String tag, String message, Throwable t) {
	logger.warn(tag + ": " + message, t);
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#logTrace(java.lang.String,
     *      java.lang.Throwable)
     */
    public void logTrace(String tag, String message, Throwable t) {
	logger.trace(tag + ": " + message, t);
    }

    /**
     * @see org.universAAL.middleware.container.ModuleContext#registerConfigFile(java.lang.Object[])
     */
    public void registerConfigFile(Object[] configFileParams) {
FileProjectLine
org\universAAL\lddi\subscriber\test\gui\GUI.javauniversAAL LDDI Continua Manager service subscriber test118
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)289
		if(device.equals("bloodPressure")) {
			uaalPublisherMainLabel.setText("Blood pressure monitor");		
			uaalPublisherLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(bloodPressureImage)));			
			uaalPublisherBloodPressureSysValueLabel = createJLabel("SYS(mmHg)",250,100,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressureSysValueTextfield = createJTextfield(400,100,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressureDiaValueLabel = createJLabel("DIA(mmHg)",250,150,100,50,Font.PLAIN,16);				
			uaalPublisherBloodPressureDiaValueTextfield = createJTextfield(400,150,100,50,Font.PLAIN,16);			
			uaalPublisherBloodPressurePulValueLabel = createJLabel("     BPM",250,200,100,50,Font.PLAIN,16);
			uaalPublisherBloodPressurePulValueTextfield = createJTextfield(400,200,100,50,Font.PLAIN,16);
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\GroupLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel116
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\GroupLAF.javauniversAAL UI Handler Swing49
	public JComponent getNewComponent() {
        LevelRating complexity = ((Group) fc).getComplexity();
        if (((Group) fc).isRootGroup()
                || complexity == LevelRating.none) {
            wrap = new GroupPanelLAF((Group) fc, getRenderer());
        }
        if (complexity == LevelRating.low ) {
            wrap = new GroupPanelLAF((Group) fc, getRenderer());
        }
        if (complexity == LevelRating.middle ) {
            wrap = new GroupPanelLAF((Group) fc, getRenderer());
        }
        if (complexity == LevelRating.high ) {
            wrap = new GroupPanelLAF((Group) fc, getRenderer());
        }
        if (complexity == LevelRating.full) {
            wrap = new GroupTabbedPanelLAF((Group) fc, getRenderer());
        }
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway327
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway406
							ComplexObject extCO = new ComplexObject();
							extCO.objectName = new QName(
									inExtCO.objectName.getNamespaceURI(),
									inExtCO.objectName.getLocalPart(),
									inExtCO.objectName.getPrefix());
							extCO.objectType = new QName(
									inExtCO.objectType.getNamespaceURI(),
									inExtCO.objectType.getLocalPart(),
									inExtCO.objectType.getPrefix());
							extCO.hasComplexObjects = new Vector();
							extCO.hasNativeObjects = new Vector();
							extCO.hasExtendedObjects = new Vector();
							extCO.isInput = inExtCO.isInput;
							extCO.hasParent = inExtCO.hasParent;
							extCO.isAbstract = inExtCO.isAbstract;
							extCO.isArrayType = inExtCO.isArrayType;
							extCO.additionalInfo = inExtCO.additionalInfo;

							co1.hasExtendedObjects.add(extCO);
						} else {// NativeObject
							NativeObject inExtNO = (NativeObject) obj1;
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2_RpcEncodedMessageBuilder.javauniversAAL Remote Interoperability Internet Gateway61
org\universAAL\ri\wsdlToolkit\invocation\Axis2WebServiceInvoker.javauniversAAL Remote Interoperability Internet Gateway200
	}

	private static OMElement createSOAPBody(SOAPFactory fac,
			QName operationName, Vector operationInputs, OMNamespace operationNs) {
		OMElement method = fac.createOMElement(operationName.getLocalPart(),
				operationNs);

		Iterator operInputsIter = operationInputs.iterator();
		while (operInputsIter.hasNext()) {
			Object inputObject = operInputsIter.next();
			if (inputObject.getClass().getName().contains("NativeObject")) {
				NativeObject no = (NativeObject) inputObject;
				// OMNamespace inputObjectNs =
				// fac.createOMNamespace(no.getNamespaceURI(), "ns1");
				OMElement valueA = createOMElementForNativeObjectInput(fac, no,
						operationNs);
				if (valueA != null) {
					method.addChild(valueA);
				}

			} else if (inputObject.getClass().getName()
					.contains("ComplexObject")) {
				ComplexObject co = (ComplexObject) inputObject;
				if (co.isIsArrayType()) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1161
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2079
                                        (org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj, co1, theDefinition);

                                if (co1 != null) {
                                    for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                        co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                    }
                                    for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                        co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                    }
                                } else {
                                    System.out.println();
                                }
                                System.out.println();
                            } else {
                                System.out.println();
                            }
                        }
                    }

                } else {
                    System.out.println();
                }

                System.out.println();
            } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway807
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway822
                                                }
                                            } else {
                                                System.out.println("XA! W!");
                                                ComplexObject co123 = new ComplexObject();
                                                if (newSimpleOrComplexObjectElement.getQName() != null) {
                                                    co123.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                                } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                                    co123.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                                                } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                                    co123.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                                                } else {
                                                    co123.setObjectName(new QName("UNDEFINED variable name!"));
                                                    theDefinition.getContainingErrors().add("ERROR @line ~2527... UNDEFINED Variable name!!!");
                                                    System.out.println("ERROR @line ~2527... UNDEFINED Variable name!!!");
                                                }
                                                co123.setObjectType(new QName("Object"));
                                                co.getHasComplexObjects().add(co123);
                                            }
FileProjectLine
org\universAAL\samples\lighting\client\LightingConsumer.javauniversAAL Samples Lighting Client (OSGi)224
org\universAAL\ri\gateway\support\android\LightingConsumer.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node230
    public static boolean turnOn(final String lampURI) {

	if ((lampURI == null) || !(lampURI instanceof String)) {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class, "turnOn",
		    new Object[] { "wrong lampURI" }, null);
	    return false;
	}

	ServiceResponse sr = caller.call(turnOnRequest(lampURI));
	LogUtils.logDebug(Activator.mc, LightingConsumer.class, "turnOn",
		new Object[] { "Call status: ", sr.getCallStatus().name() },
		null);

	if (sr.getCallStatus() == CallStatus.succeeded)
	    return true;
	else {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class, "turnOn",
		    new Object[] { "the lamp couldn't be turned on" }, null);
	    return false;
	}
    }

    // see turnOff
    public static boolean dimToValue(final String lampURI, final Integer percent) {
FileProjectLine
org\universAAL\samples\lighting\client\LightingConsumer.javauniversAAL Samples Lighting Client (OSGi)199
org\universAAL\ri\gateway\support\android\LightingConsumer.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node205
    public static boolean turnOff(final String lampURI) {
	// check if input is valid
	if ((lampURI == null) || !(lampURI instanceof String)) {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class, "turnOff",
		    new Object[] { "wrong lampURI" }, null);
	    return false;
	}

	// make a call with the appropriate request
	ServiceResponse sr = caller.call(turnOffRequest(lampURI));
	LogUtils.logDebug(Activator.mc, LightingConsumer.class, "turnOff",
		new Object[] { "Call status: ", sr.getCallStatus().name() },
		null);

	// check the call status and return true if succeeded
	if (sr.getCallStatus() == CallStatus.succeeded)
	    return true;
	else {
	    LogUtils.logWarn(Activator.mc, LightingConsumer.class, "turnOff",
		    new Object[] { "the lamp couldn't be turned off" }, null);
	    return false;
	}
    }

    // see turnOff
    public static boolean turnOn(final String lampURI) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway299
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway381
				co.setHasParent(this);
				if (checkIfCOhasParentTheSameCO(co)) {
					ComplexObject co1 = new ComplexObject();
					co1.objectName = new QName(co.objectName.getNamespaceURI(),
							co.objectName.getLocalPart(),
							co.objectName.getPrefix());
					co1.objectType = new QName(co.objectType.getNamespaceURI(),
							co.objectType.getLocalPart(),
							co.objectType.getPrefix());
					co1.hasComplexObjects = new Vector();
					co1.hasNativeObjects = new Vector();
					co1.hasExtendedObjects = new Vector();

					co1.isInput = co.isInput;
					co1.hasParent = co.hasParent;
					co1.isAbstract = co.isAbstract;
					co1.isArrayType = co.isArrayType;

					co1.additionalInfo = co.additionalInfo;
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Dependency.javauniversAAL Middleware Interfaces (Core)54
org\universAAL\middleware\deploymanager\uapp\model\Dependency.javauniversAAL Middleware XSD Schemas53
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dependency", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class Dependency implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "version")
    protected String version;

    /**
     *
     * Feature name should be non empty string.
     *
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the version property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getVersion() {
        if (version == null) {
            return "0.0.0";
        } else {
            return version;
        }
    }

    /**
     * Sets the value of the version property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setVersion(String value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

}
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway107
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway276
		Iterator iter2 = inputNode.getChildren();
		while (iter2.hasNext()) {
			Object obj = iter2.next();
			System.out.println(obj.getClass().getName());
			if (obj.getClass().getName()
					.contains("org.apache.axiom.om.impl.llom.OMTextImpl")) {
				org.apache.axiom.om.impl.llom.OMTextImpl t = (org.apache.axiom.om.impl.llom.OMTextImpl) obj;
				System.out.println(t.getText());

			} else if (obj.getClass().getName()
					.contains("org.apache.axiom.om.impl.llom.OMElementImpl")) {
				org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) obj;
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway107
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway153
			Iterator iter2 = body.getChildren();
			while (iter2.hasNext()) {
				Object obj = iter2.next();
				System.out.println(obj.getClass().getName());
				if (obj.getClass().getName()
						.contains("org.apache.axiom.om.impl.llom.OMTextImpl")) {
					org.apache.axiom.om.impl.llom.OMTextImpl t = (org.apache.axiom.om.impl.llom.OMTextImpl) obj;
					System.out.println(t.getText());

				} else if (obj
						.getClass()
						.getName()
						.contains("org.apache.axiom.om.impl.llom.OMElementImpl")) {
					org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) obj;
					OMElementImpl result = findOMNodeWithTheSpecific_ID_AmongChildren_ITERATIVE(
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway300
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway620
									theSchemaOfTheWSDL.getDocumentBaseURI(),
									theSchemaOfTheWSDL);
							if (n1 != null)
								return n1;
						}

					} catch (Exception e) {
						// e.printStackTrace();
						// System.out.println(".-.-"+e.getMessage()+".-|||.-"+MitsosParser.ws.getServiceURL());//e.printStackTrace();
						try {
							importsIter = col.iterator();
							while (importsIter.hasNext()) {
								Vector schImpls = (Vector) importsIter.next();
								if (schImpls.size() > 0) {
									for (int i = 0; i < schImpls.size(); i++) {
										SchemaImportImpl schImpl = (SchemaImportImpl) schImpls
												.get(i);
										Schema importedSchema = schImpl
												.getReferencedSchema();

										if (importedSchema.getDocumentBaseURI() != null
												&& previousXSDURI != null) {
											if (!importedSchema
													.getDocumentBaseURI()
													.equals(previousXSDURI)) {
												Node n1 = getNodeOfType_ITERATIVE(
														nameOfNode,
														importedSchema,
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway168
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway208
	private static void parseComplexContentForDocumentType(
			Schema theWSDLxsdSchema, Node inputNode, int iterNumber,
			ComplexObject co) {
		// O inputNode einai aytos pou exei name "complexContent"
		// -System.out.println("*** parseComplexContentForDocumentType ***");
		NodeList childrenOfTheChildrenOfTheDamned = inputNode.getChildNodes();
		// Mesa stous nodes tis listas childrenOfTheChildrenOfTheDamned tha
		// yparxoun oi nodes "extension" (logika tha yparxei moono enas tetoios
		// node)
		// Mesa stous nodes "extension" tha yparxoun oi nodes element pou tha
		// einai ta simple object i complex object pou symplirwnoun ta
		// klironomimena
		if (childrenOfTheChildrenOfTheDamned != null) {

			for (int k2 = 0; k2 < childrenOfTheChildrenOfTheDamned.getLength(); k2++) {
				// ////-System.out.println("FFF "+childrenOfTheChildrenOfTheDamned.item(k2).getNodeName());
				if (!childrenOfTheChildrenOfTheDamned.item(k2).hasAttributes())
					continue;

				if (childrenOfTheChildrenOfTheDamned.item(k2).getNodeName()
						.contains("extension")) {
					if (childrenOfTheChildrenOfTheDamned.item(k2)
							.getAttributes() != null) {
						if (childrenOfTheChildrenOfTheDamned.item(k2)
								.getAttributes().getNamedItem("base") != null) {
							String baseType = childrenOfTheChildrenOfTheDamned
									.item(k2).getAttributes()
									.getNamedItem("base").getNodeValue();
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1339
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1191
            }
        }

        //EDW GET ATTRIBUTES DEFINED mesa sto complexType (sto ct)
        //Parse Attributes...
        if (ct != null) {
            XmlSchemaObjectCollection attsCol = ct.getAttributes();
            if (attsCol != null) {
                Iterator iter2 = attsCol.getIterator();
                while (iter2.hasNext()) {
                    Object obj = iter2.next();
                    if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                        org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                        Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                        if (res1 != null) {
                            if (res1.getClass().getName().contains("NativeObject")) {
                                NativeObject no12 = (NativeObject) res1;
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Broker.javauniversAAL Middleware Interfaces (Core)53
org\universAAL\middleware\deploymanager\uapp\model\Broker.javauniversAAL Middleware XSD Schemas52
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "name",
    "software"
})
@XmlRootElement(name = "broker")
public class Broker
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    protected ArtifactType software;

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

    /**
     * Gets the value of the software property.
     *
     * @return
     *     possible object is
     *     {@link ArtifactType }
     *
     */
    public ArtifactType getSoftware() {
        return software;
    }

    /**
     * Sets the value of the software property.
     *
     * @param value
     *     allowed object is
     *     {@link ArtifactType }
     *
     */
    public void setSoftware(ArtifactType value) {
        this.software = value;
    }

    public boolean isSetSoftware() {
        return (this.software!= null);
    }

}
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\per\PERAlignedDecoder.javauniversAAL LDDI Library IEEE x073 standard implementation442
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\per\PERAlignedEncoder.javauniversAAL LDDI Library IEEE x073 standard implementation250
        boolean hasConstraint = false;
        long min = 0, max = 0;
        
        if(elementInfo.hasPreparedInfo()) {
            if(elementInfo.getPreparedInfo().hasConstraint() 
                && elementInfo.getPreparedInfo().getConstraint() instanceof ASN1ValueRangeConstraintMetadata) {
                IASN1ConstraintMetadata constraint = elementInfo.getPreparedInfo().getConstraint();
                hasConstraint  = true;
                min = ((ASN1ValueRangeConstraintMetadata)constraint).getMin();
                max = ((ASN1ValueRangeConstraintMetadata)constraint).getMax();
            }
        }
        else
        if(elementInfo.getAnnotatedClass().isAnnotationPresent(ASN1ValueRangeConstraint.class)) {
            hasConstraint  = true;
            ASN1ValueRangeConstraint constraint = elementInfo.getAnnotatedClass().getAnnotation(ASN1ValueRangeConstraint.class);            
            min = constraint.min();
            max = constraint.max();
        }
        
        if(object instanceof Integer) {
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\GroupPanelLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel93
org\universAAL\ui\handler\gui\swing\classic\GroupLAF.javauniversAAL UI Handler Swing Look and Feel Classic99
		    layout = new FlowLayout();
		}
		if (r.equals(HorizontalAlignment.left)) {
		    alignment = FlowLayout.LEFT;
		}
		if (r.equals(HorizontalAlignment.center)) {
		    alignment = FlowLayout.CENTER;
		}
		if (r.equals(HorizontalAlignment.right)) {
		    alignment = FlowLayout.RIGHT;
		}
		if (r.equals(VerticalAlignment.top)) {
		    alignment = VerticalFlowLayout.TOP;
		}
		if (r.equals(VerticalAlignment.middle)) {
		    alignment = VerticalFlowLayout.CENTER;
		}
		if (r.equals(VerticalAlignment.bottom)) {
		    alignment = VerticalFlowLayout.BOTTOM;
		}
	    }
	    if (layout instanceof FlowLayout) {
		((FlowLayout) layout).setAlignment(alignment);
		((FlowLayout) layout).setHgap(FormLAF.hgap);
FileProjectLine
org\universAAL\samples\servbus\GUIPanel.javauniversAAL Samples Service bus tester135
org\universAAL\samples\servbus\GUIPanel.javauniversAAL Samples Service bus tester188
    private void sendButton2ActionPerformed(ActionEvent evt) {
	this.label1p1.setText("Delay: ");
	int siz = 0;
	try {
	    siz = Integer.parseInt(this.text1p1.getText());
	} catch (Exception e) {
	    this.label1p1.setText("Invalid size of burst");
	    return;
	}
	ServiceRequest srq = null;
	switch (this.combo1p1.getSelectedIndex()) {
	case 0:
	    srq = getGETLAMPSrequest();
	    break;
	case 1:
	    srq = getGETLAMPINFOrequest();
	    break;
	case 2:
	    srq = getSETreqest(100);
	    break;
	case 3:
	    srq = getSETreqest(0);
	    break;
	case 4:
	    srq = getSETreqest(50);
	    break;
	default:
	    break;
	}
	long t0 = System.currentTimeMillis();
	for (int i = 0; i < siz; i++) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway684
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway707
			co1.setIsInput(co.isIsInput());

			QName[] qNarray = new QName[qNamesSoFar.size() + 1];
			for (int i = 0; i < qNamesSoFar.size(); i++) {
				if (qNamesSoFar.get(i) != null) {
					QName qName1 = new QName(
							((QName) qNamesSoFar.get(i)).getNamespaceURI(),
							((QName) qNamesSoFar.get(i)).getLocalPart(),
							((QName) qNamesSoFar.get(i)).getPrefix());
					qNarray[i] = qName1;
				} else {
					qNarray[i] = new QName("");
				}
			}
			qNarray[qNarray.length - 1] = co1.getObjectName();
FileProjectLine
org\universAAL\context\sesame\sail\CardinalityNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite484
org\universAAL\context\sesame\sail\CardinCollect2NativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite51
			}else if(objIsClosedCollection(obj, contexts)){
			    removeStatements(subj, pred, null, true, contexts);
			}
			    
			//END PATCH
			boolean wasNew = nativeStore.getTripleStore().storeTriple(subjID, predID, objID, contextID,
					explicit);
			result |= wasNew;

			if (wasNew) {
				// The triple was not yet present in the triple store
				sailChangedEvent.setStatementsAdded(true);

				if (hasConnectionListeners()) {
					Statement st;

					if (context != null) {
						st = valueStore.createStatement(subj, pred, obj, context);
					}
					else {
						st = valueStore.createStatement(subj, pred, obj);
					}

					notifyStatementAdded(st);
				}
			}
		}
	}
	catch (IOException e) {
		throw new SailException(e);
	}
	catch (RuntimeException e) {
		logger.error("Encountered an unexpected problem while trying to add a statement", e);
		throw e;
	}

	return result;
    }
FileProjectLine
org\universAAL\samples\lighting\server\ProvidedLightingService.javauniversAAL Samples Lighting Server (OSGi)81
org\universAAL\ri\gateway\support\android\LightingService1.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node81
				return new LightingService1(instanceURI);
			    }
			}));

	// Help structures to define property paths used more than once below
	String[] ppControls = new String[] { Lighting.PROP_CONTROLS };
	String[] ppBrightness = new String[] { Lighting.PROP_CONTROLS,
		LightSource.PROP_SOURCE_BRIGHTNESS };

	// The purpose of the rest of this static segment is to describe
	// services that we want to make available. We start with some
	// "class-level restrictions" that are inherent to the underlying
	// service component realized in the subpackage 'unit_impl'. That is, we
	// know from unit_impl.MyLighting.java that
	// 1. it controls lamps
	// 2. that can only be switched on and off

	// Before adding our own restrictions, we first "inherit" the
	// restrictions defined by the superclass
	addRestriction((MergedRestriction) Lighting
		.getClassRestrictionsOnProperty(Lighting.MY_URI,
			Lighting.PROP_CONTROLS).copy(), ppControls,
		serverLightingRestrictions);

	// then, we add a restriction stating that the type of controlled light
	// sources is ElectricLight.lightBulb meaning that light sources
	// controlled by this class of services are all light bulbs
	addRestriction(MergedRestriction.getFixedValueRestriction(
		LightSource.PROP_HAS_TYPE, ElectricLight.lightBulb),
		new String[] { Lighting.PROP_CONTROLS,
			LightSource.PROP_HAS_TYPE }, serverLightingRestrictions);

	// finally, we restrict the values for the brightness of the lights to
	// only 0 and 100 meaning that the controlled light bulbs do not support
	// dimming
	addRestriction(MergedRestriction
		.getAllValuesRestrictionWithCardinality(
			LightSource.PROP_SOURCE_BRIGHTNESS, new Enumeration(
				new Integer[] { new Integer(0),
					new Integer(100) }), 1, 1),
		ppBrightness, serverLightingRestrictions);
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway263
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway333
    private final static byte[] _ORDERED_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
	    -9, // Plus sign at decimal 43
	    -9, // Decimal 44
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2308
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2357
																	attType.indexOf(":") + 1,
																	attType.length());
													if (type1
															.startsWith("ArrayOf")) {
														type1 = type1
																.replaceFirst(
																		"ArrayOf",
																		"");
														// -ta.append("  ("+type1+"[])");
														co1.setObjectType(new QName(
																type1 + "[]"));
													} else if (type1
															.endsWith("Array")) {
														type1 = type1
																.substring(
																		0,
																		type1.length() - 5);
														// -ta.append("  ("+type1+"[])");
														co1.setObjectType(new QName(
																type1 + "[]"));
													} else if (attType
															.endsWith("[]")) {
														type1 = type1.replace(
																"[]", "");
														// -ta.append("  ("+type1+"[])");
														co1.setObjectType(new QName(
																type1 + "[]"));
													}
													parseTypeIterative(s1,
															type1, 0, false,
															co1);
													co.getHasComplexObjects()
															.add(co1);

												}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway184
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway299
			co.setHasParent(this);

			if (checkIfCOhasParentTheSameCO(co)) {
				ComplexObject co1 = new ComplexObject();
				co1.objectName = new QName(co.objectName.getNamespaceURI(),
						co.objectName.getLocalPart(), co.objectName.getPrefix());
				co1.objectType = new QName(co.objectType.getNamespaceURI(),
						co.objectType.getLocalPart(), co.objectType.getPrefix());
				co1.hasComplexObjects = new Vector();
				co1.hasNativeObjects = new Vector();
				co1.hasExtendedObjects = new Vector();
				co1.isInput = co.isInput;
				co1.hasParent = co.hasParent;
				co1.isAbstract = co.isAbstract;
				co1.isArrayType = co.isArrayType;

				co1.additionalInfo = co.additionalInfo;
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway153
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RpcEncoded.javauniversAAL Remote Interoperability Internet Gateway276
		Iterator iter2 = inputNode.getChildren();
		while (iter2.hasNext()) {
			Object obj = iter2.next();
			System.out.println(obj.getClass().getName());
			if (obj.getClass().getName()
					.contains("org.apache.axiom.om.impl.llom.OMTextImpl")) {
				org.apache.axiom.om.impl.llom.OMTextImpl t = (org.apache.axiom.om.impl.llom.OMTextImpl) obj;
				System.out.println(t.getText());

			} else if (obj.getClass().getName()
					.contains("org.apache.axiom.om.impl.llom.OMElementImpl")) {
				org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) obj;
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway43
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway44
public class Axis2InvocationResultHandler_RPC {

	public static InvocationResult parseResult(MessageContext inMsgCtx,
			WSOperation theParsedOperation) {

		InvocationResult theResult = new InvocationResult();
		Vector parsedOperationOutputsVector = theParsedOperation.getHasOutput()
				.getHasNativeOrComplexObjects();
		Iterator parsedOperationOutputsIter = parsedOperationOutputsVector
				.iterator();
		Vector vec = new Vector();
		while (parsedOperationOutputsIter.hasNext()) {
			Object parsedOutObj = parsedOperationOutputsIter.next();

			if (parsedOutObj instanceof NativeObject) {
				NativeObject outNO = (NativeObject) parsedOutObj;
				OMElementImpl omElement = findTheNativeObjectNodeInTheResponseBody(
						inMsgCtx, outNO);
				setNativeObjectValue(outNO, omElement);
			} else if (parsedOutObj instanceof ComplexObject) {
				ComplexObject outCO = (ComplexObject) parsedOutObj;
				if (!outCO.isIsArrayType()) {
					OMElementImpl omElement = findTheComplexObjectNodeInTheResponseBody(
							inMsgCtx, outCO);
					setComplexObjectValues(outCO, omElement);
				} else {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)313
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)391
    private final static byte[] _ORDERED_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
	    -9, // Plus sign at decimal 43
	    -9, // Decimal 44
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\RepeatModelTableLAF.javauniversAAL UI Handler Swing Look and Feel Classic92
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\RepeatModelTableLAF.javauniversAAL UI Handler Swing51
		JScrollPane scrollPane = new JScrollPane(getJTable());
		
		JPanel buttonPanel = getButtonPanel();
		buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
		Component[] buttons = buttonPanel.getComponents();
		for (int i = 0; i < buttons.length; i++) {
			setButtonColors((JButton) buttons[i]);
		}
		JPanel pannelWithAll = new JPanel();
		pannelWithAll.setLayout(new BorderLayout());
		pannelWithAll.add(scrollPane, BorderLayout.CENTER);
		pannelWithAll.add(buttonPanel, BorderLayout.EAST);
		pannelWithAll.add(
				getRenderer().getModelMapper().getModelFor(fc.getLabel()).getComponent(),
				BorderLayout.NORTH);
		needsLabel = false;
		return pannelWithAll;
	}

	private void setButtonColors(JButton button) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1531
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2163
		List extElementsList = definition.getTypes().getExtensibilityElements();
		// ////-System.out.println("Extensibility Elements Names:");
		if (extElementsList != null) {
			// -System.out.print(extElementsList.size()+"\n");
			Iterator iter1 = extElementsList.iterator();
			while (iter1.hasNext()) {
				try {
					com.ibm.wsdl.extensions.schema.SchemaImpl s1 = (com.ibm.wsdl.extensions.schema.SchemaImpl) iter1
							.next();
					// //-System.out.println(s1.toString());

					org.w3c.dom.Element e1 = s1.getElement();
					// s1.get
					NodeList children = e1.getChildNodes();
					// //-System.out.println(children.getLength());
					for (int i = 0; i < children.getLength(); i++) {
						Node n = children.item(i);
						// //-System.out.println("### ####  MIIIIITS "+n.getNodeName()+" "+n.getNodeType()+" "+n.getNodeValue());
						if (n.getNodeName() != null
								&& n.getNodeName().contains(":import")) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1613
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1965
												service, null, schemaType, co1,
												theDefinition,
												calledFromAbstractTypeParser);
										if (newSimpleOrComplexObjectElement != null
												&& (newSimpleOrComplexObjectElement
														.getMinOccurs() == 0 || newSimpleOrComplexObjectElement
														.isNillable())) {
											co1.setIsOptional(true);
										}

										if (newSimpleOrComplexObjectElement != null
												&& newSimpleOrComplexObjectElement
														.getMaxOccurs() > 1) {
											ComplexObject coArrayCO = new ComplexObject();
											coArrayCO.setObjectName(co1
													.getObjectName());
											// co1.setObjectType(new
											// QName("XA!"));
											coArrayCO.setObjectType(new QName(
													co1.getObjectType()
															.getNamespaceURI(),
													co1.getObjectType()
															.getLocalPart()
															+ "[]", co1
															.getObjectType()
															.getPrefix()));
											coArrayCO.setIsArrayType(true);
											coArrayCO.getHasComplexObjects()
													.add(co1);
											coArrayCO.setIsOptional(co1
													.isIsOptional());
FileProjectLine
org\universAAL\ri\gateway\eimanager\impl\security\ExportSecurityOperationInterceptor.javauniversAAL Remote Interoperability AALSpace Gateway30
org\universAAL\ri\gateway\eimanager\impl\security\ImportSecurityOperationInterceptor.javauniversAAL Remote Interoperability AALSpace Gateway30
public class ImportSecurityOperationInterceptor implements ImportOperationInterceptor{

	public void process(ImportRequest importRequest)
			throws InterruptExecutionException {
		String[] uids = null;
		String errorUid = "";
		if (importRequest.getMember().equals(BusMemberType.ServiceCallee.toString()) || 
				importRequest.getMember().equals(BusMemberType.ServiceCaller.toString())){
			uids = new String[1];
			uids[0] = importRequest.getServerNamespace();
		}else if (importRequest.getMember().equals(BusMemberType.ContextPublisher.toString()) ||
				importRequest.getMember().equals(BusMemberType.ContextSubscriber.toString())){
			uids = importRequest.getSubjectURIs();
		}
		
		boolean shouldPass = true;
		for(SecurityEntry entry : SecurityManager.Instance.getDenyImportSecurityEntries()){
FileProjectLine
org\universAAL\ontology\shape\Path.javauniversAAL Ontology Physical World164
org\universAAL\ontology\shape\Polyhedron.javauniversAAL Ontology Physical World146
	}
	return new Box(max[1] - max[0], max[3] - max[2], max[5] - max[4],
		new OriginedMetric((float) (max[0] + (max[1] - max[0]) / 2f),
			(float) (max[2] + (max[3] - max[2]) / 2f),
			(float) (max[4] + (max[5] - max[4]) / 2f),
			(Place) getCenter().getContainingLocation()));
    }

    public boolean contains(Point p) {
	// TODO
	return false;
    }
}
FileProjectLine
org\universAAL\samples\ctxtbus\CPublisher.javauniversAAL Samples Context bus tester for Android65
org\universAAL\samples\ctxtbus\CPublisher.javauniversAAL Samples Context bus tester67
		+ "TestMassContextProvider");
	cpinfo.setType(ContextProviderType.gauge);
	cpinfo.setProvidedEvents(new ContextEventPattern[] { new ContextEventPattern() });
	return cpinfo;
    }

    public void communicationChannelBroken() {
	// TODO Auto-generated method stub

    }

    public long sendBurst(int size) {
	Random r = new Random();
	long t0 = System.currentTimeMillis();
	for (int i = 0; i < size; i++) {
	    this.publish(sampleEvents[r.nextInt(samples)]);
	}
	long t1 = System.currentTimeMillis();
	return t1 - t0;
    }

    // to send burst of event with unique URIs (for CHe)
    // may introduce more delay
    public long sendUniqueBurst(int size) {
	Random r = new Random();
	long t0 = System.currentTimeMillis();
	for (int i = 0; i < size; i++) {
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\VersionType.javauniversAAL Middleware Interfaces (Core)75
org\universAAL\middleware\deploymanager\uapp\model\VersionType.javauniversAAL Middleware XSD Schemas77
    public int getMajor() {
        return major;
    }

    /**
     * Sets the value of the major property.
     *
     */
    public void setMajor(int value) {
        this.major = value;
    }

    public boolean isSetMajor() {
        return true;
    }

    /**
     * Gets the value of the minor property.
     *
     */
    public int getMinor() {
        return minor;
    }

    /**
     * Sets the value of the minor property.
     *
     */
    public void setMinor(int value) {
        this.minor = value;
    }

    public boolean isSetMinor() {
        return true;
    }

    /**
     * Gets the value of the micro property.
     *
     */
    public int getMicro() {
        return micro;
    }

    /**
     * Sets the value of the micro property.
     *
     */
    public void setMicro(int value) {
        this.micro = value;
    }

    public boolean isSetMicro() {
        return true;
    }

    /**
     * Gets the value of the build property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getBuild() {
        return build;
    }

    /**
     * Sets the value of the build property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setBuild(String value) {
        this.build = value;
    }

    public boolean isSetBuild() {
        return (this.build!= null);
    }
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)673
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1460
						    pp[1]);
					    if (oj instanceof AbsLocation)
						if (ok == null)
						    points[k]++;
						else {
						    float dj = ((AbsLocation) oj)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    float dk = ((AbsLocation) ok)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    if (dj < dk)
							points[k]++;
						    else if (dk < dj)
							points[j]++;
						}
					    else {
						points[j]++;
						if (!(ok instanceof AbsLocation))
						    points[k]++;
					    }
					}
				    }
				    break;
				case AggregationFunction.MAX_DISTANCE_TO_REF_LOC:
				    for (int j = 0; j < size; j++) {
					Object oj = getProfileParameter(
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10404PulsiOximeter.javauniversAAL LDDI Library IEEE x073 standard implementation160
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10407BloodPressure.javauniversAAL LDDI Library IEEE x073 standard implementation207
		bs_byte[0]=(byte)((mss_val>>8)&0x000000FF);
		bs.setValue(bs_byte);
		mss.setValue(new BITS_16(new BitString(bs)));
		pulseattr = new Attribute(NomenclatureCodes.MDC_ATTR_METRIC_SPEC_SMALL, mss);
		pulserateattributes.add(pulseattr);
		
		// Unit-Code
		OID_Type unit_oid = new OID_Type();
		unit_oid.setValue(new INT_U16(NomenclatureCodes.MDC_DIM_BEAT_PER_MIN));
		pulseattr = new Attribute(NomenclatureCodes.MDC_ATTR_UNIT_CODE, unit_oid);
		pulserateattributes.add(pulseattr);
		
		// Attribute Value Map
			// - MDC_ATTR_NU_VAL_OBS_BASIC (the value of mass) size = 2 (SFloat-Type)
			// - MDC_ATTR_TIME_STAMP_ABS (time of measurement) size = 8 (8xINT_U8)		
		AttrValMap attrmap = new AttrValMap();
		attrmap.initValue();
		
		AttrValMapEntry entry1 = new AttrValMapEntry();
		OID_Type entry1_oid = new OID_Type();
		entry1_oid.setValue(new INT_U16(NomenclatureCodes.MDC_ATTR_NU_VAL_OBS_BASIC));
		entry1.setAttribute_id(entry1_oid);
		entry1.setAttribute_len(new INT_U16(2));
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway176
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway317
	    (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'A',
	    (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F',
	    (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K',
	    (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P',
	    (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U',
	    (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z',
	    (byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd',
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ConfigFile.javauniversAAL Middleware Interfaces (Core)55
org\universAAL\middleware\deploymanager\uapp\model\ConfigFile.javauniversAAL Middleware XSD Schemas53
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "configFile", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class ConfigFile implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "finalname", required = true)
    protected String finalname;

    /**
     * Gets the value of the value property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the finalname property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getFinalname() {
        return finalname;
    }

    /**
     * Sets the value of the finalname property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFinalname(String value) {
        this.finalname = value;
    }

    public boolean isSetFinalname() {
        return (this.finalname!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Config.javauniversAAL Middleware Interfaces (Core)55
org\universAAL\middleware\deploymanager\uapp\model\Config.javauniversAAL Middleware XSD Schemas54
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "config", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class Config implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "name", required = true)
    protected String name;

    /**
     * Gets the value of the value property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

}
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)219
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway317
	    (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'A',
	    (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F',
	    (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K',
	    (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P',
	    (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U',
	    (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z',
	    (byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd',
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway388
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway574
                                co.getHasComplexObjects().add(co1);
                            }

                        } else if (newSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {
                            ComplexObject co1 = new ComplexObject();
                            if (newSimpleOrComplexObjectElement.getQName() != null) {
                                co1.setObjectName(newSimpleOrComplexObjectElement.getQName());//Panta prin apo ayto ton tropo klisis prepei na exw dwsei prwta to onoma tou co
                                } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                co1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                            } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                co1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                            } else {
                                co1.setObjectName(new QName("UNDEFINED variable name"));
                                theDefinition.getContainingErrors().add("WARNING @line ~2248... UNDEFINED Variable name!!!");
                                System.out.println("WARNING @line ~2248... UNDEFINED Variable name!!!");
                            }
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\AalMpa.javauniversAAL Middleware Interfaces (Core)571
org\universAAL\middleware\deploymanager\uapp\model\AalUapp.javauniversAAL Middleware XSD Schemas896
                implements Serializable
            {

                private final static long serialVersionUID = 12343L;
                @XmlElement(required = true)
                protected String name;
                @XmlElement(required = true)
                @XmlSchemaType(name = "anyURI")
                protected String link;

                /**
                 * Gets the value of the name property.
                 *
                 * @return
                 *     possible object is
                 *     {@link String }
                 *
                 */
                public String getName() {
                    return name;
                }

                /**
                 * Sets the value of the name property.
                 *
                 * @param value
                 *     allowed object is
                 *     {@link String }
                 *
                 */
                public void setName(String value) {
                    this.name = value;
                }

                public boolean isSetName() {
                    return (this.name!= null);
                }

                /**
                 * Gets the value of the link property.
                 *
                 * @return
                 *     possible object is
                 *     {@link String }
                 *
                 */
                public String getLink() {
                    return link;
                }

                /**
                 * Sets the value of the link property.
                 *
                 * @param value
                 *     allowed object is
                 *     {@link String }
                 *
                 */
                public void setLink(String value) {
                    this.link = value;
                }

                public boolean isSetLink() {
                    return (this.link!= null);
                }

            }

        }


        /**
         * <p>Java class for anonymous complex type.
         *
         * <p>The following schema fragment specifies the expected content contained within this class.
         *
         * <pre>
         * &lt;complexType>
         *   &lt;complexContent>
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       &lt;sequence>
         *         &lt;element name="menuName" type="{http://www.w3.org/2001/XMLSchema}string"/>
         *         &lt;element name="serviceUri" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
         *         &lt;element name="icon" minOccurs="0">
         *           &lt;complexType>
         *             &lt;complexContent>
         *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *                 &lt;choice>
         *                   &lt;element name="path" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
         *                   &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         *                 &lt;/choice>
         *               &lt;/restriction>
         *             &lt;/complexContent>
         *           &lt;/complexType>
         *         &lt;/element>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         *
         *
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
FileProjectLine
org\universAAL\hw\exporter\zigbee\ha\devices\ExporterActuatorCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation92
org\universAAL\hw\exporter\zigbee\ha\devices\OnOffLightCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation139
				.valueOf(0)));// Here is the change
		return response;
	    } else {
		response = new ServiceResponse(
			CallStatus.serviceSpecificFailure);
		return response;
	    }
	}

	if (operation.startsWith(NAMESPACE + SERVICE_TURN_OFF)) {
	    if (executeOff()) {
		return new ServiceResponse(CallStatus.succeeded);
	    } else {
		response = new ServiceResponse(
			CallStatus.serviceSpecificFailure);
		return response;
	    }
	}

	if (operation.startsWith(NAMESPACE + SERVICE_TURN_ON)) {
	    if (executeOn()) {
		return new ServiceResponse(CallStatus.succeeded);
	    } else {
		response = new ServiceResponse(
			CallStatus.serviceSpecificFailure);
		return response;
	    }
	}

	response = new ServiceResponse(CallStatus.serviceSpecificFailure);
	response.addOutput(new ProcessOutput(
		ServiceResponse.PROP_SERVICE_SPECIFIC_ERROR,
		"The service requested has not been implemented in this simple editor callee"));
	return response;
    }
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\manager\apdu\APDUProcessor.javauniversAAL LDDI Library IEEE x073 standard implementation593
org\universAAL\lddi\lib\ieeex73std\manager\apdu\APDUProcessor.javauniversAAL LDDI Library IEEE x073 standard implementation695
		if(choice.isRoiv_cmip_getSelected()){
			if (!checkRoivState()){
				// Manager unassociated. Transmit abrt
				apdu = msg_generator.AbrtApduGenerator(StatusCodes.ABORT_REASON_UNDEFINED);
				return apdu;
			}else{
				// different procedures depending of the state 
				if(statemachine.getChannelState()  == StateMachine20601.CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG){
					// not allowed
					apdu = msg_generator.RoerGenerator(dataapdu.getInvoke_id(), StatusCodes.NO_SUCH_OBJECT_INSTANCE);
					return apdu;				
				}else if(statemachine.getChannelState() == StateMachine20601.CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG){
					
					//The agent only sends event report messages. This should never happen
					apdu = msg_generator.RoerGenerator(dataapdu.getInvoke_id(), StatusCodes.NO_SUCH_ACTION);
					return apdu;					
				}else if (statemachine.getChannelState() == StateMachine20601.CHANNELSTATE_ASSOCIATED_OPERATING){
					// TODO processing of Roiv_cmip_getSelected
					return null; // modify

				}else if (statemachine.getChannelState() == StateMachine20601.CHANNELSTATE_DISASSOCIATING){
					// in disassociating state: The agent sent an invoke message as the manager sent an rlrq. 
					// The manager has 	transitioned out of the Operating state and therefore will not provide any response.
					return null;
				}
			}
		}
		
		if(choice.isRoiv_cmip_setSelected()){
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway195
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway263
    private final static byte[] _URL_SAFE_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
FileProjectLine
org\universAAL\ontology\shape\Polygon.javauniversAAL Ontology Physical World191
org\universAAL\ontology\shape\Polyhedron.javauniversAAL Ontology Physical World146
	}
	return new Box(max[1] - max[0], max[3] - max[2], max[5] - max[4],
		new OriginedMetric((float) (max[0] + (max[1] - max[0]) / 2f),
			(float) (max[2] + (max[3] - max[2]) / 2f),
			(float) (max[4] + (max[5] - max[4]) / 2f),
			(Place) getCenter().getContainingLocation()));
    }

    public boolean contains(Point p) {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)2102
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1697
			out.write(NEW_LINE);
			lineLength = 0;
		    } // end if: end of line

		    position = 0;
		} // end if: enough to output
	    } // end if: encoding

	    // Else, Decoding
	    else {
		// Meaningful Base64 character?
		if (decodabet[theByte & 0x7f] > WHITE_SPACE_ENC) {
		    buffer[position++] = (byte) theByte;
		    if (position >= bufferLength) // Enough to output.
		    {
			int len = Base64.decode4to3(buffer, 0, b4, 0, options);
			out.write(b4, 0, len);
			// out.write( Base64.decode4to3( buffer ) );
			position = 0;
		    } // end if: enough to output
		} // end if: meaningful base64 character
		else if (decodabet[theByte & 0x7f] != WHITE_SPACE_ENC) {
		    throw new java.io.IOException(
			    "Invalid character in Base64 data.");
		} // end else: not white space either
	    } // end else: decoding
	} // end write

	/**
	 * Calls {@link #write(int)} repeatedly until <var>len</var> bytes are
	 * written.
	 * 
	 * @param theBytes
	 *            array from which to read bytes
	 * @param off
	 *            offset for array
	 * @param len
	 *            max number of bytes to read into array
	 * @since 1.3
	 */
	public void write(byte[] theBytes, int off, int len)
		throws java.io.IOException {
	    // Encoding suspended?
	    if (suspendEncoding) {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)238
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)391
    private final static byte[] _URL_SAFE_DECODABET = { -9, -9, -9, -9, -9, -9,
	    -9, -9, -9, // Decimal 0 - 8
	    -5, -5, // Whitespace: Tab and Linefeed
	    -9, -9, // Decimal 11 - 12
	    -5, // Whitespace: Carriage Return
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 -
								// 26
	    -9, -9, -9, -9, -9, // Decimal 27 - 31
	    -5, // Whitespace: Space
	    -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42
FileProjectLine
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\RepeatModelGridLAF.javauniversAAL UI Handler Swing51
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\RepeatModelTableLAF.javauniversAAL UI Handler Swing51
		JScrollPane scrollPane = new JScrollPane(getJTable());
		
		JPanel buttonPanel = getButtonPanel();
		buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
		Component[] buttons = buttonPanel.getComponents();
		for (int i = 0; i < buttons.length; i++) {
			setButtonColors((JButton) buttons[i]);
		}
		JPanel pannelWithAll = new JPanel();
		pannelWithAll.setLayout(new BorderLayout());
		pannelWithAll.add(scrollPane, BorderLayout.CENTER);
		pannelWithAll.add(buttonPanel, BorderLayout.EAST);
		pannelWithAll.add(
				getRenderer().getModelMapper().getModelFor(fc.getLabel()).getComponent(),
				BorderLayout.NORTH);
		needsLabel = false;
		return pannelWithAll;
	}
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway181
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway323
	    (byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd',
	    (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i',
	    (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n',
	    (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's',
	    (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x',
	    (byte) 'y', (byte) 'z' };
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1345
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway324
            XmlSchemaObjectCollection attsCol = ct.getAttributes();
            if (attsCol != null) {
                Iterator iter2 = attsCol.getIterator();
                while (iter2.hasNext()) {
                    Object obj = iter2.next();
                    if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                        org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                        Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                        if (res1 != null) {
                            if (res1.getClass().getName().contains("NativeObject")) {
                                NativeObject no12 = (NativeObject) res1;
FileProjectLine
org\universAAL\ontology\drools\ConsequenceProperty.javauniversAAL Ontology Drools61
org\universAAL\ontology\drools\FactProperty.javauniversAAL Ontology Drools60
	public FactProperty(String uri, String key, String value) {
		super(uri);
		props.put(PROP_HAS_KEY, key);
		props.put(PROP_HAS_VALUE, value);
	}

	public int getPropSerializationType(String propURI) {
		return PROP_SERIALIZATION_FULL;
	}

	public boolean isWellFormed() {
		// TODO
		return true;
	}

	public String getKey() {
		return (String) props.get(PROP_HAS_KEY);
	}

	public void setKey(String str) {
		props.put(PROP_HAS_KEY, str);
	}

	public String getValue() {
		return (String) props.get(PROP_HAS_VALUE);
	}

	public void setValue(String str) {
		props.put(PROP_HAS_VALUE, str);
	}

	public String getClassURI() {
		return MY_URI;
	}

}
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)224
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)381
	    (byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd',
	    (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i',
	    (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n',
	    (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's',
	    (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x',
	    (byte) 'y', (byte) 'z' };
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\GroupLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel203
org\universAAL\ui\gui\swing\bluesteelLAF\GroupPanelLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel93
				layout = new GridUnitLayout(gap, ((GridLayout)r).getColCount());
			}
			if (r.equals(HorizontalAlignment.left)){
				alignment = FlowLayout.LEFT;
			}
			if (r.equals(HorizontalAlignment.center)){
				alignment = FlowLayout.CENTER;
			}
			if (r.equals(HorizontalAlignment.right)){
				alignment = FlowLayout.RIGHT;
			}
			if (r.equals(VerticalAlignment.top)){
				alignment = VerticalFlowLayout.TOP;
			}
			if (r.equals(VerticalAlignment.middle)){
				alignment = VerticalFlowLayout.CENTER;
			}
			if (r.equals(VerticalAlignment.bottom)){
				alignment = VerticalFlowLayout.BOTTOM;
			}
		}
        if (layout instanceof FlowLayout){
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1452
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1484
				case AggregationFunction.MAX_DISTANCE_TO_REF_LOC:
				    for (int j = 0; j < size; j++) {
					Object oj = getProfileParameter(
						matches.get(j),
						pp[1]);
					for (int k = j + 1; k < size; k++) {
					    Object ok = getProfileParameter(
						    matches.get(k),
						    pp[1]);
					    if (oj instanceof AbsLocation)
						if (ok == null)
						    points[k]++;
						else {
						    float dj = ((AbsLocation) oj)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    float dk = ((AbsLocation) ok)
							    .getDistanceTo((AbsLocation) params
								    .get(1));
						    if (dj > dk)
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)667
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)697
			    case AggregationFunction.MAX_DISTANCE_TO_REF_LOC:
				for (int j = 0; j < size; j++) {
				    Object oj = getOutputValue(
					    (Hashtable) goods.get(j), af);
				    for (int k = j + 1; k < size; k++) {
					Object ok = getOutputValue(
						(Hashtable) goods.get(k), af);
					if (oj instanceof AbsLocation)
					    if (ok == null)
						points[k]++;
					    else {
						float dj = ((AbsLocation) oj)
							.getDistanceTo((AbsLocation) params
								.get(1));
						float dk = ((AbsLocation) ok)
							.getDistanceTo((AbsLocation) params
								.get(1));
						if (dj > dk)
FileProjectLine
org\universAAL\security\authenticator\client\AuthenticationPublisher.javauniversAAL Security UserPassword Authentication client59
org\security\session\manager\context\Subscriber.javauniversAAL Security Session Manager59
	ContextEventPattern[] patterns = new ContextEventPattern[3];
	ContextEventPattern cep = new ContextEventPattern();
	cep.addRestriction(MergedRestriction
			.getAllValuesRestriction(ContextEvent.PROP_RDF_OBJECT, Device.MY_URI));
	cep.addRestriction(MergedRestriction
		.getAllValuesRestriction(ContextEvent.PROP_RDF_SUBJECT, User.MY_URI));
	cep.addRestriction(MergedRestriction
		.getFixedValueRestriction(ContextEvent.PROP_RDF_PREDICATE, SecurityOntology.PROP_AUTHENTICATED));
	patterns[0] = cep;
	cep = new ContextEventPattern();
	cep.addRestriction(MergedRestriction
			.getAllValuesRestriction(ContextEvent.PROP_RDF_OBJECT, Device.MY_URI));
	cep.addRestriction(MergedRestriction
		.getAllValuesRestriction(ContextEvent.PROP_RDF_SUBJECT, User.MY_URI));
	cep.addRestriction(MergedRestriction
		.getFixedValueRestriction(ContextEvent.PROP_RDF_PREDICATE, SecurityOntology.PROP_REVOKED));
	patterns[1] = cep;
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\RepeatModelTableLAF.javauniversAAL UI Handler Swing Look and Feel Classic92
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\RepeatModelGridLAF.javauniversAAL UI Handler Swing51
		JScrollPane scrollPane = new JScrollPane(super.getNewComponent());
		
		JPanel buttonPanel = getButtonPanel();
		buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
		Component[] buttons = buttonPanel.getComponents();
		for (int i = 0; i < buttons.length; i++) {
			setButtonColors((JButton) buttons[i]);
		}
		JPanel pannelWithAll = new JPanel();
		pannelWithAll.setLayout(new BorderLayout());
		pannelWithAll.add(scrollPane, BorderLayout.CENTER);
		pannelWithAll.add(buttonPanel, BorderLayout.EAST);
		pannelWithAll.add(
				getRenderer().getModelMapper().getModelFor(fc.getLabel()).getComponent(),
				BorderLayout.NORTH);
		needsLabel = false;
		return pannelWithAll;
	}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway285
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway668
							co.getHasNativeObjects().add(no1);

						} else {
							// ComplexObject

							ComplexObject co1 = new ComplexObject();
							co1.setObjectName(new QName(containedElement
									.getQName().getNamespaceURI(),
									containedElement
											.getQName()
											.getLocalPart()
											.substring(
													containedElement.getQName()
															.getLocalPart()
															.indexOf(">") + 1),
									containedElement.getQName().getPrefix()));
							// co1.setObjectName(containedElement.getQName().getLocalPart().substring(
							// containedElement.getQName().getLocalPart().indexOf(">")+1));
							System.out.println(containedElement.getType()
									.getQName().getLocalPart());// Type tou CO1
							// co1.setObjectType(containedElement.getType().getQName().getLocalPart());
							System.out.println(containedElement.getType()
									.isBaseType());// apo dw tha katalavw an
													// einai nativeObject i
													// Complex
							// co1.setNamespaceURI(containedElement.getType().getQName().getNamespaceURI());
							// co1.setAdditionalInfo(containedElement.getType().getQName().getNamespaceURI());//Namespace
							// tou CO1
							co1.setObjectType(containedElement.getType()
									.getQName());
FileProjectLine
org\universAAL\ui\handler\gui\swing\ResourceMapper.javauniversAAL UI Handler Swing83
org\universAAL\ui\ui\handler\web\html\ResourceMapper.javauniversAAL UI HTML5 Web Handler160
					LogUtils.logWarn(mc, ResourceMapper.class, "search",
							new String[] { "Resource " + url + " not found" },
							null);
				return retVal;
			}
		}
	}

	/**
	 * Check that the resource pointed by the URL really exists.
	 * 
	 * @param url
	 *            the URL to be checked
	 * @return true is the URL can be accessed
	 */
	static private boolean existsURL(URL url) {
		URLConnection con;
		try {
			con = url.openConnection();
			con.connect();
			con.getInputStream();
			return true;
		} catch (IOException e) {
			return false;
		}
	}

	/**
	 * Searched for the specified url in the config directory.
	 * 
	 * @param url
	 *            the relative url of the file to look for.
	 * @return the {@link URL} of the file if found, null otherwise.
	 */
	static private URL searchFolder(String url) {
		int i = 0;
		URL file = null;
		while (i < resourceFolders.length && file == null) {
			file = checkFolder(resourceFolders[i] + url);
			i++;
		}
		return file;
	}

	/**
	 * check whether the specified url exists or not.
	 * 
	 * @param url
	 *            the url to test.
	 * @return the {@link URL} of existent file, null otherwise
	 */
	static private URL checkFolder(String url) {
		URL urlFile;
FileProjectLine
org\universAAL\ontology\lighting\simple\LightingInterface.javauniversAAL Samples AAPI Simplified Lighting Ontology48
org\universAAL\ontology\lighting\simple\LightingInterfaceLevel1.javauniversAAL Samples AAPI Simplified Lighting Ontology50
		    Lighting.PROP_CONTROLS, PhysicalThing.PROP_PHYSICAL_LOCATION }) })
    public Object[] getLampInfo(
	    @Input(name = "lampURI", propertyPaths = { Lighting.PROP_CONTROLS }) LightSource lamp);

    @ServiceOperation
    @ChangeEffect(propertyPaths = { Lighting.PROP_CONTROLS, LightSource.PROP_SOURCE_BRIGHTNESS },
	    value = "0", valueType = Integer.class)
    public void turnOff(
	    @Input(name = "lampURI", propertyPaths = { Lighting.PROP_CONTROLS }) LightSource lamp);

    @ServiceOperation
    @ChangeEffect(propertyPaths = { Lighting.PROP_CONTROLS, LightSource.PROP_SOURCE_BRIGHTNESS },
	    value = "100", valueType = Integer.class)
    public void turnOn(
	    @Input(name = "lampURI", propertyPaths = { Lighting.PROP_CONTROLS }) LightSource lamp);
    
}
FileProjectLine
org\universAAL\middleware\api\impl\SimplifiedApiService.javauniversAAL Middleware Service Annotated API (Core)92
org\universAAL\middleware\api\impl\SimplifiedApiService.javauniversAAL Middleware Service Annotated API (Core)147
    public void addOutputWrapper(String baseURI, Class<?> clazz,
	    Cardinality card, String[] propertyPaths)
	    throws SimplifiedRegistrationException {
	int minCard, maxCard;
	switch (card) {
	case ONE_TO_ONE:
	    minCard = maxCard = 1;
	    break;
	case MANY_TO_MANY:
	    minCard = maxCard = 0;
	    break;
	default:
	    throw new IllegalArgumentException();
	}
	// this will return uri if this is one of the predefined types
	// otherwise check for MY_URI field
	String myUri = TypeMapper.getDatatypeURI(clazz);
	if (myUri == null || myUri.endsWith("anyURI")) {
	    try {
		Object value = clazz.getField("MY_URI").get(null);
		myUri = (String) value;
	    } catch (Exception e) {
		e.printStackTrace();
		throw new SimplifiedRegistrationException(
			"Exception during resolving MY_URI field:"
				+ e.getMessage());
	    }
	}
FileProjectLine
org\universAAL\lddi\exporter\activityhub\driver\Iso11073MotionSensorDriver.javauniversAAL LDDI Exporter of ActivityHub devices (ISO 11073-10471)115
org\universAAL\lddi\exporter\activityhub\driver\Iso11073SwitchSensorDriver.javauniversAAL LDDI Exporter of ActivityHub devices (ISO 11073-10471)115
		Iso11073UsageSensorInstance instance = new Iso11073UsageSensorInstance(
				this.context, client, this.logger);
		
		// init service tracker on device service for instance
		tracker = new ServiceTracker(this.context, reference, instance);
		tracker.open();
		
		synchronized(this.connectedDriver){
			if ( ! this.connectedDriver.add(instance) )
				this.logger.log(LogService.LOG_ERROR, "Duplicate Element in HashSet connectedDriver");
		}

		return null; // if attachment is correct
	}
	
	
	/**
	 * register this driver in OSGi registry
	 */
	private void registerDriver() {
	    Dictionary propDriver=new Properties();
		propDriver.put(Constants.DRIVER_ID, MY_DRIVER_ID );
		this.regDriver=this.context.registerService(Driver.class.getName(), this, 
				propDriver);
		
		if ( this.regDriver != null )
			this.logger.log(LogService.LOG_INFO, "Driver for Iso11073-UsageSensor registered!");
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\RepeatModelGridLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel53
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\RepeatModelGridLAF.javauniversAAL UI Handler Swing59
		JPanel pannelWithAll = new JPanel();
		pannelWithAll.setLayout(new BorderLayout());
		pannelWithAll.add(scrollPane, BorderLayout.CENTER);
		pannelWithAll.add(buttonPanel, BorderLayout.EAST);
		pannelWithAll.add(
				getRenderer().getModelMapper().getModelFor(fc.getLabel()).getComponent(),
				BorderLayout.NORTH);
		needsLabel = false;
		return pannelWithAll;
	}
	
	protected JPanel getButtonPanel() {
		Repeat r = (Repeat)fc;

		JPanel buttonPanel = new JPanel();
		if (r.listAcceptsNewEntries()) {
			Icon icon = IconFactory.getIcon("common/Edit/Add.png");
			icon = IconFactory.resizeIcon(icon, AUX_BUTTON_SIZE, AUX_BUTTON_SIZE);
			buttonPanel.add(new AddTableButton(icon));
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1346
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2056
                        XmlSchemaObjectCollection attsCol = extension.getAttributes();//=objectXMLSchemaElement.getAttributes();
                        if (attsCol != null) {
                            Iterator iter2 = attsCol.getIterator();
                            while (iter2.hasNext()) {
                                Object obj = iter2.next();
                                if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                                    org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                                    Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                                    if (res1 != null) {
                                        if (res1.getClass().getName().contains("NativeObject")) {
                                            NativeObject no12 = (NativeObject) res1;
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2149
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2218
						if (newCO == null) {
							if (no1.getAdditionalInfo() != null
									&& no1.getAdditionalInfo().contains(
											"isListType")) {
								ComplexObject noArrayCO = new ComplexObject();
								noArrayCO.setObjectName(no1.getObjectName());
								noArrayCO.setObjectType(new QName(no1
										.getObjectType().getNamespaceURI(), no1
										.getObjectType().getLocalPart() + "[]",
										no1.getObjectType().getPrefix()));
								noArrayCO.setIsArrayType(true);
								noArrayCO.getHasNativeObjects().add(no1);
								// noArrayCO.setIsOptional(no1.isIsOptional());
								unionCO.getHasExtendedObjects().add(noArrayCO);

							} else {
								unionCO.getHasExtendedObjects().add(no1);
							}
						} else {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\mder\DecoderMDER.javauniversAAL LDDI Library IEEE x073 standard implementation333
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\per\PERAlignedDecoder.javauniversAAL LDDI Library IEEE x073 standard implementation607
        int countOfElements = decodeLength(elementInfo,stream);;
        
        if(countOfElements > 0) {
	
            Class paramType = CoderUtils.getCollectionType(elementInfo);
            
            for(int i=0;i<countOfElements;i++) {
                ElementInfo info = new ElementInfo();
                info.setAnnotatedClass(paramType);
                info.setParentAnnotated(elementInfo.getAnnotatedClass());
                if(elementInfo.hasPreparedInfo()) {
                    ASN1SequenceOfMetadata seqOfMeta = (ASN1SequenceOfMetadata)elementInfo.getPreparedInfo().getTypeMetadata();
                    info.setPreparedInfo( seqOfMeta.getItemClassMetadata() );
                }
            
                DecodedObject item=decodeClassType(null,paramType,info,stream);
                if(item!=null) {
                    result.add(item.getValue());
                }
            };
        }
        return new DecodedObject(result);
FileProjectLine
org\universAAL\context\sesame\sail\CardinalityNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite460
org\universAAL\context\sesame\sail\CardinCollect2NativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite24
    protected boolean addStatement(Resource subj, URI pred, Value obj,
	    boolean explicit, Resource... contexts) throws SailException {
	OpenRDFUtil.verifyContextNotNull(contexts);

	boolean result = false;

	try {
		ValueStore valueStore = nativeStore.getValueStore();
		int subjID = valueStore.storeValue(subj);
		int predID = valueStore.storeValue(pred);
		int objID = valueStore.storeValue(obj);

		if (contexts.length == 0) {
			contexts = new Resource[] { null };
		}

		for (Resource context : contexts) {
			int contextID = 0;
			if (context != null) {
				contextID = valueStore.storeValue(context);
			}

			//START PATCH
			if(hasMaxCardinality1(pred, contexts)){
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway905
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1340
                    if (ctChoice.getMaxOccurs() > 1) {
                        //Array Type
                        ComplexObject arrayCO = new ComplexObject();
                        arrayCO.setObjectName(co1.getObjectName());
                        //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                        arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                co1.getObjectType().getLocalPart() + "[]",
                                co1.getObjectType().getPrefix()));
                        arrayCO.setIsArrayType(true);
                        arrayCO.getHasComplexObjects().add(co1);
                        arrayCO.setIsOptional(co1.isIsOptional());
                        co.getHasComplexObjects().add(arrayCO);
                    } else {
                        co.getHasComplexObjects().add(co1);
                    }

                    //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                    System.out.println("aaa!");

                } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway552
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway740
                                                    if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1 ||
                                                            (no1.getAdditionalInfo() != null && no1.getAdditionalInfo().contains("isListType"))) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(),
                                                                no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasNativeObjects().add(no1);
                                                        noArrayCO.setIsOptional(no1.isIsOptional());
                                                        co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway347
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1693
                                                (org.apache.ws.commons.schema.XmlSchemaGroupRef) obj1, co1, theDefinition);

                                        if (co1 != null) {
                                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                            }
                                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                            }
                                        } else {
                                            System.out.println();
                                        }
                                        System.out.println();
                                    } else {
                                        System.out.println();
                                    }
                                }
                            }
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway360
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway740
											if (newSimpleOrComplexObjectElement
													.getMaxOccurs() > 1
													|| (no1.getAdditionalInfo() != null && no1
															.getAdditionalInfo()
															.contains(
																	"isListType"))) {
												ComplexObject noArrayCO = new ComplexObject();

												noArrayCO.setObjectName(no1
														.getObjectName());
												noArrayCO
														.setObjectType(new QName(
																no1.getObjectType()
																		.getNamespaceURI(),
																no1.getObjectType()
																		.getLocalPart()
																		+ "[]",
																no1.getObjectType()
																		.getPrefix()));
												noArrayCO.setIsArrayType(true);
												noArrayCO.getHasNativeObjects()
														.add(no1);
												noArrayCO.setIsOptional(no1
														.isIsOptional());
												co.getHasComplexObjects().add(
														noArrayCO);
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Dependency.javauniversAAL Middleware Interfaces (Core)55
org\universAAL\middleware\connectors\deploy\karaf\model\Dependency.javauniversAAL Middleware XSD Schemas54
@XmlType(name = "dependency", propOrder = {
    "value"
})
public class Dependency implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "version")
    protected String version;

    /**
     * 
     * Feature name should be non empty string.
     *             
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the version property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getVersion() {
        if (version == null) {
            return "0.0.0";
        } else {
            return version;
        }
    }

    /**
     * Sets the value of the version property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setVersion(String value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

}
FileProjectLine
org\universAAL\support\utils\ui\low\Dialog.javauniversAAL Support Utilities API178
org\universAAL\support\utils\ui\low\Message.javauniversAAL Support Utilities API125
	props.put(PROP_DIALOG_FORM, Form.newMessage(title, message));
	props.put(PROP_DIALOG_PRIORITY, priority);
	props.put(PROP_DIALOG_LANGUAGE, Locale.getDefault());
	props.put(PROP_DIALOG_PRIVACY_LEVEL, privacy);
    }
    
    /* (non-Javadoc)
     * @see oorg.universAAL.support.utils.ui.IContainer#add(org.universAAL.samples.ui.utils.SimpleControl)
     */
    public String[] add(Control ctrl){
	return ctrl.create(getDialogForm().getIOControls());
    }
    
    /**
     * Add a Submit Form Control to the Submit group of the Message. Submit
     * group is for Submits that end the message. By default two Submits are
     * added by the system, Delete and Preserve.
     * 
     * @param ctrl
     *            The Submit to add
     * @return The String representing the ID to be used to identify the Submit
     *         in the response.
     */
    public String addSubmit(SubmitCmd ctrl){
	String[] ref=ctrl.create(getDialogForm().getSubmits());
	return ref[ref.length-1];
    }
    
    /**
     * Add a hidden object so it is sent within the UI request, but not shown to
     * the user. When the UI response is being handled by the UI caller, this
     * hidden input can be retrieved by calling
     * <code>uiresponse.getUserInput(new String[]{ref});</code> , being
     * <code>ref</code> the one you used in this method.
     * 
     * @param ref
     *            The reference you will use to access the hidden object later
     *            from the response
     * @param hidden
     *            The object you want to hide
     */
    public void addHidden(String ref, Object hidden){
	this.getDialogForm().getData().setPropertyPath(new String[]{ref}, hidden);
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1638
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2010
															.item(k2)
															.getAttributes();
													// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
													String attName = "";
													String attType = "";
													String additionalInfo = "";

													// EDW EINAI OOOOLH H MAGKIA
													// MOU ME TA
													// TYPES!!!!!!!!!!!!!!!
													for (int k1 = 0; k1 < attributesOfType
															.getLength(); k1++) {
														Node att = attributesOfType
																.item(k1);
														if (att.getNodeName()
																.equalsIgnoreCase(
																		"name")) {
															// ////-System.out.println("\tName: "+att.getNodeValue());
															attName = att
																	.getNodeValue();
														} else if (att
																.getNodeName()
																.equalsIgnoreCase(
																		"type")) {
															// ////-System.out.println("\tType: "+att.getNodeValue());
															attType = att
																	.getNodeValue();
														} else {
															// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
															additionalInfo += att
																	.getNodeName()
																	+ ":"
																	+ att.getNodeValue()
																	+ "   ";
														}
													}

													// -ta.append("\n\t\t\tName: "+attName);
													additionalInfo = additionalInfo
															.trim();
													// -ta.append("\n\t\t\tType: "+attType+"  ("+additionalInfo+")");

													// //-ta.append("\n\t\t\t\t-"+attName+" ["+attType+"]  "+additionalInfo);

													// Find the Type of the
													// attName...
													// ITERATIVE
													// PROCESS.........
													if (attType
															.startsWith(MitsosParser.targetNamespacePrefix)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway867
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1340
                    if (ctChoice.getMaxOccurs() > 1) {
                        //Array Type
                        ComplexObject arrayCO = new ComplexObject();
                        arrayCO.setObjectName(co1.getObjectName());
                        //arrayCO.setObjectType(new QName(co1.getObjectType()+"[]"));
                        arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
                                co1.getObjectType().getLocalPart() + "[]",
                                co1.getObjectType().getPrefix()));
                        arrayCO.setIsArrayType(true);
                        arrayCO.getHasComplexObjects().add(co1);
                        arrayCO.setIsOptional(co1.isIsOptional());
                        co.getHasComplexObjects().add(arrayCO);
                    } else {
                        co.getHasComplexObjects().add(co1);
                    }

                    //System.out.println("\t\t\t\t\t"+newSimpleOrComplexObjectElement.getName()+"   "+newSimpleOrComplexObjectElement.getSchemaTypeName());
                    System.out.println("aaa!");

                } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2892
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway3038
											.getClass()
											.toString()
											.contains(
													"org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
										NativeObject no1 = new NativeObject();
										// no1.objectName = co.objectName;
										no1.setObjectType(elem1
												.getSchemaTypeName());
										// no1.setObjectName(elem1.getQName());
										if (elem1.getQName() != null) {
											no1.setObjectName(elem1.getQName());
										} else if (elem1.getRefName() != null) {
											no1.setObjectName(elem1
													.getRefName());
										} else if (elem1.getName() != null) {
											no1.setObjectName(new QName(elem1
													.getName()));
										} else {
											no1.setObjectName(new QName(
													"UNDEFINED variable name"));
											theDefinition
													.getContainingErrors()
													.add("WARNING @line ~1128... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\middleware\owl\ExactCardinalityRestriction.javauniversAAL Middleware Data Representation (Core)105
org\universAAL\middleware\owl\MaxCardinalityRestriction.javauniversAAL Middleware Data Representation (Core)105
	    return getValue() >= ((List) value).size();
    }

    public boolean isDisjointWith(TypeExpression other, HashMap context,
	    int ttl, List<MatchLogEntry> log) {
	ttl = checkTTL(ttl);
	if (!(other instanceof PropertyRestriction))
	    return other.isDisjointWith(this, context, ttl, log);

	PropertyRestriction r = (PropertyRestriction) other;
	Object o = getOnProperty();
	if (o == null || !o.equals(r.getOnProperty()))
	    return false;

	if (r instanceof MinCardinalityRestriction) {
	    if (getValue() < ((MinCardinalityRestriction) r).getValue())
		return true;
	} else if (r instanceof ExactCardinalityRestriction) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1585
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway324
            XmlSchemaObjectCollection attsCol = ct.getAttributes();
            if (attsCol != null) {
                Iterator iter2 = attsCol.getIterator();
                while (iter2.hasNext()) {
                    Object obj = iter2.next();
                    if (obj.getClass().getName().equals("org.apache.ws.commons.schema.XmlSchemaAttribute")) {
                        org.apache.ws.commons.schema.XmlSchemaAttribute att = (org.apache.ws.commons.schema.XmlSchemaAttribute) obj;
                        Object res1 = AdditionalTypesParser.parseXmlSchemaAttribute(att, service, theDefinition);
                        if (res1 != null) {
                            if (res1.getClass().getName().contains("NativeObject")) {
                                NativeObject no12 = (NativeObject) res1;
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2174
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2762
			org.w3c.dom.Element e1 = s1.getElement();
			// s1.get
			NodeList children = e1.getChildNodes();
			// //-System.out.println(children.getLength());
			for (int i = 0; i < children.getLength(); i++) {
				Node n = children.item(i);
				// //-System.out.println("### ####  MIIIIITS "+n.getNodeName()+" "+n.getNodeType()+" "+n.getNodeValue());
				if (n.getNodeName() != null
						&& n.getNodeName().contains(":import")) {

					// PARSE IMPORTED XSD...
					// //-System.out.println(n.getAttributes().getNamedItem("schemaLocation"));
					if (n.getAttributes() != null
							&& n.getAttributes().getNamedItem("schemaLocation") != null
							&& n.getAttributes().getNamedItem("schemaLocation")
									.getNodeValue() != null) {
						// //-System.out.println("FOUND AN XSD IMPORT!!!");
						// //-System.out.println(n.getAttributes().getNamedItem("schemaLocation").getNodeValue()+"\n");
						parseImportedXSD(s1, inPartType, null, null, null, null);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway388
org\universAAL\ri\wsdlToolkit\parser\WSDLParser.javauniversAAL Remote Interoperability Internet Gateway249
						List l1 = binding.getExtensibilityElements();
						for (int i = 0; i < l1.size(); i++) {
							try {
								com.ibm.wsdl.extensions.soap.SOAPBindingImpl sbimpl = (com.ibm.wsdl.extensions.soap.SOAPBindingImpl) l1
										.get(i);
								bindingStyle = sbimpl.getStyle();
							} catch (Exception e) {
								try {
									com.ibm.wsdl.extensions.soap12.SOAP12BindingImpl sbimpl = (com.ibm.wsdl.extensions.soap12.SOAP12BindingImpl) l1
											.get(i);
									bindingStyle = sbimpl.getStyle();
								} catch (Exception e1) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway445
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway533
											if (!objectExistsInHashmap) {
												MitsosParser.parsedObjectsHashmap
														.put(newComplexObject
																.getObjectType(),
																newComplexObject);
												parseTypeIterativeFromSpecificNamespace(
														theWSDLxsdSchema, null,
														xsdNamespace, type1,
														newComplexObject);
												co.getHasComplexObjects().add(
														newComplexObject);
											} else {
												try {

													// PROSOXI!!!!!!!!!!!
													// EDW MPAINEI
													// SYNEXEIA!!!!!!

													// //-System.out.println(MitsosParser.parsedObjectsHashmap.get(type1).getClass());
													ComplexObject co1 = (ComplexObject) MitsosParser.parsedObjectsHashmap
															.get(type1);
													co1.setObjectName(newComplexObject
															.getObjectName());
													co.getHasComplexObjects()
															.add(co1);
												} catch (Exception e) {
													NativeObject no1 = (NativeObject) MitsosParser.parsedObjectsHashmap
															.get(type1);
													no1.setObjectName(newComplexObject
															.getObjectName());
													co.getHasNativeObjects()
															.add(no1);
												}
											}
										}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway408
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway959
                                                    if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasComplexObjects().add(unionCO);
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasComplexObjects().add(unionCO);
                                                    }
                                                    System.out.println();
                                                } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1311
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1631
																(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
																co1,
																theDefinition);

												if (co1 != null) {
													for (int i = 0; i < co1
															.getHasComplexObjects()
															.size(); i++) {
														dummyInputOrOutputComplexObject
																.getHasComplexObjects()
																.add(co1.getHasComplexObjects()
																		.get(i));
													}
													for (int i = 0; i < co1
															.getHasNativeObjects()
															.size(); i++) {
														dummyInputOrOutputComplexObject
																.getHasNativeObjects()
																.add(co1.getHasNativeObjects()
																		.get(i));
													}
												} else {
													System.out.println();
												}
												System.out.println();
											} else {
												System.out.println();
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway906
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1828
                                                    if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasComplexObjects().add(unionCO);
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasComplexObjects().add(unionCO);
                                                    }
                                                    System.out.println();
                                                } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway610
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1116
							boolean typeParsed = false;
							if (xmlSchemaType
									.getClass()
									.toString()
									.contains(
											"org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
								NativeObject no1 = new NativeObject();
								// no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
								if (newSimpleOrComplexObjectElement.getQName() != null) {
									no1.setObjectName(newSimpleOrComplexObjectElement
											.getQName());
								} else if (newSimpleOrComplexObjectElement
										.getRefName() != null) {
									no1.setObjectName(newSimpleOrComplexObjectElement
											.getRefName());
								} else if (newSimpleOrComplexObjectElement
										.getName() != null) {
									no1.setObjectName(new QName(
											newSimpleOrComplexObjectElement
													.getName()));
								} else {
									no1.setObjectName(new QName(
											"UNDEFINED variable name"));
									theDefinition
											.getContainingErrors()
											.add("WARNING @line ~202... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway197
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1828
                                                    if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                        ComplexObject noArrayCO = new ComplexObject();

                                                        noArrayCO.setObjectName(no1.getObjectName());
                                                        noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                        noArrayCO.setIsArrayType(true);
                                                        noArrayCO.getHasComplexObjects().add(unionCO);
                                                        co.getHasComplexObjects().add(noArrayCO);
                                                        typeParsed = true;

                                                    } else {
                                                        typeParsed = true;
                                                        co.getHasComplexObjects().add(unionCO);
                                                    }
                                                    System.out.println();
                                                } else {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p20601\GetResultSimple.javauniversAAL LDDI Library IEEE x073 standard implementation38
org\universAAL\lddi\lib\ieeex73std\x73\p20601\SetResultSimple.javauniversAAL LDDI Library IEEE x073 standard implementation38
    public class SetResultSimple implements IASN1PreparedElement {
            
        @ASN1Element ( name = "obj-handle", isOptional =  false , hasTag =  false  , hasDefaultValue =  false  )
    
	private HANDLE obj_handle = null;
                
  
        @ASN1Element ( name = "attribute-list", isOptional =  false , hasTag =  false  , hasDefaultValue =  false  )
    
	private AttributeList attribute_list = null;
                
  
        
        public HANDLE getObj_handle () {
            return this.obj_handle;
        }

        

        public void setObj_handle (HANDLE value) {
            this.obj_handle = value;
        }
        
  
        
        public AttributeList getAttribute_list () {
            return this.attribute_list;
        }

        

        public void setAttribute_list (AttributeList value) {
            this.attribute_list = value;
        }
        
  
                    
        
        public void initWithDefaults() {
            
        }

        private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(SetResultSimple.class);
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1313
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1354
		    new java.io.FileInputStream(infile)), Base64.DECODE);
	    out = new java.io.BufferedOutputStream(
		    new java.io.FileOutputStream(outfile));
	    byte[] buffer = new byte[65536]; // 64K
	    int read = -1;
	    while ((read = in.read(buffer)) >= 0) {
		out.write(buffer, 0, read);
	    } // end while: through file
	    success = true;
	} catch (java.io.IOException exc) {
	    exc.printStackTrace();
	} finally {
	    try {
		in.close();
	    } catch (Exception exc) {
	    }
	    try {
		out.close();
	    } catch (Exception exc) {
	    }
	} // end finally

	return success;
    } // end decodeFileToFile

    /*  ******** I N N E R C L A S S I N P U T S T R E A M ******** */

    /**
     * A {@link Base64.InputStream} will read data from another
     * <tt>java.io.InputStream</tt>, given in the constructor, and encode/decode
     * to/from Base64 notation on the fly.
     * 
     * @see Base64
     * @since 1.3
     */
    public static class InputStream extends java.io.FilterInputStream {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2308
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2923
													attType.indexOf(":") + 1,
													attType.length());
											if (type1.startsWith("ArrayOf")) {
												type1 = type1.replaceFirst(
														"ArrayOf", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (type1.endsWith("Array")) {
												type1 = type1.substring(0,
														type1.length() - 5);
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											} else if (attType.endsWith("[]")) {
												type1 = type1.replace("[]", "");
												// -ta.append("  ("+type1+"[])");
												co1.setObjectType(new QName(
														type1 + "[]"));
											}
											parseTypeIterative(s1, type1,
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1080
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1548
									choiceCO.getHasExtendedObjects()
											.add(res123);
									continue;
								}

							} else {
								System.out.println("XA! W!");
								ComplexObject co123 = new ComplexObject();
								if (newSimpleOrComplexObjectElement.getQName() != null) {
									co123.setObjectName(newSimpleOrComplexObjectElement
											.getQName());
								} else if (newSimpleOrComplexObjectElement
										.getRefName() != null) {
									co123.setObjectName(newSimpleOrComplexObjectElement
											.getRefName());
								} else if (newSimpleOrComplexObjectElement
										.getName() != null) {
									co123.setObjectName(new QName(
											newSimpleOrComplexObjectElement
													.getName()));
								} else {
									co123.setObjectName(new QName(
											"UNDEFINED variable name!"));
									theDefinition
											.getContainingErrors()
											.add("ERROR @line ~2837... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ProfileType.javauniversAAL Middleware Interfaces (Core)53
org\universAAL\middleware\deploymanager\uapp\model\ProfileType.javauniversAAL Middleware XSD Schemas52
@XmlType(name = "profileType", propOrder = {
    "profileId",
    "version"
})
public class ProfileType
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElement(required = true)
    protected SpaceType profileId;
    @XmlElement(required = true)
    protected VersionType version;

    /**
     * Gets the value of the profileId property.
     *
     * @return
     *     possible object is
     *     {@link SpaceType }
     *
     */
    public SpaceType getProfileId() {
        return profileId;
    }

    /**
     * Sets the value of the profileId property.
     *
     * @param value
     *     allowed object is
     *     {@link SpaceType }
     *
     */
    public void setProfileId(SpaceType value) {
        this.profileId = value;
    }

    public boolean isSetProfileId() {
        return (this.profileId!= null);
    }

    /**
     * Gets the value of the version property.
     *
     * @return
     *     possible object is
     *     {@link VersionType }
     *
     */
    public VersionType getVersion() {
        return version;
    }

    /**
     * Sets the value of the version property.
     *
     * @param value
     *     allowed object is
     *     {@link VersionType }
     *
     */
    public void setVersion(VersionType value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ArtifactType.javauniversAAL Middleware Interfaces (Core)53
org\universAAL\middleware\deploymanager\uapp\model\ArtifactType.javauniversAAL Middleware XSD Schemas52
@XmlType(name = "artifactType", propOrder = {
    "artifactId",
    "version"
})
public class ArtifactType
    implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlElement(required = true)
    protected String artifactId;
    @XmlElement(required = true)
    protected VersionType version;

    /**
     * Gets the value of the artifactId property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getArtifactId() {
        return artifactId;
    }

    /**
     * Sets the value of the artifactId property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setArtifactId(String value) {
        this.artifactId = value;
    }

    public boolean isSetArtifactId() {
        return (this.artifactId!= null);
    }

    /**
     * Gets the value of the version property.
     *
     * @return
     *     possible object is
     *     {@link VersionType }
     *
     */
    public VersionType getVersion() {
        return version;
    }

    /**
     * Sets the value of the version property.
     *
     * @param value
     *     allowed object is
     *     {@link VersionType }
     *
     */
    public void setVersion(VersionType value) {
        this.version = value;
    }

    public boolean isSetVersion() {
        return (this.version!= null);
    }

}
FileProjectLine
org\universAAL\middleware\service\owls\profile\NumberOfSamples.javauniversAAL Middleware Service Bus (Core)56
org\universAAL\middleware\service\owls\profile\ResponseTimeInMilliseconds.javauniversAAL Middleware Service Bus (Core)56
    public int getNumberOfMilliseconds() {
	Object o = props.get(PROP_uAAL_PARAMETER_VALUE_DATA);
	return (o instanceof Integer) ? ((Integer) o).intValue() : -1;
    }

    public boolean setProperty(String propURI, Object value) {
	if (propURI != null && value != null && !props.containsKey(propURI))
	    if (propURI.equals(PROP_OWLS_PROFILE_SERVICE_PARAMETER_NAME)) {
		if (value instanceof String) {
		    props.put(propURI, value);
		    return true;
		}
	    } else if (propURI.equals(PROP_OWLS_PROFILE_S_PARAMETER)) {
		if (value instanceof Integer
			&& ((Integer) value).intValue() > 0) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation42
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation111
				(byte)0x06, (byte)0xC3,
				
				// Measure 3
				(byte)0x00, (byte)0x01,
				(byte)0x00, (byte)0x03,
				(byte)0x00, (byte)0x1A,
				(byte)0x0A, (byte)0x56,
				(byte)0x00, (byte)0x04,
				(byte)0xFE, (byte)0x00,
				(byte)0x1C, (byte)0x5C,
				(byte)0x09, (byte)0x90,
				(byte)0x00, (byte)0x08,
				(byte)0x20, (byte)0x12,
				(byte)0x05, (byte)0x08,
				(byte)0x15, (byte)0x17,
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10407APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation36
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10415APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation36
				(byte)0x80, (byte)0x00, 						// encoding rules (MDER)
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00,	// nomenclature version
				(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, // functional units
				(byte)0x00, (byte)0x80, (byte)0x00, (byte)0x00, // sysType (agent)
				(byte)0x00, (byte)0x08, 						// sys-id length (8)
				(byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44, // sys-id
				(byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88,
				(byte)0x05, (byte)0xDC, 						 //dev config id (standard 700 -> blood pressure)
FileProjectLine
org\universAAL\lddi\samples\activityhub\client\ActivityHubClient.javauniversAAL Samples Activity Hub Client64
org\universAAL\lddi\samples\device\client\DeviceClient.javauniversAAL Samples Device Client60
	private Activator myParent;
	private static JFrame frame;
	private static ListModel jListModel = new DefaultComboBoxModel(new Object[] { "Init..." });
	static private JList jList1 = new JList(jListModel);
	private static JScrollPane jsp0 = new JScrollPane(jList1);
//	private static JTextArea deviceArea = new JTextArea();
	private static JTextArea deviceInfoArea = new JTextArea();
	private static JScrollPane jsp1 = new JScrollPane(deviceInfoArea);
	private static JTextArea contextArea = new JTextArea();
	private static JScrollPane jsp2 = new JScrollPane(contextArea);
	private static JTextArea logArea = new JTextArea();
	private static JScrollPane jsp3 = new JScrollPane(logArea);
	private static JLabel label1;
	private static JLabel label2;
	private static JLabel label3;
	private static JLabel label4;
	private JButton switchOnButton;
FileProjectLine
org\universAAL\ontology\shape\ConeSegment.javauniversAAL Ontology Physical World105
org\universAAL\ontology\shape\LineSegment.javauniversAAL Ontology Physical World78
    }

    public Point getStart() {
	return getPoints()[0];
    }

    public Point getEnd() {
	return getPoints()[1];
    }

    public float getDistanceTo(Point point) {
	if (point == null)
	    throw new IllegalArgumentException();
	CoordinateSystem common = CoordinateSystem.findCommonParentSystem(point
		.getCoordinateSystem(), this.getLocalCoordinateSystem());
	double[] a = getStart().getInHigherCoordinateSystem(common)
		.get3DCoordinates();
	double[] b = getEnd().getInHigherCoordinateSystem(common)
		.get3DCoordinates();
	JgclPoint3D c = new JgclCartesianPoint3D(point
		.getInHigherCoordinateSystem(common).get3DCoordinates());
FileProjectLine
org\universAAL\middleware\aalspace\json\model\ChannelDescriptor.javauniversAAL Middleware XSD Schemas47
org\universAAL\middleware\interfaces\aalspace\xml\model\ChannelDescriptor.javauniversAAL Middleware XSD Schemas74
    protected String channelValue;

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#getChannelName()
     */
    public String getChannelName() {
        return channelName;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#setChannelName(java.lang.String)
     */
    public void setChannelName(String value) {
        this.channelName = value;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#isSetChannelName()
     */
    public boolean isSetChannelName() {
        return (this.channelName!= null);
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#getChannelURL()
     */
    public String getChannelURL() {
        return channelURL;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#setChannelURL(java.lang.String)
     */
    public void setChannelURL(String value) {
        this.channelURL = value;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#isSetChannelURL()
     */
    public boolean isSetChannelURL() {
        return (this.channelURL!= null);
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#getChannelValue()
     */
    public String getChannelValue() {
        return channelValue;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#setChannelValue(java.lang.String)
     */
    public void setChannelValue(String value) {
        this.channelValue = value;
    }

    /* (non-Javadoc)
     * @see org.universAAL.middleware.interfaces.aalspace.model.IChannelDescriptor#isSetChannelValue()
     */
    public boolean isSetChannelValue() {
        return (this.channelValue!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ExecutionUnit.javauniversAAL Middleware Interfaces (Core)70
org\universAAL\middleware\deploymanager\uapp\model\ExecutionUnit.javauniversAAL Middleware XSD Schemas73
    protected Object spaceStartLevel;

    /**
     * Gets the value of the deploymentUnit property.
     *
     * @return
     *     possible object is
     *     {@link Object }
     *
     */
    public Object getDeploymentUnit() {
        return deploymentUnit;
    }

    /**
     * Sets the value of the deploymentUnit property.
     *
     * @param value
     *     allowed object is
     *     {@link Object }
     *
     */
    public void setDeploymentUnit(Object value) {
        this.deploymentUnit = value;
    }

    public boolean isSetDeploymentUnit() {
        return (this.deploymentUnit!= null);
    }

    /**
     * Gets the value of the configFiles property.
     *
     * @return
     *     possible object is
     *     {@link Object }
     *
     */
    public Object getConfigFiles() {
        return configFiles;
    }

    /**
     * Sets the value of the configFiles property.
     *
     * @param value
     *     allowed object is
     *     {@link Object }
     *
     */
    public void setConfigFiles(Object value) {
        this.configFiles = value;
    }

    public boolean isSetConfigFiles() {
        return (this.configFiles!= null);
    }

    /**
     * Gets the value of the spaceStartLevel property.
     *
     * @return
     *     possible object is
     *     {@link Object }
     *
     */
    public Object getSpaceStartLevel() {
        return spaceStartLevel;
    }

    /**
     * Sets the value of the spaceStartLevel property.
     *
     * @param value
     *     allowed object is
     *     {@link Object }
     *
     */
    public void setSpaceStartLevel(Object value) {
        this.spaceStartLevel = value;
    }

    public boolean isSetSpaceStartLevel() {
        return (this.spaceStartLevel!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\DeploymentUnit.javauniversAAL Middleware Interfaces (Core)274
org\universAAL\middleware\deploymanager\uapp\model\DeploymentUnit.javauniversAAL Middleware XSD Schemas355
            return (this.android!= null);
        }

        /**
         * Gets the value of the tomcat property.
         *
         * @return
         *     possible object is
         *     {@link Object }
         *
         */
        public Object getTomcat() {
            return tomcat;
        }

        /**
         * Sets the value of the tomcat property.
         *
         * @param value
         *     allowed object is
         *     {@link Object }
         *
         */
        public void setTomcat(Object value) {
            this.tomcat = value;
        }

        public boolean isSetTomcat() {
            return (this.tomcat!= null);
        }

        /**
         * Gets the value of the equinox property.
         *
         * @return
         *     possible object is
         *     {@link Object }
         *
         */
        public Object getEquinox() {
            return equinox;
        }

        /**
         * Sets the value of the equinox property.
         *
         * @param value
         *     allowed object is
         *     {@link Object }
         *
         */
        public void setEquinox(Object value) {
            this.equinox = value;
        }

        public boolean isSetEquinox() {
            return (this.equinox!= null);
        }

        /**
         * Gets the value of the felix property.
         *
         * @return
         *     possible object is
         *     {@link Object }
         *
         */
        public Object getFelix() {
            return felix;
        }

        /**
         * Sets the value of the felix property.
         *
         * @param value
         *     allowed object is
         *     {@link Object }
         *
         */
        public void setFelix(Object value) {
            this.felix = value;
        }

        public boolean isSetFelix() {
            return (this.felix!= null);
        }
FileProjectLine
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)131
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (windows OS version)131
		setBounds(100,100,550,375);
		setTitle("uAAL Continua manager client");
		getContentPane().setLayout(new BorderLayout());
		// Main panel (content pane)
		mainPanel = createJPanel();
		getContentPane().add(mainPanel,BorderLayout.CENTER);
		// Create and add components
		createComponents();	
		// Show		
		setVisible(true);
	}	
	
	/** Create components */
	public void createComponents() {
		// Label (uaal image icon)
		uaalLogoLabel = new JLabel("");
		uaalLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(uaalLogoImage)));
		uaalLogoLabel.setBounds(75,10,300,81);
		mainPanel.add(uaalLogoLabel);
		// Radio buttons group
		radiobuttonPanel = new JPanel();	
		radiobuttonPanel.setLayout(new GridLayout(1,0));
		radiobuttonPanel.setBounds(20,100,475,50);		
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2332
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2479
											.getAttributes();
									// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
									String attName = "";
									String attType = "";
									String additionalInfo = "";

									for (int k1 = 0; k1 < attributesOfType
											.getLength(); k1++) {
										Node att = attributesOfType.item(k1);
										if (att.getNodeName().equalsIgnoreCase(
												"name")) {
											// ////-System.out.println("\tName: "+att.getNodeValue());
											attName = att.getNodeValue();
										} else if (att.getNodeName()
												.equalsIgnoreCase("type")) {
											// ////-System.out.println("\tType: "+att.getNodeValue());
											attType = att.getNodeValue();
										} else {
											// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
											additionalInfo += att.getNodeName()
													+ ":" + att.getNodeValue()
													+ "   ";
										}
									}

									// -ta.append("\n\t\t\tName: "+attName);
									additionalInfo = additionalInfo.trim();
									// -ta.append("\n\t\t\tType: "+attType+"  ("+additionalInfo+")");

									if (n1.getAttributes()
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2218
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2606
											}

											/*
											 * parseImportedXSD
											 * schemaImpl.getImports();
											 * 
											 * schemaImpl.getIncludes();
											 */
										}

									} else {// NATIVE TYPE
										// EINAI NATIVE TYPE
										// //-ta.append("\n");

										// Create new native type kai valto mesa
										// sta INPUTS i OUTPUTS tou current
										// Operation
										if (operationInputs != null) {
											NativeObject no = new NativeObject();
											no.setObjectName(new QName(attName));
											no.setObjectType(new QName(attType));
											no.setAdditionalInfo(additionalInfo);
											operationInputs
													.getHasNativeOrComplexObjects()
													.add(no);
										} else if (operationOutputs != null) {
											NativeObject no = new NativeObject();
											no.setObjectName(new QName(attName));
											no.setObjectType(new QName(attType));
											no.setAdditionalInfo(additionalInfo);
											operationOutputs
													.getHasNativeOrComplexObjects()
													.add(no);
										}
									}
								}

							}
						}

					}

				}
			}
		}
	}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1639
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2479
											.getAttributes();
									// ////-System.out.println("WWW GAMWTOOOO...... TYPES... FROM IMPORT!!!!!!");
									String attName = "";
									String attType = "";
									String additionalInfo = "";

									for (int k1 = 0; k1 < attributesOfType
											.getLength(); k1++) {
										Node att = attributesOfType.item(k1);
										if (att.getNodeName().equalsIgnoreCase(
												"name")) {
											// ////-System.out.println("\tName: "+att.getNodeValue());
											attName = att.getNodeValue();
										} else if (att.getNodeName()
												.equalsIgnoreCase("type")) {
											// ////-System.out.println("\tType: "+att.getNodeValue());
											attType = att.getNodeValue();
										} else {
											// ////-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
											additionalInfo += att.getNodeName()
													+ ":" + att.getNodeValue()
													+ "   ";
										}
									}

									// -ta.append("\n\t\t\tName: "+attName);
									additionalInfo = additionalInfo.trim();
									// -ta.append("\n\t\t\tType: "+attType+"  ("+additionalInfo+")");

									if (n1.getAttributes()
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway260
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1005
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();

                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasNativeObjects().add(no1);
                                                            co.getHasComplexObjects().add(noArrayCO);
                                                            typeParsed = true;

                                                        } else {
                                                            typeParsed = true;
                                                            co.getHasNativeObjects().add(no1);
                                                        }
                                                    }
                                                }
                                            } else if (objectXMLSchemaElement.getSchemaType().getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)1186
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway901
	    try {
		// Two ways to do the same thing. Don't know which way I like
		// best.
		// int outBuff = ( ( DECODABET[ source[ srcOffset ] ] << 24 )
		// >>> 6 )
		// | ( ( DECODABET[ source[ srcOffset + 1 ] ] << 24 ) >>> 12 )
		// | ( ( DECODABET[ source[ srcOffset + 2 ] ] << 24 ) >>> 18 )
		// | ( ( DECODABET[ source[ srcOffset + 3 ] ] << 24 ) >>> 24 );
		int outBuff = ((DECODABET[source[srcOffset]] & 0xFF) << 18)
			| ((DECODABET[source[srcOffset + 1]] & 0xFF) << 12)
			| ((DECODABET[source[srcOffset + 2]] & 0xFF) << 6)
			| ((DECODABET[source[srcOffset + 3]] & 0xFF));

		destination[destOffset] = (byte) (outBuff >> 16);
		destination[destOffset + 1] = (byte) (outBuff >> 8);
		destination[destOffset + 2] = (byte) (outBuff);

		return 3;
	    } catch (Exception e) {
FileProjectLine
org\universAAL\lddi\samples\activityhub\client\MyActivityHubContextListener.javauniversAAL Samples Activity Hub Client87
org\universAAL\lddi\samples\device\client\DeviceContextListener.javauniversAAL Samples Device Client87
		LogUtils.logInfo(Activator.mc, DeviceContextListener.class,
			"handleContextEvent", new Object[] {
			"\n*****************************\n",
			"Received context event:\n", "    Subject     = ",
			event.getSubjectURI(), "\n", "    Subject type= ",
			event.getSubjectTypeURI(), "\n", "    Predicate   = ",
			event.getRDFPredicate(), "\n", "    Object      = ",
			event.getRDFObject() } , null);

		String[] log = new String[] {	
				"************ Last received context event: " +
				dfm.format(new Date(System.currentTimeMillis())),
				"  Subject     = " + event.getSubjectURI(),
				"  Subject type= " + event.getSubjectTypeURI(),
				"  Predicate   = " + event.getRDFPredicate(),
				"  Object      = " + event.getRDFObject() };
		
		this.dc.showContextEvent( log );
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway278
org\universAAL\ri\wsdlToolkit\parser\WSDL_XSD_SchemaToolkit.javauniversAAL Remote Interoperability Internet Gateway315
												.get(i);
										Schema importedSchema = schImpl
												.getReferencedSchema();

										if (importedSchema.getDocumentBaseURI() != null
												&& previousXSDURI != null) {
											if (!importedSchema
													.getDocumentBaseURI()
													.equals(previousXSDURI)) {
												Node n1 = getNodeOfType_ITERATIVE(
														nameOfNode,
														importedSchema,
														importedOrIncludedSchema
																.getDocumentBaseURI(),
														theSchemaOfTheWSDL);
												if (n1 != null)
													return n1;
											} else {
												// -System.out.println("AAAAAAAAAAAAAAAAAAA!~!!!!!!!!!!!!!!!!");
											}
										} else if (importedSchema
												.getDocumentBaseURI() != null
												&& importedOrIncludedSchema
														.getDocumentBaseURI() != null) {
											Node n1 = getNodeOfType_ITERATIVE(
													nameOfNode,
													importedSchema,
													importedOrIncludedSchema
															.getDocumentBaseURI(),
													theSchemaOfTheWSDL);
											if (n1 != null)
												return n1;
										}
									}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationInput.javauniversAAL Remote Interoperability Internet Gateway76
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationOutput.javauniversAAL Remote Interoperability Internet Gateway66
		newWSOutput.setHasNativeOrComplexObjects(vec);
		vec = new Vector();
		for (int i = 0; i < this.getHasSoapHeaders().size(); i++) {
			if (this.getHasSoapHeaders().get(i) instanceof NativeObject) {
				vec.add(((NativeObject) this.getHasSoapHeaders().get(i))
						.cloneTheNO());
			} else if (this.getHasSoapHeaders().get(i) instanceof ComplexObject) {
				vec.add(((ComplexObject) this.getHasSoapHeaders().get(i))
						.cloneTheCO());
			}
		}
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway76
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway184
				co.setHasParent(this);
				/*
				 * if(co.getHasComplexObjects().size()>0&&ITIWSDLParser.
				 * checkIfCOhasAlreadyBeenCloned(co.getObjectType())){
				 * System.out
				 * .println("EXT:  "+co.getObjectName().getLocalPart()+
				 * "\t"+co.getObjectType().getLocalPart()); }
				 */
				// if(ITIWSDLParser.checkIfCOhasAlreadyBeenCloned(co.getObjectType())||checkIfCOhasParentTheSameCO(co)){
				if (checkIfCOhasParentTheSameCO(co)) {
					ComplexObject co1 = new ComplexObject();
					co1.objectName = new QName(co.objectName.getNamespaceURI(),
							co.objectName.getLocalPart(),
							co.objectName.getPrefix());
					co1.objectType = new QName(co.objectType.getNamespaceURI(),
							co.objectType.getLocalPart(),
							co.objectType.getPrefix());
					co1.hasComplexObjects = new Vector();
					co1.hasNativeObjects = new Vector();
					co1.hasExtendedObjects = new Vector();

					co1.isInput = co.isInput;
					co1.hasParent = co.hasParent;
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway97
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway927
                                    (org.apache.ws.commons.schema.XmlSchemaGroupRef) newObj1, co1, theDefinition);

                            if (co1 != null) {
                                for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                    co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                }
                                for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                    co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                }
                            } else {
                                System.out.println();
                            }
                            System.out.println();
                        } else if (newObj1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSequence")) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway97
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2030
                                                (org.apache.ws.commons.schema.XmlSchemaGroupRef) obj1, co1, theDefinition);

                                        if (co1 != null) {
                                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                            }
                                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                            }
                                        } else {
                                            System.out.println();
                                        }
                                        System.out.println();
                                    } else {
FileProjectLine
org\universAAL\middleware\connectors\deploy\karaf\model\ConfigFile.javauniversAAL Middleware XSD Schemas54
org\universAAL\middleware\deploymanager\uapp\model\ConfigFile.javauniversAAL Middleware XSD Schemas54
@XmlType(name = "configFile", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class ConfigFile implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "finalname", required = true)
    protected String finalname;

    /**
     * Gets the value of the value property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the finalname property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getFinalname() {
        return finalname;
    }

    /**
     * Sets the value of the finalname property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFinalname(String value) {
        this.finalname = value;
    }

    public boolean isSetFinalname() {
        return (this.finalname!= null);
    }

}
FileProjectLine
org\universAAL\middleware\connectors\deploy\karaf\model\Config.javauniversAAL Middleware XSD Schemas54
org\universAAL\middleware\deploymanager\uapp\model\Config.javauniversAAL Middleware XSD Schemas55
@XmlType(name = "config", namespace = "http://karaf.apache.org/xmlns/features/v1.0.0", propOrder = {
    "value"
})
public class Config implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "name", required = true)
    protected String name;

    /**
     * Gets the value of the value property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the name property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\ConfigFile.javauniversAAL Middleware Interfaces (Core)56
org\universAAL\middleware\connectors\deploy\karaf\model\ConfigFile.javauniversAAL Middleware XSD Schemas54
@XmlType(name = "configFile", propOrder = {
    "value"
})
public class ConfigFile implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "finalname", required = true)
    protected String finalname;

    /**
     * Gets the value of the value property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the finalname property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getFinalname() {
        return finalname;
    }

    /**
     * Sets the value of the finalname property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setFinalname(String value) {
        this.finalname = value;
    }

    public boolean isSetFinalname() {
        return (this.finalname!= null);
    }

}
FileProjectLine
org\universAAL\middleware\interfaces\mpa\model\Config.javauniversAAL Middleware Interfaces (Core)56
org\universAAL\middleware\connectors\deploy\karaf\model\Config.javauniversAAL Middleware XSD Schemas54
@XmlType(name = "config", propOrder = {
    "value"
})
public class Config implements Serializable
{

    private final static long serialVersionUID = 12343L;
    @XmlValue
    protected String value;
    @XmlAttribute(name = "name", required = true)
    protected String name;

    /**
     * Gets the value of the value property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getValue() {
        return value;
    }

    /**
     * Sets the value of the value property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setValue(String value) {
        this.value = value;
    }

    public boolean isSetValue() {
        return (this.value!= null);
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value;
    }

    public boolean isSetName() {
        return (this.name!= null);
    }

}
FileProjectLine
org\universAAL\ui\dm\dialogManagement\DialogPriorityQueue.javauniversAAL UI Dialog Manager 2.0129
org\universAAL\ui\dm\dialogManagement\DialogPriorityQueueVerbosity.javauniversAAL UI Dialog Manager 2.0160
	    log("Unsuspending: " + r.getDialogID());
	}
    }

    /** {@inheritDoc} */
    public UIRequest get(String UIReqID) {
	UIRequest r = suspendedSet.get(UIReqID);
	if (r != null) {
	    return r;
	} else {
	    return getActive(UIReqID);
	}
    }

    /**
     * scan the active set for a {@link UIRequest} that has an ID corresponding
     * to UIReqID
     * 
     * @param UIReqID
     *            The ID to look for
     * @return the {@link UIRequest} with UIReqID id, or null if not found
     */
    private UIRequest getActive(String UIReqID) {
	Iterator<UIRequest> i = activeSet.iterator();
	UIRequest req = null;
	boolean found = false;
	while (!found && i.hasNext()) {
	    req = (UIRequest) i.next();
	    found = req.getDialogID().equals(UIReqID);
	}
	if (found) {
	    return req;
	} else {
	    return null;
	}
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway645
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway2234
														.item(k)
														.getAttributes();
												// //-System.out.println("WWW GAMWTOOOO...... TYPES...");
												String attName = "";
												String attType = "";
												String additionalInfo = "";

												// EDW EINAI OOOOLH H MAGKIA MOU
												// ME TA TYPES!!!!!!!!!!!!!!!
												// WWW GAMWTOOOO
												// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW!!!!!!!!!!!!!!!!!!!!!!!!
												// WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
												// WWWWW
												// W
												// W
												for (int k1 = 0; k1 < attributesOfType
														.getLength(); k1++) {
													Node att = attributesOfType
															.item(k1);
													if (att.getNodeName()
															.equalsIgnoreCase(
																	"name")) {
														// //-System.out.println("\tName: "+att.getNodeValue());
														attName = att
																.getNodeValue();
													} else if (att
															.getNodeName()
															.equalsIgnoreCase(
																	"type")) {
														// //-System.out.println("\tType: "+att.getNodeValue());
														attType = att
																.getNodeValue();
													} else {
														// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
														additionalInfo += att
																.getNodeName()
																+ ":"
																+ att.getNodeValue()
																+ "   ";
													}
												}

												// -ta.append("\n\t\t\t\t-"+attName+" ["+attType+"]  "+additionalInfo);

												// Find the Type of the
												// attName...
												// ITERATIVE PROCESS.........
												if (attType
														.startsWith(nativeTypePrefix)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2125
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2377
												if (attType
														.startsWith(MitsosParser.nativeTypePrefix)) {
													// EINAI NATIVE TYPE
													// //-ta.append("\n");

													// Create new native type
													// kai valto mesa sta INPUTS
													// i OUTPUTS tou current
													// Operation
													if (operationInputs != null) {
														NativeObject no = new NativeObject();
														no.setObjectName(new QName(
																attName));
														no.setObjectType(new QName(
																attType));
														no.setAdditionalInfo(additionalInfo);
														operationInputs
																.getHasNativeOrComplexObjects()
																.add(no);
													} else if (operationOutputs != null) {
														NativeObject no = new NativeObject();
														no.setObjectName(new QName(
																attName));
														no.setObjectType(new QName(
																attType));
														no.setAdditionalInfo(additionalInfo);
														operationOutputs
																.getHasNativeOrComplexObjects()
																.add(no);
													}
												} else if (attType
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway253
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway575
							NativeObject no1 = new NativeObject();
							no1.setObjectName(new QName(containedElement
									.getQName().getNamespaceURI(),
									containedElement
											.getQName()
											.getLocalPart()
											.substring(
													containedElement.getQName()
															.getLocalPart()
															.indexOf(">") + 1),
									containedElement.getQName().getPrefix()));
							System.out.println(containedElement.getType()
									.getQName().getLocalPart());// Type tou CO1
							// no1.setObjectType(containedElement.getType().getQName().getLocalPart());
							System.out.println(containedElement.getType()
									.isBaseType());// apo dw tha katalavw an
													// einai nativeObject i
													// Complex
							// no1.setNamespaceURI(containedElement.getType().getQName().getNamespaceURI());
							no1.setObjectType(containedElement.getType()
									.getQName());
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1199
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway854
            } else {
                //EINAI XmlSchemaAny                
                try {
                    org.apache.ws.commons.schema.XmlSchemaAny newSimpleOrComplexObjectElement =
                            (org.apache.ws.commons.schema.XmlSchemaAny) newObj1;
                    ComplexObject co1 = new ComplexObject();
                    co1.setObjectName(new QName("any"));
                    co1.setObjectType(new QName("Object"));

                    if (newSimpleOrComplexObjectElement.getMinOccurs() == 0) {
                        co1.setIsOptional(true);
                    }

                    if (newSimpleOrComplexObjectElement.getMaxOccurs() > 1) {
                        //Array Type
                        ComplexObject arrayCO = new ComplexObject();
                        arrayCO.setObjectName(co1.getObjectName());
                        //arrayCO.setObjectType(new QName(co1.getObjectType().getLocalPart()+"[]"));
                        arrayCO.setObjectType(new QName(co1.getObjectType().getNamespaceURI(),
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2083
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway1205
											ComplexObject co1 = new ComplexObject();
											co1.setObjectName(new QName("any"));
											co1.setObjectType(new QName(
													"Object"));

											if (newSimpleOrComplexObjectElement
													.getMinOccurs() == 0) {
												co1.setIsOptional(true);
											}

											if (newSimpleOrComplexObjectElement
													.getMaxOccurs() > 1) {
												// Array Type
												ComplexObject arrayCO = new ComplexObject();
												arrayCO.setObjectName(co1
														.getObjectName());
												arrayCO.setObjectType(new QName(
														co1.getObjectType()
																+ "[]"));
												arrayCO.setIsArrayType(true);
												arrayCO.getHasComplexObjects()
														.add(co1);
												arrayCO.setIsOptional(co1
														.isIsOptional());
FileProjectLine
org\universAAL\context\sesame\sail\CardinalityNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite286
org\universAAL\context\sesame\sail\CardinalityNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite590
			ValueStore valueStore = nativeStore.getValueStore();

			int subjID = NativeValue.UNKNOWN_ID;
			if (subj != null) {
				subjID = valueStore.getID(subj);
				if (subjID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}
			int predID = NativeValue.UNKNOWN_ID;
			if (pred != null) {
				predID = valueStore.getID(pred);
				if (predID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}
			int objID = NativeValue.UNKNOWN_ID;
			if (obj != null) {
				objID = valueStore.getID(obj);
				if (objID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}

			List<Integer> contextIDList = new ArrayList<Integer>(contexts.length);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway475
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2790
											} else {
												if (MitsosParser.nativeTypePrefix != null
														&& attType
																.startsWith(MitsosParser.nativeTypePrefix)) {
													NativeObject newNativeObject = new NativeObject();
													newNativeObject
															.setObjectName(new QName(
																	attName));
													newNativeObject
															.setAdditionalInfo(additionalInfo);
													newNativeObject
															.setObjectType(new QName(
																	attType));
													co.getHasNativeObjects()
															.add(newNativeObject);
												} else {
													if (attType.contains(":")) {
														String key1 = attType
																.substring(
																		0,
																		attType.indexOf(":"));
														String xsdNamespace = (String) MitsosParser.namespaces
																.get(key1);
														if (xsdNamespace != null) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway927
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway2030
                                                (org.apache.ws.commons.schema.XmlSchemaGroupRef) obj1, co1, theDefinition);

                                        if (co1 != null) {
                                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                            }
                                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                            }
                                        } else {
                                            System.out.println();
                                        }
                                        System.out.println();
                                    } else {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway534
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway720
                                            if (xmlSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                                                NativeObject no1 = new NativeObject();

                                                if (newSimpleOrComplexObjectElement.getQName() != null) {
                                                    no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                                                } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                                    no1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                                                } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                                    no1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                                                } else {
                                                    no1.setObjectName(new QName("UNDEFINED variable name"));
                                                    theDefinition.getContainingErrors().add("WARNING @line ~2248... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway347
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway927
                                    (org.apache.ws.commons.schema.XmlSchemaGroupRef) newObj1, co1, theDefinition);

                            if (co1 != null) {
                                for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                    co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                                }
                                for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                    co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                                }
                            } else {
                                System.out.println();
                            }
                            System.out.println();
                        } else if (newObj1.getClass().getName().contains("org.apache.ws.commons.schema.XmlSchemaSequence")) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2828
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2985
											.getClass()
											.toString()
											.contains(
													"org.apache.ws.commons.schema.XmlSchemaComplexType")) {
										ComplexObject co1 = new ComplexObject();
										if (elem1.getQName() != null) {
											co1.setObjectName(elem1.getQName());// Panta
																				// prin
																				// apo
																				// ayto
																				// ton
																				// tropo
																				// klisis
																				// prepei
																				// na
																				// exw
																				// dwsei
																				// prwta
																				// to
																				// onoma
																				// tou
																				// co
										} else if (elem1.getRefName() != null) {
											co1.setObjectName(elem1
													.getRefName());
										} else if (elem1.getName() != null) {
											co1.setObjectName(new QName(elem1
													.getName()));
										} else {
											co1.setObjectName(new QName(
													"UNDEFINED variable name"));
											theDefinition
													.getContainingErrors()
													.add("WARNING @line ~1095... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1196
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway577
                        } else if (newSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaComplexType")) {
                            ComplexObject co1 = new ComplexObject();
                            if (newSimpleOrComplexObjectElement.getQName() != null) {
                                co1.setObjectName(newSimpleOrComplexObjectElement.getQName());//Panta prin apo ayto ton tropo klisis prepei na exw dwsei prwta to onoma tou co
                                } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                co1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                            } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                co1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                            } else {
                                co1.setObjectName(new QName("UNDEFINED variable name"));
                                theDefinition.getContainingErrors().add("WARNING @line ~2248... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway612
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway534
                        if (newSchemaType.getClass().toString().contains("org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
                            NativeObject no1 = new NativeObject();
                            if (newSimpleOrComplexObjectElement.getQName() != null) {
                                no1.setObjectName(newSimpleOrComplexObjectElement.getQName());
                            } else if (newSimpleOrComplexObjectElement.getRefName() != null) {
                                no1.setObjectName(newSimpleOrComplexObjectElement.getRefName());
                            } else if (newSimpleOrComplexObjectElement.getName() != null) {
                                no1.setObjectName(new QName(newSimpleOrComplexObjectElement.getName()));
                            } else {
                                no1.setObjectName(new QName("UNDEFINED variable name"));
                                theDefinition.getContainingErrors().add("WARNING @line ~583... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway392
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1585
								.getClass()
								.toString()
								.contains(
										"org.apache.ws.commons.schema.XmlSchemaComplexType")) {
							ComplexObject co1 = new ComplexObject();
							if (newSimpleOrComplexObjectElement.getQName() != null) {
								co1.setObjectName(newSimpleOrComplexObjectElement
										.getQName());
							} else if (newSimpleOrComplexObjectElement
									.getRefName() != null) {
								co1.setObjectName(newSimpleOrComplexObjectElement
										.getRefName());
							} else if (newSimpleOrComplexObjectElement
									.getName() != null) {
								co1.setObjectName(new QName(
										newSimpleOrComplexObjectElement
												.getName()));
							} else {
								co1.setObjectName(new QName(
										"UNDEFINED variable name"));
								theDefinition
										.getContainingErrors()
										.add("WARNING @line ~2740... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway328
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway612
											.getClass()
											.toString()
											.contains(
													"org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
										NativeObject no1 = new NativeObject();

										if (newSimpleOrComplexObjectElement
												.getQName() != null) {
											no1.setObjectName(newSimpleOrComplexObjectElement
													.getQName());
										} else if (newSimpleOrComplexObjectElement
												.getRefName() != null) {
											no1.setObjectName(newSimpleOrComplexObjectElement
													.getRefName());
										} else if (newSimpleOrComplexObjectElement
												.getName() != null) {
											no1.setObjectName(new QName(
													newSimpleOrComplexObjectElement
															.getName()));
										} else {
											no1.setObjectName(new QName(
													"UNDEFINED variable name"));
											theDefinition
													.getContainingErrors()
													.add("WARNING @line ~2248... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway97
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1220
                                (org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj, co1, theDefinition);

                        if (co1 != null) {
                            for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
                                co.getHasComplexObjects().add(co1.getHasComplexObjects().get(i));
                            }
                            for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
                                co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
                            }
                        } else {
                            System.out.println();
                        }
                        System.out.println();
                    } else {
FileProjectLine
org\universAAL\ui\gui\swing\bluesteelLAF\GroupLAF.javauniversAAL UI Handler Swing Look and Feel Bluesteel203
org\universAAL\ui\handler\gui\swing\classic\GroupLAF.javauniversAAL UI Handler Swing Look and Feel Classic99
		    layout = new FlowLayout();
		}
		if (r.equals(HorizontalAlignment.left)) {
		    alignment = FlowLayout.LEFT;
		}
		if (r.equals(HorizontalAlignment.center)) {
		    alignment = FlowLayout.CENTER;
		}
		if (r.equals(HorizontalAlignment.right)) {
		    alignment = FlowLayout.RIGHT;
		}
		if (r.equals(VerticalAlignment.top)) {
		    alignment = VerticalFlowLayout.TOP;
		}
		if (r.equals(VerticalAlignment.middle)) {
		    alignment = VerticalFlowLayout.CENTER;
		}
		if (r.equals(VerticalAlignment.bottom)) {
		    alignment = VerticalFlowLayout.BOTTOM;
		}
	    }
	    if (layout instanceof FlowLayout) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationInput.javauniversAAL Remote Interoperability Internet Gateway65
org\universAAL\ri\wsdlToolkit\ioApi\WSOperationOutput.javauniversAAL Remote Interoperability Internet Gateway55
		WSOperationOutput newWSOutput = new WSOperationOutput();
		Vector vec = new Vector();
		for (int i = 0; i < this.getHasNativeOrComplexObjects().size(); i++) {
			if (this.getHasNativeOrComplexObjects().get(i) instanceof NativeObject) {
				vec.add(((NativeObject) this.getHasNativeOrComplexObjects()
						.get(i)).cloneTheNO());
			} else if (this.getHasNativeOrComplexObjects().get(i) instanceof ComplexObject) {
				vec.add(((ComplexObject) this.getHasNativeOrComplexObjects()
						.get(i)).cloneTheCO());
			}
		}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1689
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2932
												.getMaxOccurs() > 1)
												|| (no1.getAdditionalInfo() != null && no1
														.getAdditionalInfo()
														.contains("isListType"))) {
											ComplexObject noArrayCO = new ComplexObject();
											noArrayCO.setObjectName(no1
													.getObjectName());
											noArrayCO.setObjectType(new QName(
													no1.getObjectType()
															.getNamespaceURI(),
													no1.getObjectType()
															.getLocalPart()
															+ "[]", no1
															.getObjectType()
															.getPrefix()));
											noArrayCO.setIsArrayType(true);
											noArrayCO.getHasNativeObjects()
													.add(no1);
											noArrayCO.setIsOptional(no1
													.isIsOptional());
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10407APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation26
org\universAAL\lddi\lib\ieeex73std\testchannel20601\Aarq10417APDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation26
	public Aarq10415APDUtest(){
		
		apdu = new byte[]{
				(byte)0xE2, (byte)0x00, 						//choice APDU
				(byte)0x00, (byte)0x32, 						//length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // association version
				(byte)0x00, (byte)0x01, (byte)0x00, (byte)0x2A, // data protocol list = 1, length 42
				(byte)0x50, (byte)0x79,  						// data protocol id 20601
				(byte)0x00, (byte)0x26,							// data proto info length
				(byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00, // protocol version
				(byte)0x80, (byte)0x00, 						// encoding rules (MDER)
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\measurements\Measurement.javauniversAAL LDDI Library IEEE x073 standard implementation299
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\DeviceSpecialization.javauniversAAL LDDI Library IEEE x073 standard implementation366
				device_year = ASNUtils.BCDtoInt(abstime.getCentury().getValue())*100+ASNUtils.BCDtoInt(abstime.getYear().getValue());
				device_month = ASNUtils.BCDtoInt(abstime.getMonth().getValue());
				device_day = ASNUtils.BCDtoInt(abstime.getDay().getValue());
				
				device_hour = ASNUtils.BCDtoInt(abstime.getHour().getValue());
				device_min = ASNUtils.BCDtoInt(abstime.getMinute().getValue());
				device_secs = ASNUtils.BCDtoInt(abstime.getSecond().getValue());
FileProjectLine
org\universAAL\context\space\serv\SCaller.javaAAL Space Server298
org\universAAL\context\space\serv\SCaller.javaAAL Space Server312
    public Resource getProfOfSpace(Resource input) {
	String resultx = getResult(defaultCaller
		.call(getDoSPARQLRequest(Queries.GETPRFOFPROFILABLEXTRA
			.replace(Queries.ARG1, input.getURI()))));
	Object objx = Activator.parser.deserialize(resultx);
	if (objx == null)
	    return null;
	String result = getResult(defaultCaller
		.call(getDoSPARQLRequest(Queries.GETPRFOFPROFILABLE.replace(
			Queries.ARG1, input.getURI()))));
	String uri = ((Resource) objx).getURI();
	return (Resource) Activator.parser.deserialize(result, uri);
    }
FileProjectLine
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester500
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester523
 	req.addValueFilter(new String[]{ProfilingService.PROP_CONTROLS,Profilable.PROP_HAS_PROFILE}, profile);
	req.addRequiredOutput(OUTPUT_GETSUBPROFILES, new String[]{ProfilingService.PROP_CONTROLS,Profilable.PROP_HAS_PROFILE,Profile.PROP_HAS_SUB_PROFILE});
	ServiceResponse resp=caller.call(req);
	if (resp.getCallStatus() == CallStatus.succeeded) {
	    Object out=getReturnValue(resp.getOutputs(),OUTPUT_GETSUBPROFILES);
	    if (out != null) {
		log.debug(out.toString());
		return out.toString();
	    } else {
		log.debug("NOTHING!");
		return "nothing";
	    }
	}else{
	    return resp.getCallStatus().name();
	}
    }

    //:::::::::::::OTHER ADDS:::::::::::::::::
    private String addProfile(User profilable, UserProfile profile) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2702
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway3198
																			.item(k51);
																	if (att.getNodeName()
																			.equalsIgnoreCase(
																					"name")) {
																		// //-System.out.println("\tName: "+att.getNodeValue());
																		attName = att
																				.getNodeValue();
																	} else if (att
																			.getNodeName()
																			.equalsIgnoreCase(
																					"type")) {
																		// //-System.out.println("\tType: "+att.getNodeValue());
																		attType = att
																				.getNodeValue();
																	} else {
																		// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
																		additionalInfo += att
																				.getNodeName()
																				+ ":"
																				+ att.getNodeValue()
																				+ "   ";
																	}
																}

																String prefix = "\n\t\t\t\t";

																if (!fromLiteral) {
																	prefix += "\t";
																}

																if (iterNumber > 0) {
																	for (int ff1 = 0; ff1 < iterNumber; ff1++) {
																		prefix += "\t";
																	}
																}

																// -ta.append(prefix+"-"+attName+" ["+attType+"]  "+additionalInfo);

																// Find the Type
																// of the
																// attName...
																// ITERATIVE
																// PROCESS.........
																if (attType
																		.startsWith(nativeTypePrefix)) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2895
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway3210
												.contains("XmlSchemaSimpleType")) {
											NativeObject no1 = new NativeObject();
											// no1.objectName =
											// "elementOfArray";
											no1.setObjectType(elem1
													.getSchemaTypeName());
											// no1.setObjectName(elem1.getQName());
											if (elem1.getQName() != null) {
												no1.setObjectName(elem1
														.getQName());
											} else if (elem1.getRefName() != null) {
												no1.setObjectName(elem1
														.getRefName());
											} else if (elem1.getName() != null) {
												no1.setObjectName(new QName(
														elem1.getName()));
											} else {
												no1.setObjectName(new QName(
														"UNDEFINED variable name"));
												theDefinition
														.getContainingErrors()
														.add("WARNING @line ~1208... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway137
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway157
				.tryToFindAndParseAttributeGroupForSpecificObject(
						theDefinition, service, xsgr.getRefName());
		if (co1 != null) {
			for (int i = 0; i < co1.getHasComplexObjects().size(); i++) {
				co.getHasComplexObjects()
						.add(co1.getHasComplexObjects().get(i));
			}
			for (int i = 0; i < co1.getHasNativeObjects().size(); i++) {
				co.getHasNativeObjects().add(co1.getHasNativeObjects().get(i));
			}
		}
		System.out.println();

	}

	public static void parseXmlSchemaElement(AxisService service,
FileProjectLine
org\universAAL\middleware\deploymanager\uapp\model\AalUapp.javauniversAAL Middleware XSD Schemas1223
org\universAAL\middleware\deploymanager\uapp\model\Part.javauniversAAL Middleware XSD Schemas353
        implements Serializable
    {

        private final static long serialVersionUID = 12343L;
        @XmlElement(required = true)
        protected List<CapabilityType> capability;

        /**
         * Gets the value of the capability property.
         *
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the capability property.
         *
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getCapability().add(newItem);
         * </pre>
         *
         *
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link CapabilityType }
         *
         *
         */
        public List<CapabilityType> getCapability() {
            if (capability == null) {
                capability = new ArrayList<CapabilityType>();
            }
            return this.capability;
        }

        public boolean isSetCapability() {
            return ((this.capability!= null)&&(!this.capability.isEmpty()));
        }

        public void unsetCapability() {
            this.capability = null;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     *
     * <p>The following schema fragment specifies the expected content contained within this class.
     *
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="requirement" type="{http://www.universaal.org/aal-uapp/v1.0.2}reqType" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)730
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway626
	} // end catch
	finally {
	    try {
		oos.close();
	    } catch (Exception e) {
	    }
	    try {
		gzos.close();
	    } catch (Exception e) {
	    }
	    try {
		b64os.close();
	    } catch (Exception e) {
	    }
	    try {
		baos.close();
	    } catch (Exception e) {
	    }
	} // end finally

	// Return value according to relevant encoding.
	try {
	    return new String(baos.toByteArray(), PREFERRED_ENCODING);
	} // end try
	catch (java.io.UnsupportedEncodingException uue) {
	    return new String(baos.toByteArray());
	} // end catch

    } // end encode

    /**
     * Encodes a byte array into Base64 notation. Does not GZip-compress data.
     * 
     * @param source
     *            The data to convert
     * @since 1.4
     */
    public static String encodeBytes(byte[] source) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p20601\AttributeIdList.javauniversAAL LDDI Library IEEE x073 standard implementation47
org\universAAL\lddi\lib\ieeex73std\x73\p20601\MetricIdList.javauniversAAL LDDI Library IEEE x073 standard implementation47
            public MetricIdList ( java.util.Collection<OID_Type> value ) {
                setValue(value);
            }
                        
            public void setValue(java.util.Collection<OID_Type> value) {
                this.value = value;
            }
            
            public java.util.Collection<OID_Type> getValue() {
                return this.value;
            }            
            
            public void initValue() {
                setValue(new java.util.LinkedList<OID_Type>()); 
            }
            
            public void add(OID_Type item) {
                value.add(item);
            }

	    public void initWithDefaults() {
	    }

        private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(MetricIdList.class);
FileProjectLine
org\universAAL\samples\lighting\client\LightClient.javauniversAAL Samples Lighting Client (OSGi)163
org\universAAL\ri\gateway\support\android\LightClient.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node164
				public void actionPerformed(final ActionEvent evt) {
					ListModel jList1Model = getLampsListModel();
					jList1.setModel(jList1Model);
				}
			};
		}
		return GetLamps;
	}



	public LightClient() {
		super();	
		initGUI();
		start();
	}
	
	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setLayout(null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	/**
	* Auto-generated method for setting the popup menu for a component
	*/
	private void setComponentPopupMenu(final java.awt.Component parent, final javax.swing.JPopupMenu menu) {
		parent.addMouseListener(new java.awt.event.MouseAdapter() {
FileProjectLine
org\universAAL\lddi\samples\activityhub\client\ActivityHubClient.javauniversAAL Samples Activity Hub Client89
org\universAAL\lddi\samples\device\client\DeviceClient.javauniversAAL Samples Device Client90
	public DeviceClient(Activator parent) {
		super();
		this.myParent = parent; 
		initGUI();
		start();
	}

	private void initGUI() {
		try {
			setPreferredSize(new Dimension(1000, 800));
			this.setLayout(null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	// create the GUI 
	public void start(){

		frame = new JFrame();
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); // doesn't stop the whole framework on close
		frame.pack();
		frame.setSize(1000, 800);
		frame.setVisible(true);
		frame.getContentPane().setLayout(null);
		frame.setTitle("Device Client Example");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway807
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1551
									}

								} else {
									System.out.println("XA! W!");
									ComplexObject co123 = new ComplexObject();
									if (newSimpleOrComplexObjectElement
											.getQName() != null) {
										co123.setObjectName(newSimpleOrComplexObjectElement
												.getQName());
									} else if (newSimpleOrComplexObjectElement
											.getRefName() != null) {
										co123.setObjectName(newSimpleOrComplexObjectElement
												.getRefName());
									} else if (newSimpleOrComplexObjectElement
											.getName() != null) {
										co123.setObjectName(new QName(
												newSimpleOrComplexObjectElement
														.getName()));
									} else {
										co123.setObjectName(new QName(
												"UNDEFINED variable name!"));
										theDefinition
												.getContainingErrors()
												.add("ERROR @line ~1695... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\middleware\owl\AllValuesFromRestriction.javauniversAAL Middleware Data Representation (Core)96
org\universAAL\middleware\owl\SomeValuesFromRestriction.javauniversAAL Middleware Data Representation (Core)96
	return true;
    }

    public boolean isDisjointWith(TypeExpression other, HashMap context,
	    int ttl, List<MatchLogEntry> log) {
	ttl = checkTTL(ttl);
	if (!(other instanceof PropertyRestriction))
	    return other.isDisjointWith(this, context, ttl, log);

	PropertyRestriction r = (PropertyRestriction) other;
	Object o = getOnProperty();
	if (o == null || !o.equals(r.getOnProperty()))
	    return false;

	HashMap cloned = (context == null) ? null : (HashMap) context.clone();

	TypeExpression myValues = (TypeExpression) getProperty(PROP_OWL_SOME_VALUES_FROM);
FileProjectLine
org\universAAL\support\utils\context\Pattern.javauniversAAL Support Utilities API164
org\universAAL\support\utils\context\Pattern.javauniversAAL Support Utilities API210
    public Pattern(ManagedIndividual subj, String predicate, Object obj){
	super();
	if (subj != null) {
	    String uri = ManagedIndividual.getTypeURI(subj);
	    if (uri != null && Resource.isQualifiedName(uri)) {
		this.addRestriction(MergedRestriction
			.getFixedValueRestriction(
				ContextEvent.PROP_RDF_SUBJECT, subj));
	    } else {
		System.out.println(MSG_INST);
	    }
	}
	if (predicate != null) {
	    if (Resource.isQualifiedName(predicate)) {
		this.addRestriction(MergedRestriction
			.getFixedValueRestriction(ContextEvent.PROP_RDF_PREDICATE,
				predicate));
	    } else {
		System.out.println(MSG_PRED);
	    }
	}
	if (obj != null) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation427
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation455
		Measure10417PrstAPDUtest masurement = new Measure10417PrstAPDUtest();

		try {
			
			byte[] toDecode = masurement.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
	}
	

	 public void waiting (int n){
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation319
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation346
		Aarq10407APDUtest aarq = new Aarq10407APDUtest();
		try {
			
			byte[] toDecode = aarq.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
		
	}


	public void decodeRLRQ(APDUProcessor rmp) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation238
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation265
		ExtendedMeasure10408APDUtest extmeasure = new ExtendedMeasure10408APDUtest();
		try {
			
			byte[] toDecode = extmeasure.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
		
	}
	
	public void decode10417AARQ(APDUProcessor rmp) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation156
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation212
		ExtendedCfg10408 cfg = new ExtendedCfg10408();
		try {
			
			byte[] toDecode = cfg.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
	}
	
	public void decodeExtended10415Measure(APDUProcessor rmp) {
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation100
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation346
		Aarq10417APDUtest aarq = new Aarq10417APDUtest();
		try {
			
			byte[] toDecode = aarq.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
		
	}
	
	public void decode10407AARQ(APDUProcessor rmp) {
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\FormLAF.javauniversAAL UI Handler Swing Look and Feel Classic252
org\universAAL\ui\handler\gui\swing\defaultLookAndFeel\FormLAF.javauniversAAL UI Handler Swing185
			JScrollPane sub = getSubmitPanelScroll(0);
			sub.getAccessibleContext().setAccessibleName(SUB_NAME);
			JScrollPane sys = getSystemPanelScroll();
			sys.getAccessibleContext().setAccessibleName(SYS_NAME);
			JPanel subpanel = new JPanel(new BorderLayout());
			subpanel.add(getIOPanelScroll(), BorderLayout.CENTER);
			for (int i = super.getSubdialogLevel(); i > 1; i--) {
				subpanel.add(getSubmitPanel(i), BorderLayout.EAST);
				JPanel tempanel = new JPanel(new BorderLayout());
				tempanel.add(subpanel, BorderLayout.CENTER);
				subpanel = tempanel;
			}
			frame.add(subpanel, BorderLayout.CENTER);
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2331
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2693
													.item(k).getAttributes();
											// //-System.out.println("WWW GAMWTOOOO...... TYPES... ITERATIVE ");//
											// +typeName +" "+n.getNodeName() );
											String attName = "";
											String attType = "";
											String additionalInfo = "";
											for (int k1 = 0; k1 < attributesOfType
													.getLength(); k1++) {
												Node att = attributesOfType
														.item(k1);
												if (att.getNodeName()
														.equalsIgnoreCase(
																"name")) {
													// //-System.out.println("\tName: "+att.getNodeValue());
													attName = att
															.getNodeValue();
												} else if (att.getNodeName()
														.equalsIgnoreCase(
																"type")) {
													// //-System.out.println("\tType: "+att.getNodeValue());
													attType = att
															.getNodeValue();
												} else {
													// //-System.out.println("\t"+att.getNodeName()+": "+att.getNodeValue());
													additionalInfo += att
															.getNodeName()
															+ ":"
															+ att.getNodeValue()
															+ "   ";
												}
											}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway176
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1304
					System.out.println("\t\t\t\t\t"
							+ newSimpleOrComplexObjectElement.getName()
							+ "   "
							+ newSimpleOrComplexObjectElement
									.getSchemaTypeName());

					if (newSimpleOrComplexObjectElement.getSchemaType() != null) {
						System.out.println("\t\t\t\t\t\t#"
								+ newSimpleOrComplexObjectElement
										.getSchemaType().getClass().toString()
								+ "#");

						boolean typeParsed = false;
						if (newSimpleOrComplexObjectElement
								.getSchemaType()
								.getClass()
								.toString()
								.contains(
										"org.apache.ws.commons.schema.XmlSchemaSimpleType")) {
							NativeObject no1 = new NativeObject();
							ComplexObject unionCO = SimpleTypesParser
									.parseSimpleType(
											newSimpleOrComplexObjectElement,
											null, no1, theDefinition, service);
							if (newSimpleOrComplexObjectElement.getMinOccurs() == 0
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10407BloodPressure.javauniversAAL LDDI Library IEEE x073 standard implementation217
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10417Glucometer.javauniversAAL LDDI Library IEEE x073 standard implementation96
		glucometerattributes.add(attr);
		
		
			//Attribute map
				// - MDC_ATTR_NU_VAL_OBS_BASIC (the value of mass) size = 2 (SFloat-Type)
				// - MDC_ATTR_TIME_STAMP_ABS (time of measurement) size = 8 (8xINT_U8)
		
		AttrValMap attrmap = new AttrValMap();
		attrmap.initValue();
		
		AttrValMapEntry entry1 = new AttrValMapEntry();
		OID_Type entry1_oid = new OID_Type();
		entry1_oid.setValue(new INT_U16(NomenclatureCodes.MDC_ATTR_NU_VAL_OBS_BASIC));
		entry1.setAttribute_id(entry1_oid);
		entry1.setAttribute_len(new INT_U16(2));
		
		AttrValMapEntry entry2 = new AttrValMapEntry();
		OID_Type entry2_oid = new OID_Type();
		entry2_oid.setValue(new INT_U16(NomenclatureCodes.MDC_ATTR_TIME_STAMP_ABS));
		entry2.setAttribute_id(entry2_oid);
		entry2.setAttribute_len(new INT_U16(8));
		
		attrmap.add(entry1);
		attrmap.add(entry2);
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\ExtendedCfg10404.javauniversAAL LDDI Library IEEE x073 standard implementation49
org\universAAL\lddi\lib\ieeex73std\testchannel20601\ExtendedCfg10404.javauniversAAL LDDI Library IEEE x073 standard implementation110
				(byte)0x00, (byte)0x30,							// attributes.length = 48
				
				//8
				(byte)0x09, (byte)0x2F,							//attribute-id = MDC_ATTR_ID_TYPE
				(byte)0x00, (byte)0x04, 						// attribute-value.length = 4
				(byte)0x00, (byte)0x02,	(byte)0x4B, (byte)0xB8, //MDC_PART_SCADA | MDC_PULS_OXIM_SAT_O2
				
				//6
				(byte)0x0A, (byte)0x46, 						// attribute-id = MDC_ATTR_METRIC_SPEC_SMALL
				(byte)0x00, (byte)0x02,							// attribute-value.length = 2
				(byte)0x40, (byte)0xC0,							//avail-stored-data, acc-manager-init, acc-agent-init, measured

				//6
				(byte)0x09, (byte)0x96, 						// attribute-id = MDC_ATTR_UNIT_CODE
				(byte)0x00, (byte)0x02,							// attribute-value.length = 2
				(byte)0x02, (byte)0x20,							//MDC_DIM_PERCENT
				
				//12
				(byte)0x0A, (byte)0x61, 						// attribute-id = MDC_ATTR_SUPPLEMENTAL_TYPES
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\manager\apdu\APDUProcessor.javauniversAAL LDDI Library IEEE x073 standard implementation593
org\universAAL\lddi\lib\ieeex73std\manager\apdu\APDUProcessor.javauniversAAL LDDI Library IEEE x073 standard implementation779
		if(choice.isRoiv_cmip_setSelected()){
			if (!checkRoivState()){
				// Manager unassociated. Transmit abrt
				apdu = msg_generator.AbrtApduGenerator(StatusCodes.ABORT_REASON_UNDEFINED);
				return apdu;
			}else{
				// different procedures depending of the state 
				if(statemachine.getChannelState()  == StateMachine20601.CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG){
					// not allowed
					apdu = msg_generator.RoerGenerator(dataapdu.getInvoke_id(), StatusCodes.NO_SUCH_OBJECT_INSTANCE);
					return apdu;				
				}else if(statemachine.getChannelState() == StateMachine20601.CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG){
					
					//The agent only sends event report messages. This should never happen
					apdu = msg_generator.RoerGenerator(dataapdu.getInvoke_id(), StatusCodes.NO_SUCH_ACTION);
					return apdu;					
				}else if (statemachine.getChannelState() == StateMachine20601.CHANNELSTATE_ASSOCIATED_OPERATING){
					// TODO processing of Roiv_cmip_setSelected
					return null; // modify
				}
FileProjectLine
org\universAAL\samples\ctxtbus\SpaceCaller.javauniversAAL Samples Context bus tester504
org\universAAL\samples\ctxtbus\SpaceCaller.javauniversAAL Samples Context bus tester540
 	req.addValueFilter(new String[]{ProfilingService.PROP_CONTROLS}, aalSpace);
	req.addRequiredOutput(OUTPUT, new String[]{ProfilingService.PROP_CONTROLS,Profilable.PROP_HAS_PROFILE});
 	ServiceResponse resp=caller.call(req);
 	if (resp.getCallStatus() == CallStatus.succeeded) {
 	    Object out=getReturnValue(resp.getOutputs(),OUTPUT);
 	    if (out != null) {
 		log.debug(out.toString());
 		return out.toString();
 	    } else {
 		log.debug("NOTHING!");
 		return "nothing";
 	    }
 	}else{
 	    return resp.getCallStatus().name();
 	}
    }

    private String addSpaceprofToSpace(AALSpace aalSpace,
FileProjectLine
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester366
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester475
 	req.addValueFilter(new String[]{ProfilingService.PROP_CONTROLS}, profilable);
	req.addRequiredOutput(OUTPUT_GETPROFILE, new String[]{ProfilingService.PROP_CONTROLS,Profilable.PROP_HAS_PROFILE});
 	ServiceResponse resp=caller.call(req);
 	if (resp.getCallStatus() == CallStatus.succeeded) {
 	    Object out=getReturnValue(resp.getOutputs(),OUTPUT_GETPROFILE);
 	    if (out != null) {
 		log.debug(out.toString());
 		return out.toString();
 	    } else {
 		log.debug("NOTHING!");
 		return "nothing";
 	    }
 	}else{
 	    return resp.getCallStatus().name();
 	}
    }
    
    private String getSubprofiles(User user) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway957
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1538
                                                    ComplexObject unionCO = SimpleTypesParser.parseSimpleType(null, xmlSchemaType1, no1, theDefinition, service);
                                                    if (unionCO != null) {
                                                        if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                            ComplexObject noArrayCO = new ComplexObject();

                                                            noArrayCO.setObjectName(no1.getObjectName());
                                                            noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                            noArrayCO.setIsArrayType(true);
                                                            noArrayCO.getHasComplexObjects().add(unionCO);
                                                            co.getHasComplexObjects().add(noArrayCO);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway746
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1619
											.isNillable())) {
								co1.setIsOptional(true);
							}

							if (newSimpleOrComplexObjectElement != null
									&& newSimpleOrComplexObjectElement
											.getMaxOccurs() > 1) {
								ComplexObject coArrayCO = new ComplexObject();
								coArrayCO.setObjectName(co1.getObjectName());
								// co1.setObjectType(new QName("XA!"));
								coArrayCO.setObjectType(new QName(co1
										.getObjectType().getNamespaceURI(), co1
										.getObjectType().getLocalPart() + "[]",
										co1.getObjectType().getPrefix()));
								coArrayCO.setIsArrayType(true);
								coArrayCO.getHasComplexObjects().add(co1);
								coArrayCO.setIsOptional(co1.isIsOptional());
FileProjectLine
org\universAAL\ri\gateway\eimanager\impl\importing\ImportedProxyManager.javauniversAAL Remote Interoperability AALSpace Gateway175
org\universAAL\ri\gateway\eimanager\impl\ImportManagerImpl.javauniversAAL Remote Interoperability AALSpace Gateway212
		+ serializedProfilesMap.values().size());
	
	Map<String, List<ServiceProfile>> profilesMap = new HashMap<String, List<ServiceProfile>>();
	
	for(String key : serializedProfilesMap.keySet()){
		if (profilesMap.get(key) == null){
			profilesMap.put(key, new ArrayList<ServiceProfile>());
		}
		for(String serializedP : serializedProfilesMap.get(key)){
			profilesMap.get(key).add( Serializer.Instance.unmarshallObject(
		    ServiceProfile.class, serializedP,
		    Activator.class.getClassLoader()));
		}
	}
FileProjectLine
org\universAAL\middleware\owl\AllValuesFromRestriction.javauniversAAL Middleware Data Representation (Core)68
org\universAAL\middleware\owl\SomeValuesFromRestriction.javauniversAAL Middleware Data Representation (Core)65
	return copyTo(new SomeValuesFromRestriction());
    }

    public boolean hasMember(Object member, HashMap context, int ttl,
	    List<MatchLogEntry> log) {
	ttl = checkTTL(ttl);
	if (!(member instanceof Resource))
	    return member == null;

	Object o = ((Resource) member).getProperty(getOnProperty());
	if (o == null)
	    return true;
	if (!(o instanceof List)) {
	    List aux = new ArrayList(1);
	    aux.add(o);
	    o = aux;
	}
	int size = ((List) o).size();
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10415WeighingScale.javauniversAAL LDDI Library IEEE x073 standard implementation78
org\universAAL\lddi\lib\ieeex73std\x73\p104zz\p10417Glucometer.javauniversAAL LDDI Library IEEE x073 standard implementation74
		glucometerattributes.add(attr);
		
		// Metric-Spec-Small: can be mss-avail-intermitent, mss-avail-stored-data, mss-upd-aperiodic, mss-msmt-aperiodic, mss-acc-agent-initiated
		
		MetricSpecSmall mss = new MetricSpecSmall();
		BitString bs = new BitString();
		byte[] bs_byte = new byte[2];
		
		int bs_val = StatusCodes.MSS_AVAIL_INTERMITTENT | StatusCodes.MSS_AVAIL_STORED_DATA | StatusCodes.MSS_UPD_APERIODIC |
					StatusCodes.MSS_MSMT_APERIODIC | StatusCodes.MSS_ACC_AGENT_INITIATED;
		
		bs_byte[1] = (byte)(bs_val & 0x000000FF);
		bs_byte[0] = (byte)(bs_val & 0x0000FF00);
		bs.setValue(bs_byte);
		mss.setValue(new BITS_16(new BitString(bs)));
		attr = new Attribute(NomenclatureCodes.MDC_ATTR_METRIC_SPEC_SMALL, mss);
FileProjectLine
org\universAAL\ui\handler\gui\swing\Renderer.javauniversAAL UI Handler Swing537
org\universAAL\ui\ui\handler\web\html\HTMLUserGenerator.javauniversAAL UI HTML5 Web Handler205
    }
    
    /**
     * Check if impairment is listed as present impairments for the
     * current user and form.
     * @param impariment
     *         the {@link AccessImpairment} to be checked
     * @return
     *         true is impairment is present in the current Dialog Request.
     * @see AccessImpairment
     * @see UIRequest
     */
    public final boolean hasImpairment(AccessImpairment impariment) {
        AccessImpairment[] imp = fm.getCurrentDialog().getImpairments();
        int i = 0;
        while (i < imp.length && imp[i] != impariment) { i++; }
        return i != imp.length;
    }

    /**
     * Get the Language that should be used.
     * @return
     *         the two-letter representation of the language-
     */
    public final String getLanguage() {
        return fm.getCurrentDialog().getDialogLanguage().getDisplayVariant();
    }

    /**
	 * Get the {@link FormManager} being used,
	 * useful to access the current UIResquest
	 * and current form.
	 * @return {@link HTMLUserGenerator#fm}
	 */
	public FormManager getFormManagement() {
	    return fm;
	}

	/**
     * Returns the ModelMapper that automatically assigns this Renderer to the Models.
     * @return
     */
    public final ModelMapper getModelMapper() {
    	return modelMapper;
    }
    
    /**
     * get the {@link Handler} of this {@link HTMLUserGenerator}.
     * @return the {@link Handler}
     */
    public final Handler getHandler() {
    	return handler;
    }
    
    /**
     * Get the location of the user, always a global location.
     * @return
     */
    public final AbsLocation getUserLocation(){
FileProjectLine
org\universAAL\support\utils\context\Pattern.javauniversAAL Support Utilities API127
org\universAAL\support\utils\context\Pattern.javauniversAAL Support Utilities API219
		System.out.println(MSG_INST);
	    }
	}
	if (predicate != null) {
	    if (Resource.isQualifiedName(predicate)) {
		this.addRestriction(MergedRestriction
			.getFixedValueRestriction(ContextEvent.PROP_RDF_PREDICATE,
				predicate));
	    } else {
		System.out.println(MSG_PRED);
	    }
	}
	if (obj != null) {
	    String uri = ManagedIndividual.getTypeURI(obj);
	    if (uri != null && Resource.isQualifiedName(uri)) {
		this.addRestriction(MergedRestriction
			.getFixedValueRestriction(
				ContextEvent.PROP_RDF_OBJECT, obj));
	    } else {
		System.out.println(MSG_INST);
	    }
	}
    }
FileProjectLine
org\universAAL\samples\lighting\server\LightingProvider.javauniversAAL Samples Lighting Server (OSGi)366
org\universAAL\ri\gateway\support\home\LightingProvider1.javauniversAAL Samples AALSpace Gateway Communicator :: Home Node334
			LightingProvider1.class,
			"lampStateChanged",
			new Object[] { "publishing a context event on the state of a lamp!" },
			null);
	// finally create an context event and publish it with the light source
	// as subject and the property that changed as predicate
	cp.publish(new ContextEvent(ls, LightSource.PROP_SOURCE_BRIGHTNESS));
    }

    // Simple use the turnOff method from the ProvidedLightingService
    private ServiceResponse turnOff(String lampURI) {
	try {
	    theServer.turnOff(extractLocalIDfromLampURI(lampURI));
	    return new ServiceResponse(CallStatus.succeeded);
	} catch (Exception e) {
	    return invalidInput;
	}
    }

    // Simple use the turnOn method from the ProvidedLightingService
    private ServiceResponse turnOn(String lampURI) {
	try {
	    theServer.turnOn(extractLocalIDfromLampURI(lampURI));
	    return new ServiceResponse(CallStatus.succeeded);
	} catch (Exception e) {
	    return invalidInput;
	}
    }
}
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\Decoder.javauniversAAL LDDI Library IEEE x073 standard implementation445
org\universAAL\lddi\lib\ieeex73std\org\bn\coders\Encoder.javauniversAAL LDDI Library IEEE x073 standard implementation310
        	if(!elementInfo.getASN1ElementInfo().hasTag()) {
        		ASN1Element fieldInfo = field.getAnnotation(ASN1Element.class);
        		if(fieldInfo!=null && fieldInfo.hasTag()) {
	        		ASN1ElementMetadata elData = new ASN1ElementMetadata(
	        			elementInfo.getASN1ElementInfo().name(),
	        			elementInfo.getASN1ElementInfo().isOptional(),
	        			fieldInfo.hasTag(),
	        			fieldInfo.isImplicitTag(),
	        			fieldInfo.tagClass(),
	        			fieldInfo.tag(),
	        			elementInfo.getASN1ElementInfo().hasDefaultValue()        				
	        		);
	        		elementInfo.setPreparedASN1ElementInfo(elData);
        		};
        	}
        }
FileProjectLine
org\universAAL\samples\context\reasoner\client\gui\QueryCreatorFrame.javauniversAAL Samples Context Situation Reasoner Test Client283
org\universAAL\samples\context\reasoner\client\gui\RuleCreatorFrame.javauniversAAL Samples Context Situation Reasoner Test Client150
	c.weighty = 1.0;
	c.fill = GridBagConstraints.HORIZONTAL;
	Box footerBox = Box.createHorizontalBox();
	this.getContentPane().add(footerBox, c);
	footerBox.add(Box.createHorizontalGlue());
	saveCheck = new JCheckBox("Save permanent: ");
	saveCheck.setSelected(true);
	footerBox.add(saveCheck);
	footerBox.add(Box.createHorizontalStrut(50));
	JButton addButton = new JButton("Add");
	addButton.setPreferredSize(new Dimension(80, 30));
	addButton.addActionListener(new ActionListener() {
	    public void actionPerformed(ActionEvent e) {
FileProjectLine
org\universAAL\samples\servserver\ProvidedService.javauniversAAL Samples Service bus Test Server44
org\universAAL\ri\gateway\support\android\LightingService1.javauniversAAL Samples AALSpace Gateway Communicator :: Android Node49
    public static final String MY_URI = LIGHTING_SERVER_NAMESPACE
	    + "LightingService";

    static final String SERVICE_GET_CONTROLLED_LAMPS = LIGHTING_SERVER_NAMESPACE
	    + "getControlledLamps";
    static final String SERVICE_GET_LAMP_INFO = LIGHTING_SERVER_NAMESPACE
	    + "getLampInfo";
    static final String SERVICE_TURN_OFF = LIGHTING_SERVER_NAMESPACE
	    + "turnOff";
    static final String SERVICE_TURN_ON = LIGHTING_SERVER_NAMESPACE + "turnOn";

    static final String INPUT_LAMP_URI = LIGHTING_SERVER_NAMESPACE + "lampURI";

    static final String OUTPUT_CONTROLLED_LAMPS = LIGHTING_SERVER_NAMESPACE
	    + "controlledLamps";
    static final String OUTPUT_LAMP_BRIGHTNESS = LIGHTING_SERVER_NAMESPACE
	    + "brightness";
    static final String OUTPUT_LAMP_LOCATION = LIGHTING_SERVER_NAMESPACE
	    + "location";

    static final ServiceProfile[] profiles = new ServiceProfile[4];
    private static Hashtable serverLightingRestrictions = new Hashtable();
    static {
	// we need to register all classes in the ontology for the serialization
	// of the object
	// OntologyManagement.getInstance().register(new SimpleOntology(MY_URI,
	// Lighting.MY_URI));
	OntologyManagement.getInstance().register(Activator.mc,
FileProjectLine
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester239
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester501
	req.addRequiredOutput(OUTPUT_GETSUBPROFILES, new String[]{ProfilingService.PROP_CONTROLS,Profilable.PROP_HAS_PROFILE,Profile.PROP_HAS_SUB_PROFILE});
	ServiceResponse resp=caller.call(req);
	if (resp.getCallStatus() == CallStatus.succeeded) {
	    Object out=getReturnValue(resp.getOutputs(),OUTPUT_GETSUBPROFILES);
	    if (out != null) {
		log.debug(out.toString());
		return out.toString();
	    } else {
		log.debug("NOTHING!");
		return "nothing";
	    }
	}else{
	    return resp.getCallStatus().name();
	}
    }
    
    private String getSubprofiles(UserProfile profile) {
FileProjectLine
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway207
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway277
	    -9, // Slash at decimal 47
	    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, // Numbers zero through nine
	    -9, -9, -9, // Decimal 58 - 60
	    -1, // Equals sign at decimal 61
	    -9, -9, -9, // Decimal 62 - 64
	    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, // Letters 'A' through
							  // 'N'
	    14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, // Letters 'O'
							    // through 'Z'
	    -9, -9, -9, -9, // Decimal 91 - 94
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2148
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2805
												} else {
													if (attType.contains(":")) {
														String key1 = attType
																.substring(
																		0,
																		attType.indexOf(":"));
														String xsdNamespace = (String) MitsosParser.namespaces
																.get(key1);
														if (xsdNamespace != null) {
															// //-System.out.println("Namespace Found!!!");
															// //-System.out.println("Namespace Found!!!");
															String type1 = attType
																	.substring(
																			key1.length() + 1,
																			attType.length());
															ComplexObject newComplexObject = new ComplexObject();
															newComplexObject
																	.setObjectName(new QName(
																			attName));
															newComplexObject
																	.setAdditionalInfo(additionalInfo);
															newComplexObject
																	.setObjectType(new QName(
																			type1));
															parseImportedXSDforLiteral3(
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway361
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1690
										|| (no1.getAdditionalInfo() != null && no1
												.getAdditionalInfo().contains(
														"isListType"))) {
									ComplexObject noArrayCO = new ComplexObject();
									noArrayCO
											.setObjectName(no1.getObjectName());
									noArrayCO.setObjectType(new QName(no1
											.getObjectType().getNamespaceURI(),
											no1.getObjectType().getLocalPart()
													+ "[]", no1.getObjectType()
													.getPrefix()));
									noArrayCO.setIsArrayType(true);
									noArrayCO.getHasNativeObjects().add(no1);
									noArrayCO.setIsOptional(no1.isIsOptional());
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)250
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)327
	    -9, // Slash at decimal 47
	    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, // Numbers zero through nine
	    -9, -9, -9, // Decimal 58 - 60
	    -1, // Equals sign at decimal 61
	    -9, -9, -9, // Decimal 62 - 64
	    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, // Letters 'A' through
							  // 'N'
	    14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, // Letters 'O'
							    // through 'Z'
	    -9, -9, -9, -9, // Decimal 91 - 94
FileProjectLine
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL LDDI Bluetooth Continua Manager service405
org\universAAL\lddi\manager\publisher\hdpManager.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)406
					GUI.mainPanel.repaint();				
				}				
			}							
		}
	}
	
	/** Shorten number of decimals */
	public double shortDecimalNumber(double d) {
		return Math.round(d*Math.pow(10,2))/Math.pow(10,2); 
	}

	/** HDP channel unavailable. x073 state machine at disconnected status */
	public void onChannelDisconnected() {
		fsm.transportDeactivate();
		System.out.println("HDP channel disconnected");
	}	
	
	/** */
	public void onMessage(String str) {		
		System.out.println(str);		
	}
	
	/** Reset components */
	public void resetComponentsStatus() {
		CONTINUA_DEVICE = null;
		macAddressRemoteDevice = null;
		remoteDevicePath = null;
		hdpDataChannelPath = null;		
		hdpDataChannelFileDescriptor = -1;
		x73manager = null;
	}
	
	/** Close HDP channel and free resources */
	public void exit() {
FileProjectLine
org\universAAL\ui\handler\gui\swing\classic\SubdialogTriggerLAF.javauniversAAL UI Handler Swing Look and Feel Classic61
org\universAAL\ui\handler\gui\swing\classic\SubmitLAF.javauniversAAL UI Handler Swing Look and Feel Classic71
	button.setMaximumSize(new Dimension(MAX_WIDE,MAX_HEIGHT));
	if(fc.getLabel()!=null){
	    String txt=fc.getLabel().getText();
	    if(txt!=null){
		button.setText("<html><body align=\"center\"> "+txt+" </body>");
	    }
	}
	button.addComponentListener(this);
	button.addActionListener(this);
	return button;
    }
    
    public void componentShown(ComponentEvent e) {
    }
    
    public void componentResized(ComponentEvent e) {
	if(fc.getLabel()!=null && ((AbstractButton) e.getComponent()).getIcon()==null){
FileProjectLine
org\universAAL\context\sesame\sail\ValueStore.javauniversAAL Context Sesame SAIL for OWL Lite222
org\universAAL\context\sesame\sail\ValueStore.javauniversAAL Context Sesame SAIL for OWL Lite290
	public int storeValue(Value value)
		throws IOException
	{
		// Try to get the internal ID from the value itself
		boolean isOwnValue = isOwnValue(value);

		if (isOwnValue) {
			NativeValue nativeValue = (NativeValue)value;

			if (revisionIsCurrent(nativeValue)) {
				// Value's ID is still current
				int id = nativeValue.getInternalID();

				if (id != NativeValue.UNKNOWN_ID) {
					return id;
				}
			}
		}

		// ID not stored in value itself, try the ID cache
		Integer cachedID = valueIDCache.get(value);

		if (cachedID != null) {
			int id = cachedID.intValue();

			if (isOwnValue) {
				// Store id in value for fast access in any consecutive calls
				((NativeValue)value).setInternalID(id, revision);
			}

			return id;
		}

		// Unable to get internal ID in a cheap way, just store it in the data
		// store which will handle duplicates
		byte[] valueData = value2data(value, true);
FileProjectLine
org\universAAL\support\utils\service\Remove.javauniversAAL Support Utilities API70
org\universAAL\support\utils\service\Variable.javauniversAAL Support Utilities API73
    public Variable(String byTypeURI) {
	this.isByURI = true;
	this.uri = byTypeURI;
	this.value = Resource
		.getResource(byTypeURI, Resource.generateAnonURI());

	if (this.value == null) {
	    if (TypeMapper.isRegisteredDatatypeURI(byTypeURI)) {
		this.value = createEmptyInstance(byTypeURI);
	    } else {
		// An arbitrary String, not an URI, intended use is like byValue
		this.isByURI = false;
		this.uri = TypeMapper.getDatatypeURI(String.class);
		this.value = byTypeURI;
	    }
	}
    }

    /**
     * This is only supposed to be used internally.
     * 
     * @return The actual value of the variable
     */
    public Object getObject() {
	return value;
    }
    
    /**
     * This is only supposed to be used internally.
     * 
     * @return The type URI of the variable
     */
    public String getURI() {
	return uri;
    }

}
FileProjectLine
org\universAAL\support\utils\service\mid\UtilActuator.javauniversAAL Support Utilities API136
org\universAAL\support\utils\service\mid\UtilSensor.javauniversAAL Support Utilities API125
		DeviceService.PROP_CONTROLS, sensor);

	Service getOnOff = (Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SERVICE_GET_ON_OFF);
	profiles[0] = getOnOff.getProfile();
	ProcessOutput output = new ProcessOutput(namespace + OUT_GET_ON_OFF);
	output.setCardinality(1, 1);
	profiles[0].addOutput(output);
	profiles[0].addSimpleOutputBinding(output, ppath.getThePath());
	profiles[0].addInput(input);
	profiles[0].getTheService().addInstanceLevelRestriction(r,
		new String[] { DeviceService.PROP_CONTROLS });
FileProjectLine
org\universAAL\support\utils\service\Add.javauniversAAL Support Utilities API71
org\universAAL\support\utils\service\Change.javauniversAAL Support Utilities API70
    public Remove(String byTypeURI) {
	this.isByURI = true;
	this.uri = byTypeURI;
	this.value = Resource
		.getResource(byTypeURI, Resource.generateAnonURI());
	if (this.value == null) {
	    if (TypeMapper.isRegisteredDatatypeURI(byTypeURI)) {
		this.value = createEmptyInstance(byTypeURI);
	    } else {
		// An arbitrary String, not an URI, intended use is like byValue
		this.isByURI = false;
		this.uri = TypeMapper.getDatatypeURI(String.class);
		this.value = byTypeURI;
	    }
	}
    }

    /**
     * This is only supposed to be used internally.
     * 
     * @return The actual value of the value to remove
     */
    public Object getObject() {
	return value;
    }
    
    /**
     * This is only supposed to be used internally.
     * 
     * @return The type URI of the value to remove
     */
    public String getURI() {
	return uri;
    }

}
FileProjectLine
org\universAAL\samples\ctxtbus\ProfileCaller.javauniversAAL Samples Context bus tester79
org\universAAL\samples\ctxtbus\SpaceCaller.javauniversAAL Samples Context bus tester588
    private static Object getReturnValue(List outputs, String expectedOutput) {
	Object returnValue = null;
	if (outputs == null)
	    log.info("Profile Client: No results found!");
	else
	    for (Iterator i = outputs.iterator(); i.hasNext();) {
		ProcessOutput output = (ProcessOutput) i.next();
		if (output.getURI().equals(expectedOutput))
		    if (returnValue == null)
			returnValue = output.getParameterValue();
		    else
			log.info("Profile Client: redundant return value!");
		else
		    log.info("Profile Client - output ignored: "
			    + output.getURI());
	    }

	return returnValue;
    }
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway255
org\universAAL\ri\wsdlToolkit\parser\MitsosParser.javauniversAAL Remote Interoperability Internet Gateway353
							.getElement();
					if (impSchElem == null)
						continue;

					NamedNodeMap atts = impSchElem.getAttributes();

					// ////-System.out.println(atts.getLength());
					for (int i = 0; i < atts.getLength(); i++) {
						Node att = atts.item(i);
						if (att.getNodeName() != null
								&& att.getNodeName().startsWith("xmlns:")) {
							String key = att.getNodeName().substring(
									att.getNodeName().indexOf(":") + 1);
							// ////-System.out.println(att.getNodeName()+" ## "+key+" || "+att.getNodeValue());
							namespaces.put(key, att.getNodeValue());
						}
						// ////-System.out.println(att.getNodeName()+" "+att.getNodeValue());
					}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2126
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2616
																} else {
																	// ////-System.out.println("Namespace was null... Will be treated as NATIVE TYPE...");
																	if (operationInputs != null) {
																		NativeObject no = new NativeObject();
																		no.setObjectName(new QName(
																				attName));
																		no.setObjectType(new QName(
																				attType));
																		no.setAdditionalInfo(additionalInfo);
																		operationInputs
																				.getHasNativeOrComplexObjects()
																				.add(no);
																	} else if (operationOutputs != null) {
																		NativeObject no = new NativeObject();
																		no.setObjectName(new QName(
																				attName));
																		no.setObjectType(new QName(
																				attType));
																		no.setAdditionalInfo(additionalInfo);
																		operationOutputs
																				.getHasNativeOrComplexObjects()
																				.add(no);
																	}
																}
FileProjectLine
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway1966
org\universAAL\ri\wsdlToolkit\parser\DocumentStyleWSDLParser.javauniversAAL Remote Interoperability Internet Gateway2274
			javax.wsdl.extensions.schema.Schema importedSchema = schemaImport
					.getReferencedSchema();
			org.w3c.dom.Element impSchElem = importedSchema.getElement();
			if (impSchElem == null)
				continue;

			NodeList childrenOfChildOfSchema = impSchElem.getChildNodes();
			if (childrenOfChildOfSchema != null) {
				for (int j = 0; j < childrenOfChildOfSchema.getLength(); j++) {
					Node n1 = childrenOfChildOfSchema.item(j);
					// ////-System.out.println("ABCDEFG "+n1.getNodeName());

					if (n1.getAttributes() == null)
						continue;

					// SE AYTO TO EPIPEDO EINAI TA IMPORTED SCHEMA pou
					// yparxoun...
					if (n1.getAttributes().getNamedItem("name") != null) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway326
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler_RPC.javauniversAAL Remote Interoperability Internet Gateway359
	private static void clearArrayTypes(ComplexObject co) {

		for (int i = 0; i < co.getHasComplexObjects().size(); i++) {
			ComplexObject co1 = (ComplexObject) co.getHasComplexObjects()
					.get(i);
			if (co1.isIsArrayType()) {
				if (co1.getHasComplexObjects().size() != 1) {
					for (int j = co1.getHasComplexObjects().size() - 1; j > 0; j--) {
						ComplexObject co2 = (ComplexObject) co1
								.getHasComplexObjects().get(j);
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway444
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway494
		} else if (co != null) {
			objectQName = co.getObjectName();

		}
		// Search first mesa sta children tou body
		Iterator iter1 = body.getChildren();
		while (iter1.hasNext()) {
			org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) iter1
					.next();
			Iterator it2 = childOMElement.getChildren();
			while (it2.hasNext()) {
				OMElementImpl childOMElement2 = (OMElementImpl) it2.next();
				if (childOMElement2.getQName().getLocalPart()
						.equals(objectQName.getLocalPart())) {
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway321
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway354
	private static void clearArrayTypes(ComplexObject co) {

		for (int i = 0; i < co.getHasComplexObjects().size(); i++) {
			ComplexObject co1 = (ComplexObject) co.getHasComplexObjects()
					.get(i);
			if (co1.isIsArrayType()) {
				if (co1.getHasComplexObjects().size() != 1) {
					for (int j = co1.getHasComplexObjects().size() - 1; j > 0; j--) {
						ComplexObject co2 = (ComplexObject) co1
								.getHasComplexObjects().get(j);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1161
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway925
											(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
											co1, theDefinition);

							if (co1 != null) {
								for (int i = 0; i < co1.getHasComplexObjects()
										.size(); i++) {
									co.getHasComplexObjects().add(
											co1.getHasComplexObjects().get(i));
								}
								for (int i = 0; i < co1.getHasNativeObjects()
										.size(); i++) {
									co.getHasNativeObjects().add(
											co1.getHasNativeObjects().get(i));
								}
							} else {
								System.out.println();
							}
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway360
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway668
									if (newSimpleOrComplexObjectElement
											.getMaxOccurs() > 1
											|| (no1.getAdditionalInfo() != null && no1
													.getAdditionalInfo()
													.contains("isListType"))) {
										ComplexObject noArrayCO = new ComplexObject();

										noArrayCO.setObjectName(no1
												.getObjectName());
										noArrayCO.setObjectType(new QName(no1
												.getObjectType()
												.getNamespaceURI(), no1
												.getObjectType().getLocalPart()
												+ "[]", no1.getObjectType()
												.getPrefix()));
										noArrayCO.setIsArrayType(true);
										noArrayCO.getHasNativeObjects()
												.add(no1);
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway97
org\universAAL\ri\wsdlToolkit\axis2Parser\SimpleTypesParser.javauniversAAL Remote Interoperability Internet Gateway925
										(org.apache.ws.commons.schema.XmlSchemaAttributeGroupRef) obj,
										co1, theDefinition);

						if (co1 != null) {
							for (int i = 0; i < co1.getHasComplexObjects()
									.size(); i++) {
								co.getHasComplexObjects().add(
										co1.getHasComplexObjects().get(i));
							}
							for (int i = 0; i < co1.getHasNativeObjects()
									.size(); i++) {
								co.getHasNativeObjects().add(
										co1.getHasNativeObjects().get(i));
							}
						} else {
							System.out.println();
						}
FileProjectLine
org\universAAL\middleware\connectors\communication\jgroups\JGroupsCommunicationConnector.javauniversAAL Middleware Connector Communication JGroups (Core)710
org\universAAL\middleware\connectors\deploy\karaf\KarafDeployConnector.javauniversAAL Middleware Deploy Connector Karaf (OSGi)169
		    null);
	    return;
	}
	try {
	    this.name = (String) configurations
		    .get(org.universAAL.middleware.connectors.util.Consts.CONNECTOR_NAME);
	    this.version = (String) configurations
		    .get(org.universAAL.middleware.connectors.util.Consts.CONNECTOR_VERSION);
	    this.description = (String) configurations
		    .get(org.universAAL.middleware.connectors.util.Consts.CONNECTOR_DESCRIPTION);
	    this.provider = (String) configurations
		    .get(org.universAAL.middleware.connectors.util.Consts.CONNECTOR_PROVIDER);
FileProjectLine
org\universAAL\hw\exporter\zigbee\ha\devices\ExporterActuatorCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation166
org\universAAL\support\utils\service\mid\UtilSensor.javauniversAAL Support Utilities API125
		DeviceService.PROP_CONTROLS, sensor);

	Service getOnOff = (Service) OntologyManagement.getInstance()
		.getResource(ontologyURI, namespace + SERVICE_GET_ON_OFF);
	profiles[0] = getOnOff.getProfile();
	ProcessOutput output = new ProcessOutput(namespace + OUT_GET_ON_OFF);
	output.setCardinality(1, 1);
	profiles[0].addOutput(output);
	profiles[0].addSimpleOutputBinding(output, ppath.getThePath());
	profiles[0].addInput(input);
	profiles[0].getTheService().addInstanceLevelRestriction(r,
		new String[] { DeviceService.PROP_CONTROLS });
FileProjectLine
org\universAAL\lddi\subscriber\test\gui\GUI.javauniversAAL LDDI Continua Manager service subscriber test137
org\universAAL\lddi\manager\gui\GUI.javauniversAAL Samples LDDI Continua Manager Client (unix OS version)297
			uaalPublisherBloodPressurePulValueTextfield = createJTextfield(400,200,100,50,Font.PLAIN,16);
		} else {
			uaalPublisherMainLabel.setText("Weighing scale");
			uaalPublisherLogoLabel.setIcon(new ImageIcon(ctx.getBundle().getResource(weighingScaleImage)));
			uaalPublisherWeightValueLabel = createJLabel("Weight value",250,100,150,50,Font.PLAIN,16);			
			uaalPublisherWeightValueTextfield = createJTextfield(400,100,100,50,Font.PLAIN,16);			
			uaalPublisherWeightUnitLabel = createJLabel(" Weight unit",250,150,150,50,Font.PLAIN,16);				
			uaalPublisherWeightUnitTextfield = createJTextfield(400,150,100,50,Font.PLAIN,16);
FileProjectLine
org\universAAL\ui\dm\ui\preferences\caller\helpers\UIPreferencesSubprofilePrerequisitesHelper.javauniversAAL UI Dialog Manager 2.067
org\universAAL\ui\dm\ui\preferences\caller\helpers\UIPreferencesSubprofilePrerequisitesHelper.javauniversAAL UI Dialog Manager 2.0132
    public User getUser(Resource user) {
	ServiceRequest req = new ServiceRequest(new ProfilingService(), null);
	req.addValueFilter(new String[] { ProfilingService.PROP_CONTROLS },
		user);
	req.addRequiredOutput(OUTPUT_USER,
		new String[] { ProfilingService.PROP_CONTROLS });

	ServiceResponse resp = sc.call(req);
	if (resp.getCallStatus() == CallStatus.succeeded) {

	    Object out = getReturnValue(resp.getOutputs(), OUTPUT_USER);
	    if (out != null) {
		LogUtils.logDebug(mc, this.getClass(), "getUser", new Object[] {
FileProjectLine
org\universAAL\context\che\database\impl\SesameBackendCrdClc2Cnf.javauniversAAL Context CHE - Module for Sesame store with cardinality129
org\universAAL\context\che\database\impl\SesameBackendCrdCnf.javauniversAAL Context CHE - Module for Sesame store with cardinality136
					+ "low Confidence: Not reified.");
		    } else {
			con.add(new StringReader(uAALParser.serialize(e)),
				e.getURI(), RDFFormat.TURTLE);
			log.info("storeEvent", "CHe: Stored a Context Event"
				+ " with high Confidence");
		    }
		} else { // TODO: What to do if events have no confidence?
		    con.add(new StringReader(uAALParser.serialize(e)),
			    e.getURI(), RDFFormat.TURTLE);
		    log.info("storeEvent",
			    "CHe: Stored a Context Event without Confidence");
		}
		log.debug("storeEvent", "Successfully added event to store");
	    } catch (IOException exc) {
		log.error("storeEvent",
			"Error trying to add event to the store. "
				+ "In older versions this usually"
				+ " happened because of the underlying"
				+ " connection closing due to inactivity,"
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway112
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway217
							ComplexObject extCO = new ComplexObject();
							extCO.objectName = new QName(
									inExtCO.objectName.getNamespaceURI(),
									inExtCO.objectName.getLocalPart(),
									inExtCO.objectName.getPrefix());
							extCO.objectType = new QName(
									inExtCO.objectType.getNamespaceURI(),
									inExtCO.objectType.getLocalPart(),
									inExtCO.objectType.getPrefix());
							extCO.hasComplexObjects = new Vector();
							extCO.hasNativeObjects = new Vector();
							extCO.hasExtendedObjects = new Vector();
							extCO.isInput = inExtCO.isInput;
							// extCO.hasParent=inExtCO.hasParent;
							extCO.setHasParent(co1);
FileProjectLine
ch\ethz\iks\slp\impl\AttributeReply.javauniversAAL Thirdparty jslp library (Core)194
ch\ethz\iks\slp\impl\DAAdvertisement.javauniversAAL Thirdparty jslp library (Core)208
	}

	/**
	 * verify the DAAdvertisement.
	 * 
	 * @return true if verification succeeded.
	 * @throws ServiceLocationException
	 *             in case of IO errors.
	 */
	boolean verify() throws ServiceLocationException {
		for (int i = 0; i < authBlocks.length; i++) {
			if (authBlocks[i].verify(getAuthData(authBlocks[i].getSPI(),
					authBlocks[i].getTimestamp()))) {
				return true;
			}
		}
		return false;
	}

	/**
	 * get the authentication data.
	 * 
	 * @param spiStr
	 *            the SPI
	 * @param timestamp
	 *            the timestamp
	 * @return the authentication data.
	 * @throws ServiceLocationException
	 *             in case of IO errors.
	 */
	private byte[] getAuthData(final String spiStr, final int timestamp)
			throws ServiceLocationException {
		try {
			ByteArrayOutputStream bos = new ByteArrayOutputStream();
			DataOutputStream dos = new DataOutputStream(bos);

			dos.writeUTF(spiStr);
			dos.writeInt(statelessBootTimestamp);
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)647
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1432
						    pp[1]);
					    if (oj instanceof Comparable)
						if (ok == null)
						    points[k]++;
						else {
						    int l = ((Comparable) oj)
							    .compareTo(ok);
						    if (l > 0)
							points[k]++;
						    else if (l < 0)
							points[j]++;
						}
					    else {
						points[j]++;
						if (!(ok instanceof Comparable))
						    points[k]++;
					    }
					}
				    }
				    break;
				case AggregationFunction.MIN_DISTANCE_TO_REF_LOC:
				    for (int j = 0; j < size; j++) {
					Object oj = getProfileParameter(
FileProjectLine
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)621
org\universAAL\middleware\service\impl\ServiceStrategy.javauniversAAL Middleware Service Bus (Core)1404
						    pp[1]);
					    if (oj instanceof Comparable)
						if (ok == null)
						    points[k]++;
						else {
						    int l = ((Comparable) oj)
							    .compareTo(ok);
						    if (l < 0)
							points[k]++;
						    else if (l > 0)
							points[j]++;
						}
					    else {
						points[j]++;
						if (!(ok instanceof Comparable))
						    points[k]++;
					    }
					}
				    }
				    break;
				case AggregationFunction.MAX_OF:
				    for (int j = 0; j < size; j++) {
					Object oj = getProfileParameter(
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation54
org\universAAL\lddi\lib\ieeex73std\testchannel20601\RealMeasure10415PrstAPDUtest.javauniversAAL LDDI Library IEEE x073 standard implementation72
				(byte)0x12, (byte)0x00,
				(byte)0x09, (byte)0x96,
				(byte)0x00, (byte)0x02,
				(byte)0x06, (byte)0xC3,
				
				// Measure 3
				(byte)0x00, (byte)0x01,
				(byte)0x00, (byte)0x03,
				(byte)0x00, (byte)0x1A,
				(byte)0x0A, (byte)0x56,
				(byte)0x00, (byte)0x04,
				(byte)0xFE, (byte)0x00,
				(byte)0x1C, (byte)0x5C,
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway392
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway702
											.getClass()
											.toString()
											.contains(
													"org.apache.ws.commons.schema.XmlSchemaComplexType")) {

										ComplexObject co1 = new ComplexObject();
										if (newSimpleOrComplexObjectElement
												.getQName() != null) {
											co1.setObjectName(newSimpleOrComplexObjectElement
													.getQName());// Panta prin
																	// apo ayto
																	// ton tropo
																	// klisis
																	// prepei na
																	// exw dwsei
																	// prwta to
																	// onoma tou
																	// co
										} else if (newSimpleOrComplexObjectElement
												.getRefName() != null) {
											co1.setObjectName(newSimpleOrComplexObjectElement
													.getRefName());
										} else if (newSimpleOrComplexObjectElement
												.getName() != null) {
											co1.setObjectName(new QName(
													newSimpleOrComplexObjectElement
															.getName()));
										} else {
											co1.setObjectName(new QName(
FileProjectLine
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test211
org\universAAL\lddi\caller\test\gui\GUI.javauniversAAL LDDI Continua Manager service caller test236
						System.out.println("Continua Health Manager service request...");
						caller = new DefaultServiceCaller(mcx);						
						ServiceRequest addReq = new ServiceRequest(new ContinuaHealthManager(null),null);						
						addReq.addAddEffect(new String[] { ContinuaHealthManager.PROP_HAS_CONTINUA_DEVICE },
								//TODO Put here the right MAC address of your Continua device
								new ContinuaHealthDevice(ContinuaHealthManagerOntology.NAMESPACE + "new Continua Sink",remoteMacAddress,remoteDeviceType));
						System.out.println(addReq.toString());
						caller.call(addReq);						
					}
				}.start();				
			} else if(simulatedMeasurementButton.isSelected()) {
				realMeasurement = false;
				if(uaalX73Publisher != null)
					uaalX73Publisher.publishWeightEvent(getRandomValue(50,110));				
FileProjectLine
org\universAAL\ui\handler\gui\swing\model\FormControl\SelectModel.javauniversAAL UI Handler Swing117
org\universAAL\ui\ui\handler\web\html\model\SelectModel.javauniversAAL UI HTML5 Web Handler68
		Object val = ((Select) fe).getValue();
		if (val instanceof List){
			selected = new ArrayList((List) val);
		}
		else if (val instanceof Object[]){
			selected = new ArrayList();
			for (int i = 0; i < ((Object[]) val).length; i++){
				selected.add(((Object[]) val)[i]);
			}
		}
		else {
			selected = new ArrayList();
			if (val != null) {
				selected.add(val);
			}
		}
FileProjectLine
org\universAAL\context\sesame\sail\CardinalityNativeStore.javauniversAAL Context Sesame SAIL for OWL Lite455
org\universAAL\context\sesame\sail\CardinalityNativeStoreConnection.javauniversAAL Context Sesame SAIL for OWL Lite288
			int subjID = NativeValue.UNKNOWN_ID;
			if (subj != null) {
				subjID = valueStore.getID(subj);
				if (subjID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}
			int predID = NativeValue.UNKNOWN_ID;
			if (pred != null) {
				predID = valueStore.getID(pred);
				if (predID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}
			int objID = NativeValue.UNKNOWN_ID;
			if (obj != null) {
				objID = valueStore.getID(obj);
				if (objID == NativeValue.UNKNOWN_ID) {
					return 0;
				}
			}
FileProjectLine
org\universAAL\support\utils\ui\SubmitCmd.javauniversAAL Support Utilities API112
org\universAAL\support\utils\ui\TriggerCmd.javauniversAAL Support Utilities API90
	SubdialogTrigger sub=new SubdialogTrigger(group, label, ref.getLastPathElement());
	if(confirmMessage!=null){
	    switch (confirmType) {
	    case Submit.CONFIRMATION_TYPE_OK_CANCEL:
		sub.setConfirmationOkCancel(confirmMessage);
		break;
	    case Submit.CONFIRMATION_TYPE_YES_NO:
		sub.setConfirmationYesNo(confirmMessage);
		break;
	    default :
		sub.setConfirmationOkCancel(confirmMessage);
		break;
	    }
	}
	if(!l.isEmpty()){
	    Iterator iter=l.iterator();
	    while(iter.hasNext()){
		sub.addMandatoryInput((Input)iter.next());
	    }
	}
	if(sub.needsSelection()){
FileProjectLine
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway112
org\universAAL\ri\wsdlToolkit\ioApi\ComplexObject.javauniversAAL Remote Interoperability Internet Gateway406
							ComplexObject extCO = new ComplexObject();
							extCO.objectName = new QName(
									inExtCO.objectName.getNamespaceURI(),
									inExtCO.objectName.getLocalPart(),
									inExtCO.objectName.getPrefix());
							extCO.objectType = new QName(
									inExtCO.objectType.getNamespaceURI(),
									inExtCO.objectType.getLocalPart(),
									inExtCO.objectType.getPrefix());
							extCO.hasComplexObjects = new Vector();
							extCO.hasNativeObjects = new Vector();
							extCO.hasExtendedObjects = new Vector();
							extCO.isInput = inExtCO.isInput;
							extCO.hasParent = inExtCO.hasParent;
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway67
org\universAAL\ri\wsdlToolkit\parser\Axis1ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway438
					.get(definedType.getQName()));
			/*
			 * if(co.getObjectName()!=null){ QName coName=new
			 * QName(co.objectName
			 * .getNamespaceURI(),co.objectName.getLocalPart()
			 * ,co.objectName.getPrefix());
			 * 
			 * co=co1.cloneTheCO(); co.setObjectName(coName); }else{
			 * co=co1.cloneTheCO(); }
			 */

			co.setObjectType(co1.getObjectType());

			co.setAdditionalInfo(co1.getAdditionalInfo());

			co.setHasParent(co1.getHasParent());
			co.setIsAbstract(co1.isIsAbstract());
			co.setIsArrayType(co1.isIsArrayType());
			co.setIsInput(co1.isIsInput());
			co.setIsOptional(co1.isIsOptional());

			co.setHasNativeObjects(co1.getHasNativeObjects());
			co.setHasComplexObjects(co1.getHasComplexObjects());
			co.setHasExtendedObjects(co1.getHasExtendedObjects());
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway2831
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway3156
														"XmlSchemaComplexType")) {
											ComplexObject co1 = new ComplexObject();
											// co1.objectName="elementOfArray";
											if (elem1.getQName() != null) {
												co1.setObjectName(elem1
														.getQName());// Panta
																		// prin
																		// apo
																		// ayto
																		// ton
																		// tropo
																		// klisis
																		// prepei
																		// na
																		// exw
																		// dwsei
																		// prwta
																		// to
																		// onoma
																		// tou
																		// co
											} else if (elem1.getRefName() != null) {
												co1.setObjectName(elem1
														.getRefName());
											} else if (elem1.getName() != null) {
												co1.setObjectName(new QName(
														elem1.getName()));
											} else {
												co1.setObjectName(new QName(
														"UNDEFINED variable name"));
												theDefinition
														.getContainingErrors()
														.add("WARNING @line ~1162... UNDEFINED Variable name!!!");
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1160
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway937
															|| (no1.getAdditionalInfo() != null && no1
																	.getAdditionalInfo()
																	.contains(
																			"isListType"))) {
														ComplexObject noArrayCO = new ComplexObject();
														noArrayCO
																.setObjectName(no1
																		.getObjectName());
														noArrayCO
																.setObjectType(new QName(
																		no1.getObjectType()
																				.getNamespaceURI(),
																		no1.getObjectType()
																				+ "[]",
																		no1.getObjectType()
																				.getPrefix()));
														noArrayCO
																.setIsArrayType(true);
														noArrayCO
																.getHasNativeObjects()
																.add(no1);
														noArrayCO
																.setIsOptional(no1
																		.isIsOptional());
FileProjectLine
org\universAAL\ontology\security\SessionManagementService.javauniversAAL Ontology Security96
org\universAAL\ontology\security\SessionManagementService.javauniversAAL Ontology Security124
	    sreq.addValueFilter(new String[]{PROP_USER, SecurityOntology.PROP_SESSION, LocationBoundSession.PROP_BOUNDED_LOCATION},  l);
	    ServiceResponse sres = new DefaultServiceCaller(mc).call(sreq);
	    if (sres == null || !sres.getCallStatus().equals(CallStatus.succeeded)){
		//By default assume there is no session.
		return false;
	    }
	    List users = sres.getOutput(usrsOut, true);
	    boolean found = false;
	    Iterator it = users.iterator();
	    while (!found && it.hasNext()) {
		found = ((Resource)it.next()).getURI().equals(u.getURI());
	    }
	    return found;
	}
FileProjectLine
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway404
org\universAAL\ri\wsdlToolkit\invocation\Axis2InvocationResultHandler.javauniversAAL Remote Interoperability Internet Gateway448
		Iterator iter1 = body.getChildren();
		while (iter1.hasNext()) {
			org.apache.axiom.om.impl.llom.OMElementImpl childOMElement = (OMElementImpl) iter1
					.next();
			Iterator it2 = childOMElement.getChildren();
			while (it2.hasNext()) {
				OMElementImpl childOMElement2 = (OMElementImpl) it2.next();
				if (childOMElement2.getQName().getLocalPart()
						.equals(objectQName.getLocalPart())) {
					return childOMElement2;
				}
			}

		}
		return null;
	}

	private static OMElementImpl findTheComplexObjectNodeInOMElement(
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway243
org\universAAL\ri\wsdlToolkit\axis2Parser\Axis2ParserWrapper.javauniversAAL Remote Interoperability Internet Gateway658
																	.getHasComplexObjects()
																	.add(noArrayCO);
															typeParsed = true;

														} else {
															typeParsed = true;
															ComplexObject noArrayCO = new ComplexObject();
															noArrayCO
																	.setObjectName(no1
																			.getObjectName());
															noArrayCO
																	.setObjectType(new QName(
																			no1.getObjectType()
																					.getNamespaceURI(),
																			no1.getObjectType()
																					.getLocalPart()
																					+ "[]",
																			no1.getObjectType()
																					.getPrefix()));
															noArrayCO
																	.setIsArrayType(true);
															noArrayCO
																	.getHasNativeObjects()
																	.add(no1);
															noArrayCO
																	.setIsOptional(no1
																			.isIsOptional());
FileProjectLine
org\universAAL\hw\exporter\zigbee\ha\devices\DimmerLightCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation82
org\universAAL\hw\exporter\zigbee\ha\devices\TemperatureSensorCallee.javauniversAAL LDDI ZigBee exporter for uAAL - Home Automation94
	ontologyDevice = new org.universAAL.ontology.device.TemperatureSensor(deviceURI);
	// Commissioning
	String locationSuffix = Activator.getProperties().getProperty(
		deviceSuffix);
	if (locationSuffix != null
		&& !locationSuffix.equals(Activator.UNINITIALIZED_SUFFIX)) {
	    ontologyDevice
		    .setLocation(new Room(
			    Constants.uAAL_MIDDLEWARE_LOCAL_ID_PREFIX
				    + locationSuffix));
	} else {
	    Properties prop = Activator.getProperties();
	    prop.setProperty(deviceSuffix, Activator.UNINITIALIZED_SUFFIX);
	    Activator.setProperties(prop);
	}
	// Serv reg
	newProfiles = getServiceProfiles(NAMESPACE, DeviceService.MY_URI,
		ontologyDevice);
	this.addNewServiceProfiles(newProfiles);
	
	//Context reg
	ContextProvider info = new ContextProvider(NAMESPACE
		+ "zbTemperatureContextProvider");
FileProjectLine
org\universAAL\security\security\authenticator\profile\UserPasswordCallee.javauniversAAL Security Profiling Server Managed User Password Authenticator175
org\security\session\manager\helpers\CHeQuery.javauniversAAL Security Session Manager54
    public Object query(String queryFile, String[] params){
  	String q = getQuery(queryFile, params);
  	ServiceRequest getQuery = new ServiceRequest(
  		new ContextHistoryService(null), null);

  	MergedRestriction r = MergedRestriction.getFixedValueRestriction(
  		ContextHistoryService.PROP_PROCESSES, q);

  	getQuery.getRequestedService().addInstanceLevelRestriction(r,
  		new String[] { ContextHistoryService.PROP_PROCESSES });
  	getQuery.addSimpleOutputBinding(
  		new ProcessOutput(OUTPUT_RESULT_STRING), new PropertyPath(null,
  			true,
  			new String[] { ContextHistoryService.PROP_RETURNS })
  			.getThePath());
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway555
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway1175
												.isIsOptional());
										co.getHasComplexObjects()
												.add(noArrayCO);

									} else {
										co.getHasNativeObjects().add(no1);
									}
								} else {
									ComplexObject co2 = new ComplexObject();
									co2.setObjectName(no1.getObjectName());
									if (xmlSchemaType.getQName() != null) {
										co2.setObjectType(xmlSchemaType
												.getQName());
									} else {
										System.out.println();
									}
									co2.getHasComplexObjects().add(unionCO);
									co.getHasComplexObjects().add(co2);
								}

							} else if (xmlSchemaType
FileProjectLine
org\universAAL\ri\wsdlToolkit\axis2Parser\AdditionalTypesParser.javauniversAAL Remote Interoperability Internet Gateway542
org\universAAL\ri\wsdlToolkit\axis2Parser\ComplexTypesParser.javauniversAAL Remote Interoperability Internet Gateway1579
                                                            if (objectXMLSchemaElement.getMaxOccurs() > 1) {
                                                                ComplexObject noArrayCO = new ComplexObject();

                                                                noArrayCO.setObjectName(no1.getObjectName());
                                                                noArrayCO.setObjectType(new QName(no1.getObjectType().getNamespaceURI(), no1.getObjectType().getLocalPart() + "[]", no1.getObjectType().getPrefix()));
                                                                noArrayCO.setIsArrayType(true);
                                                                noArrayCO.getHasNativeObjects().add(no1);
                                                                co.getHasComplexObjects().add(noArrayCO);
                                                            } else {
                                                                co.getHasNativeObjects().add(no1);
                                                            }
                                                        }
FileProjectLine
org\universAAL\middleware\xsd\util\Base64.javauniversAAL Middleware Data Representation (Core)1885
org\universAAL\ri\servicegateway\impl\Base64.javauniversAAL Remote Interoperability Service Gateway1480
			} // end catch
		    } // end for: each needed input byte

		    if (numBinaryBytes > 0) {
			encode3to4(b3, 0, numBinaryBytes, buffer, 0, options);
			position = 0;
			numSigBytes = 4;
		    } // end if: got data
		    else {
			return -1;
		    } // end else
		} // end if: encoding

		// Else decoding
		else {
		    byte[] b4 = new byte[4];
		    int i = 0;
		    for (i = 0; i < 4; i++) {
			// Read four "meaningful" bytes:
			int b = 0;
			do {
			    b = in.read();
			} while (b >= 0
				&& decodabet[b & 0x7f] <= WHITE_SPACE_ENC);

			if (b < 0)
FileProjectLine
org\universAAL\middleware\owl\Intersection.javauniversAAL Middleware Data Representation (Core)191
org\universAAL\middleware\owl\Union.javauniversAAL Middleware Data Representation (Core)183
		    Object tmp = TypeURI.asTypeURI(o);
		    if (tmp != null)
			o = tmp;
		    if (o instanceof TypeExpression)
			retVal = addType((TypeExpression) o) || retVal;
		    else {
			types.clear();
			break;
		    }
		}
		return retVal;
	    } else {
		Object tmp = TypeURI.asTypeURI(o);
		if (tmp != null)
		    o = tmp;
		if (o instanceof TypeExpression)
		    return addType((TypeExpression) o);
	    }
	}
	return false;
    }

    /** Get an iterator for the added child class expressions. */
    public Iterator types() {
	return types.iterator();
    }
FileProjectLine
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation74
org\universAAL\lddi\lib\ieeex73std\utils\Testing.javauniversAAL LDDI Library IEEE x073 standard implementation215
			byte[] toDecode = masurement.getByteArray();
			
			bais = new ByteArrayInputStream(toDecode);
			ApduType apdu = decoder.decode(bais, ApduType.class);
			ApduType response = rmp.processAPDU(apdu);

			// simulate sending response 
			
			if(response != null){
				baos = new ByteArrayOutputStream();
				encoder.encode((T) response, baos);
				
				byte[] apdu_bytes = baos.toByteArray();
				Logging.logSend(ASNUtils.asHexwithspaces(apdu_bytes));
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			Logging.logError(e.toString());
		}
	}
	
	public void decodeRealWeightMeasure(APDUProcessor rmp)