Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 02:05:27 AM CET 
  //
  
  
  package net.opengis.wcs.v_1_1_1;
 
 import java.util.List;
Brief metadata describing one or more coverages available from this WCS server.

Java-Klasse für CoverageSummaryType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="CoverageSummaryType">
   <complexContent>
     <extension base="{http://www.opengis.net/ows/1.1}DescriptionType">
       <sequence>
         <element ref="{http://www.opengis.net/ows/1.1}Metadata" maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://www.opengis.net/ows/1.1}WGS84BoundingBox" maxOccurs="unbounded" minOccurs="0"/>
         <element name="SupportedCRS" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
         <element name="SupportedFormat" type="{http://www.opengis.net/ows/1.1}MimeType" maxOccurs="unbounded" minOccurs="0"/>
         <choice>
           <sequence>
             <element ref="{http://www.opengis.net/wcs/1.1.1}CoverageSummary" maxOccurs="unbounded"/>
             <element ref="{http://www.opengis.net/wcs/1.1.1}Identifier" minOccurs="0"/>
           </sequence>
           <element ref="{http://www.opengis.net/wcs/1.1.1}Identifier"/>
         </choice>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CoverageSummaryType", propOrder = {
     "content"
 })
 public class CoverageSummaryType
     extends DescriptionType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElementRefs({
         @XmlElementRef(name = "WGS84BoundingBox", namespace = "http://www.opengis.net/ows/1.1", type = JAXBElement.class),
         @XmlElementRef(name = "Identifier", namespace = "http://www.opengis.net/wcs/1.1.1", type = JAXBElement.class),
         @XmlElementRef(name = "CoverageSummary", namespace = "http://www.opengis.net/wcs/1.1.1", type = JAXBElement.class),
         @XmlElementRef(name = "SupportedFormat", namespace = "http://www.opengis.net/wcs/1.1.1", type = JAXBElement.class),
         @XmlElementRef(name = "Metadata", namespace = "http://www.opengis.net/ows/1.1", type = JAXBElement.class),
         @XmlElementRef(name = "SupportedCRS", namespace = "http://www.opengis.net/wcs/1.1.1", type = JAXBElement.class)
     })
     protected List<JAXBElement<?>> content;

    
Ruft das restliche Contentmodell ab.

Sie rufen diese "catch-all"-Eigenschaft aus folgendem Grund ab: Der Feldname "Identifier" wird von zwei verschiedenen Teilen eines Schemas verwendet. Siehe: Zeile 95 von file:/C:/Projects/dev.java.net/ogc-schemas/wcs/1.1.1/schema/src/main/resources/wcs/1.1.1/wcsContents.xsd Zeile 89 von file:/C:/Projects/dev.java.net/ogc-schemas/wcs/1.1.1/schema/src/main/resources/wcs/1.1.1/wcsContents.xsd

Um diese Eigenschaft zu entfernen, wenden Sie eine Eigenschaftenanpassung für eine der beiden folgenden Deklarationen an, um deren Namen zu ändern: Gets the value of the content property.

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 set method for the content property.

For example, to add a new item, do as follows:

    getContent().add(newItem);
 

Objects of the following type(s) are allowed in the list <> <> <> <> <> <>

    public List<JAXBElement<?>> getContent() {
        if ( == null) {
             = new ArrayList<JAXBElement<?>>();
        }
        return this.;
    }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            List<JAXBElement<?>> theContent;
            theContent = this.getContent();
            strategy.appendField(locatorthis"content"buffertheContent);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CoverageSummaryType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CoverageSummaryType that = ((CoverageSummaryTypeobject);
        {
            List<JAXBElement<?>> lhsContent;
            lhsContent = this.getContent();
            List<JAXBElement<?>> rhsContent;
            rhsContent = that.getContent();
            if (!strategy.equals(LocatorUtils.property(thisLocator"content"lhsContent), LocatorUtils.property(thatLocator"content"rhsContent), lhsContentrhsContent)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            List<JAXBElement<?>> theContent;
            theContent = this.getContent();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"content"theContent), currentHashCodetheContent);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof CoverageSummaryType) {
            final CoverageSummaryType copy = ((CoverageSummaryTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<JAXBElement<?>> sourceContent;
                sourceContent = this.getContent();
                @SuppressWarnings("unchecked")
                List<JAXBElement<?>> copyContent = ((List<JAXBElement<?>> ) strategy.copy(LocatorUtils.property(locator"content"sourceContent), sourceContent));
                copy.content = null;
                List<JAXBElement<?>> uniqueContentl = copy.getContent();
                uniqueContentl.addAll(copyContent);
            } else {
                copy.content = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CoverageSummaryType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof CoverageSummaryType) {
            final CoverageSummaryType target = this;
            final CoverageSummaryType leftObject = ((CoverageSummaryTypeleft);
            final CoverageSummaryType rightObject = ((CoverageSummaryTyperight);
            {
                List<JAXBElement<?>> lhsContent;
                lhsContent = leftObject.getContent();
                List<JAXBElement<?>> rhsContent;
                rhsContent = rightObject.getContent();
                target.content = null;
                List<JAXBElement<?>> uniqueContentl = target.getContent();
                uniqueContentl.addAll(((List<JAXBElement<?>> ) strategy.merge(LocatorUtils.property(leftLocator"content"lhsContent), LocatorUtils.property(rightLocator"content"rhsContent), lhsContentrhsContent)));
            }
        }
    }
    public void setContent(List<JAXBElement<?>> value) {
        List<JAXBElement<?>> draftl = this.getContent();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X