/** * fluent setter * @see #setAbstractView(AbstractView) * * @param abstractView * required parameter */ public Feature withAbstractView(final AbstractView abstractView) { this.setAbstractView(abstractView); return this; }
@Override public Tour clone() { Tour copy; copy = ((Tour) super.clone()); copy.playlist = ((playlist == null)?null:((Playlist) playlist.clone())); return copy; }
/** * add a value to the featureObjectExtension property collection * * @param featureObjectExtension * Objects of the following type are allowed in the list: {@link AbstractObject} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Feature addToFeatureObjectExtension(final AbstractObject featureObjectExtension) { this.getFeatureObjectExtension().add(featureObjectExtension); return this; }
@Override public Feature clone() { Feature copy; copy = ((Feature) super.clone()); copy.atomAuthor = ((atomAuthor == null)?null:((Author) atomAuthor.clone())); copy.atomLink = ((atomLink == null)?null:((Link) atomLink.clone())); copy.xalAddressDetails = ((xalAddressDetails == null)?null:((AddressDetails) xalAddressDetails.clone())); copy.snippet = ((snippet == null)?null:((Snippet) snippet.clone())); copy.abstractView = ((abstractView == null)?null:((AbstractView ) abstractView.clone())); copy.timePrimitive = ((timePrimitive == null)?null:((TimePrimitive ) timePrimitive.clone())); copy.styleSelector = new ArrayList<StyleSelector>((getStyleSelector().size())); for (StyleSelector iter: styleSelector) { copy.styleSelector.add(iter.clone()); } copy.region = ((region == null)?null:((Region) region.clone())); copy.metadata = ((metadata == null)?null:((Metadata) metadata.clone())); copy.extendedData = ((extendedData == null)?null:((ExtendedData) extendedData.clone())); copy.featureSimpleExtension = new ArrayList<Object>((getFeatureSimpleExtension().size())); for (Object iter: featureSimpleExtension) { copy.featureSimpleExtension.add(iter); } copy.featureObjectExtension = new ArrayList<AbstractObject>((getFeatureObjectExtension().size())); for (AbstractObject iter: featureObjectExtension) { copy.featureObjectExtension.add(iter.clone()); } return copy; }
/** * add a value to the styleSelector property collection * * @param styleSelector * Objects of the following type are allowed in the list: {@code <}{@link Style}{@code>}{@link JAXBElement}{@code <}{@link StyleSelector}{@code>}{@link JAXBElement}{@code <}{@link StyleMap}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Feature addToStyleSelector(final StyleSelector styleSelector) { this.getStyleSelector().add(styleSelector); return this; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = ((prime*result)+((containerSimpleExtension == null)? 0 :containerSimpleExtension.hashCode())); result = ((prime*result)+((containerObjectExtension == null)? 0 :containerObjectExtension.hashCode())); return result; }
return false; if (super.equals(obj) == false) { return false;
/** * add a value to the featureSimpleExtension property collection * * @param featureSimpleExtension * Objects of the following type are allowed in the list: {@code <}{@link Double}{@code>}{@link JAXBElement}{@code <}{@link Object}{@code>}{@link JAXBElement}{@code <}{@link Boolean}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Feature addToFeatureSimpleExtension(final Object featureSimpleExtension) { this.getFeatureSimpleExtension().add(featureSimpleExtension); return this; }
@Obvious @Override public Overlay addToObjectSimpleExtension(final Object objectSimpleExtension) { super.getObjectSimpleExtension().add(objectSimpleExtension); return this; }
/** * Internal method * */ private void addKmzFile(Kml kmzFile, ZipOutputStream out, boolean mainfile) throws IOException { String fileName = null; if (((kmzFile.getFeature() == null)||(kmzFile.getFeature().getName() == null))||(kmzFile.getFeature().getName().length() == 0)) { fileName = (("noFeatureNameSet"+ missingNameCounter ++)+".kml"); } else { fileName = kmzFile.getFeature().getName(); if (!fileName.endsWith(".kml")) { fileName += ".kml"; } } if (mainfile) { fileName = "doc.kml"; } out.putNextEntry(new ZipEntry(URLEncoder.encode(fileName, "UTF-8"))); kmzFile.marshal(out); out.closeEntry(); }
void addRegion(Feature container, Envelope box, int minLodPixels, int maxLodPixels) { Region region = container.createAndSetRegion(); Lod lod = region.createAndSetLod(); lod.setMinLodPixels(minLodPixels); lod.setMaxLodPixels(maxLodPixels); LatLonAltBox llaBox = region.createAndSetLatLonAltBox(); setEnvelope(box, llaBox); }
@Override public Feature clone() { Feature copy; copy = ((Feature) super.clone()); copy.atomAuthor = ((atomAuthor == null)?null:((Author) atomAuthor.clone())); copy.atomLink = ((atomLink == null)?null:((Link) atomLink.clone())); copy.xalAddressDetails = ((xalAddressDetails == null)?null:((AddressDetails) xalAddressDetails.clone())); copy.snippet = ((snippet == null)?null:((Snippet) snippet.clone())); copy.abstractView = ((abstractView == null)?null:((AbstractView ) abstractView.clone())); copy.timePrimitive = ((timePrimitive == null)?null:((TimePrimitive ) timePrimitive.clone())); copy.styleSelector = new ArrayList<StyleSelector>((getStyleSelector().size())); for (StyleSelector iter: styleSelector) { copy.styleSelector.add(iter.clone()); } copy.region = ((region == null)?null:((Region) region.clone())); copy.metadata = ((metadata == null)?null:((Metadata) metadata.clone())); copy.extendedData = ((extendedData == null)?null:((ExtendedData) extendedData.clone())); copy.featureSimpleExtension = new ArrayList<Object>((getFeatureSimpleExtension().size())); for (Object iter: featureSimpleExtension) { copy.featureSimpleExtension.add(iter); } copy.featureObjectExtension = new ArrayList<AbstractObject>((getFeatureObjectExtension().size())); for (AbstractObject iter: featureObjectExtension) { copy.featureObjectExtension.add(iter.clone()); } return copy; }
/** * add a value to the styleSelector property collection * * @param styleSelector * Objects of the following type are allowed in the list: {@code <}{@link Style}{@code>}{@link JAXBElement}{@code <}{@link StyleSelector}{@code>}{@link JAXBElement}{@code <}{@link StyleMap}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Feature addToStyleSelector(final StyleSelector styleSelector) { this.getStyleSelector().add(styleSelector); return this; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = ((prime*result)+((containerSimpleExtension == null)? 0 :containerSimpleExtension.hashCode())); result = ((prime*result)+((containerObjectExtension == null)? 0 :containerObjectExtension.hashCode())); return result; }
return false; if (super.equals(obj) == false) { return false;
/** * add a value to the featureSimpleExtension property collection * * @param featureSimpleExtension * Objects of the following type are allowed in the list: {@code <}{@link Double}{@code>}{@link JAXBElement}{@code <}{@link Object}{@code>}{@link JAXBElement}{@code <}{@link Boolean}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Feature addToFeatureSimpleExtension(final Object featureSimpleExtension) { this.getFeatureSimpleExtension().add(featureSimpleExtension); return this; }
@Obvious @Override public Placemark addToObjectSimpleExtension(final Object objectSimpleExtension) { super.getObjectSimpleExtension().add(objectSimpleExtension); return this; }
/** * Internal method * */ private void addKmzFile(Kml kmzFile, ZipOutputStream out, boolean mainfile) throws IOException { String fileName = null; if (((kmzFile.getFeature() == null)||(kmzFile.getFeature().getName() == null))||(kmzFile.getFeature().getName().length() == 0)) { fileName = (("noFeatureNameSet"+ missingNameCounter ++)+".kml"); } else { fileName = kmzFile.getFeature().getName(); if (!fileName.endsWith(".kml")) { fileName += ".kml"; } } if (mainfile) { fileName = "doc.kml"; } out.putNextEntry(new ZipEntry(URLEncoder.encode(fileName, "UTF-8"))); kmzFile.marshal(out); out.closeEntry(); }
/** * fluent setter * @see #setAbstractView(AbstractView) * * @param abstractView * required parameter */ public Feature withAbstractView(final AbstractView abstractView) { this.setAbstractView(abstractView); return this; }
@Override public Tour clone() { Tour copy; copy = ((Tour) super.clone()); copy.playlist = ((playlist == null)?null:((Playlist) playlist.clone())); return copy; }