/// <summary> /// Gives all Types of <see cref="OSMElement"/> /// </summary> /// <returns>list of all Types of <see cref="OSMElement"/> with possible values OR range</returns> public static List <String> getAllTypes() { List <String> displayedGuiElements = GeneralProperties.getAllTypes(); displayedGuiElements.AddRange(BrailleRepresentation.getAllTypes()); return(displayedGuiElements); }
/// <summary> /// Gets a specified property /// </summary> /// <param name="elementName">name of the wanted property</param> /// <param name="osmElement">properties of the node</param> /// <returns>the wanted property from <para>properties</para> </returns> public static object getElement(String elementName, OSMElement osmElement) { if (GeneralProperties.getAllTypes().Contains(elementName)) { return(GeneralProperties.getPropertyElement(elementName, osmElement.properties)); } if (BrailleRepresentation.getAllTypes().Contains(elementName)) { return(BrailleRepresentation.getPropertyElement(elementName, osmElement.brailleRepresentation)); } //TODO: Events return(null); }