/** * add a value to the feature property collection * * @param feature * Objects of the following type are allowed in the list: {@code <}{@link Container}{@code>}{@link JAXBElement}{@code <}{@link GroundOverlay}{@code>}{@link JAXBElement}{@code <}{@link NetworkLink}{@code>}{@link JAXBElement}{@code <}{@link Folder}{@code>}{@link JAXBElement}{@code <}{@link PhotoOverlay}{@code>}{@link JAXBElement}{@code <}{@link Document}{@code>}{@link JAXBElement}{@code <}{@link Tour}{@code>}{@link JAXBElement}{@code <}{@link ScreenOverlay}{@code>}{@link JAXBElement}{@code <}{@link Feature}{@code>}{@link JAXBElement}{@code <}{@link Placemark}{@code>}{@link JAXBElement}{@code <}{@link Overlay}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Folder addToFeature(final Feature feature) { this.getFeature().add(feature); return this; }
/** * add a value to the feature property collection * * @param feature * Objects of the following type are allowed in the list: {@code <}{@link Container}{@code>}{@link JAXBElement}{@code <}{@link GroundOverlay}{@code>}{@link JAXBElement}{@code <}{@link NetworkLink}{@code>}{@link JAXBElement}{@code <}{@link Folder}{@code>}{@link JAXBElement}{@code <}{@link PhotoOverlay}{@code>}{@link JAXBElement}{@code <}{@link Document}{@code>}{@link JAXBElement}{@code <}{@link Tour}{@code>}{@link JAXBElement}{@code <}{@link ScreenOverlay}{@code>}{@link JAXBElement}{@code <}{@link Feature}{@code>}{@link JAXBElement}{@code <}{@link Placemark}{@code>}{@link JAXBElement}{@code <}{@link Overlay}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Folder addToFeature(final Feature feature) { this.getFeature().add(feature); return this; }
/** * Creates a new instance of {@link Document} and adds it to feature. * This method is a short version for: * <code> * Document document = new Document(); * this.getFeature().add(document); </code> * * */ public Document createAndAddDocument() { Document newValue = new Document(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Tour} and adds it to feature. * This method is a short version for: * <code> * Tour tour = new Tour(); * this.getFeature().add(tour); </code> * * */ public Tour createAndAddTour() { Tour newValue = new Tour(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link PhotoOverlay} and adds it to feature. * This method is a short version for: * <code> * PhotoOverlay photoOverlay = new PhotoOverlay(); * this.getFeature().add(photoOverlay); </code> * * */ public PhotoOverlay createAndAddPhotoOverlay() { PhotoOverlay newValue = new PhotoOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link NetworkLink} and adds it to feature. * This method is a short version for: * <code> * NetworkLink networkLink = new NetworkLink(); * this.getFeature().add(networkLink); </code> * * */ public NetworkLink createAndAddNetworkLink() { NetworkLink newValue = new NetworkLink(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Document} and adds it to feature. * This method is a short version for: * <code> * Document document = new Document(); * this.getFeature().add(document); </code> * * */ public Document createAndAddDocument() { Document newValue = new Document(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link GroundOverlay} and adds it to feature. * This method is a short version for: * <code> * GroundOverlay groundOverlay = new GroundOverlay(); * this.getFeature().add(groundOverlay); </code> * * */ public GroundOverlay createAndAddGroundOverlay() { GroundOverlay newValue = new GroundOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and adds it to feature. * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.getFeature().add(placemark); </code> * * */ public Placemark createAndAddPlacemark() { Placemark newValue = new Placemark(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link ScreenOverlay} and adds it to feature. * This method is a short version for: * <code> * ScreenOverlay screenOverlay = new ScreenOverlay(); * this.getFeature().add(screenOverlay); </code> * * */ public ScreenOverlay createAndAddScreenOverlay() { ScreenOverlay newValue = new ScreenOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Folder} and adds it to feature. * This method is a short version for: * <code> * Folder folder = new Folder(); * this.getFeature().add(folder); </code> * * */ public Folder createAndAddFolder() { Folder newValue = new Folder(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link GroundOverlay} and adds it to feature. * This method is a short version for: * <code> * GroundOverlay groundOverlay = new GroundOverlay(); * this.getFeature().add(groundOverlay); </code> * * */ public GroundOverlay createAndAddGroundOverlay() { GroundOverlay newValue = new GroundOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link NetworkLink} and adds it to feature. * This method is a short version for: * <code> * NetworkLink networkLink = new NetworkLink(); * this.getFeature().add(networkLink); </code> * * */ public NetworkLink createAndAddNetworkLink() { NetworkLink newValue = new NetworkLink(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and adds it to feature. * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.getFeature().add(placemark); </code> * * */ public Placemark createAndAddPlacemark() { Placemark newValue = new Placemark(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Tour} and adds it to feature. * This method is a short version for: * <code> * Tour tour = new Tour(); * this.getFeature().add(tour); </code> * * */ public Tour createAndAddTour() { Tour newValue = new Tour(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link ScreenOverlay} and adds it to feature. * This method is a short version for: * <code> * ScreenOverlay screenOverlay = new ScreenOverlay(); * this.getFeature().add(screenOverlay); </code> * * */ public ScreenOverlay createAndAddScreenOverlay() { ScreenOverlay newValue = new ScreenOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link PhotoOverlay} and adds it to feature. * This method is a short version for: * <code> * PhotoOverlay photoOverlay = new PhotoOverlay(); * this.getFeature().add(photoOverlay); </code> * * */ public PhotoOverlay createAndAddPhotoOverlay() { PhotoOverlay newValue = new PhotoOverlay(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Folder} and adds it to feature. * This method is a short version for: * <code> * Folder folder = new Folder(); * this.getFeature().add(folder); </code> * * */ public Folder createAndAddFolder() { Folder newValue = new Folder(); this.getFeature().add(newValue); return newValue; }
@Override public Folder clone() { Folder copy; copy = ((Folder) super.clone()); copy.feature = new ArrayList<Feature>((getFeature().size())); for (Feature iter: feature) { copy.feature.add(iter.clone()); } copy.folderSimpleExtension = new ArrayList<Object>((getFolderSimpleExtension().size())); for (Object iter: folderSimpleExtension) { copy.folderSimpleExtension.add(iter); } copy.folderObjectExtension = new ArrayList<AbstractObject>((getFolderObjectExtension().size())); for (AbstractObject iter: folderObjectExtension) { copy.folderObjectExtension.add(iter.clone()); } return copy; }
/** * Adds features to the folder own list * * @param folder * @param features */ public void addFeatures(Folder folder, List<Feature> features) { List<Feature> originalFeatures = folder.getFeature(); if (originalFeatures == null || originalFeatures.size() == 0) { folder.setFeature(features); } else { // in this case, compose the already existing features with the // dynamically generated ones folder.setFeature(new CompositeList<Feature>(originalFeatures, features)); } }