final XSSchema schema = model.schemaComponent.getSchema("http://www.opengis.net/kml/2.2");
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " -------Icon properties ------------------");
final CClassInfoParent cClassInfoParentLink = classLink.parent();
final CClassInfo iconClass = new CClassInfo(model, cClassInfoParentLink, "Icon", null, new QName("Icon"), null, schema, new CCustomizations());
iconClass.setBaseClass(classLink.getBaseClass());
//fill icon class with the properties defined in link class
final List<CPropertyInfo> properties = classLink.getProperties();
for (final CPropertyInfo c : properties) {
iconClass.addProperty(c);
}
final Collection<CEnumConstant> constants = altitudeModeGX.getConstants();
for (final CEnumConstant cEnumConstant : constants) {
altitudeModeKML.members.add( new CEnumConstant(cEnumConstant.getName(), null, cEnumConstant.getLexicalValue(), null, null, null));
}
//model.enums().remove(altitudeModeGX.fullName());
// altitudeModeKML.javadoc
final Collection<CEnumConstant> constantsKML = altitudeModeKML.getConstants();
for (final CEnumConstant cEnumConstant : constantsKML) {
LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " altitudeMode property: " + cEnumConstant.getLexicalValue());
}
// altitudeModeGX.parent.getOwnerPackage().remove(altitudeModeGX.);
final QName qNameCoordinate = new QName("http://www.opengis.net/kml/2.2", "Coordinate");
final QName qNameLongitude = new QName("PerlPleaseRemoveMeLongitude");
final QName qNameLatitude = new QName("PerlPleaseRemoveMeLatitude");
final QName qNameAltitude = new QName("PerlPleaseRemoveMeAltitude");
final CClassInfo cc4 = new CClassInfo(model, cClassInfoParentLink, "Coordinate", null, qNameCoordinate, null, schema, new CCustomizations());
//LOG.info(":::::::::::::::::::::::::::::::::: " + doubleValue.getType().fullName());
final CAttributePropertyInfo cAttributeLongitude = new CAttributePropertyInfo("longitude", null, new CCustomizations(), null, qNameLongitude,
doubleValue, null, false);
final CAttributePropertyInfo cAttributeLatitude = new CAttributePropertyInfo("latitude", null, null, null, qNameLatitude, doubleValue, null,
false);
final CAttributePropertyInfo cAttributeAltitude = new CAttributePropertyInfo("altitude", null, new CCustomizations(), null, qNameAltitude,
doubleValue, null, false);
cc4.addProperty(cAttributeLongitude);
cc4.addProperty(cAttributeLatitude);
cc4.addProperty(cAttributeAltitude);