Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package com.example.stock;
  
This object contains factory methods for each Java content interface and Java element interface generated in the com.example.stock package.

An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.

 
 public class ObjectFactory {
 
     private final static QName _TestNotDeclaredAtSourceFault_QNAME = new QName("http://www.example.com/stock""TestNotDeclaredAtSourceFault");
     private final static QName _StockQuoteOfferResponse_QNAME = new QName("http://www.example.com/stock""stockQuoteOfferResponse");
     private final static QName _MarketClosedFault_QNAME = new QName("http://www.example.com/stock""MarketClosedFault");

    
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.example.stock
 
     public ObjectFactory() {
     }

    
Create an instance of
 
         return new StockQuoteOfferResponseType();
     }

    
Create an instance of
 
         return new InvalidSymbolFault();
     }

    
Create an instance of
 
     public StockOffer createStockOffer() {
         return new StockOffer();
     }

    
Create an instance of
 
         return new StockQuoteOffer();
     }

    
Create an instance of
 
     public AnyElement createAnyElement() {
         return new AnyElement();
     }

    
Create an instance of <>}
 
     @XmlElementDecl(namespace = "http://www.example.com/stock", name = "TestNotDeclaredAtSourceFault")
         return new JAXBElement<String>(String.classnullvalue);
     }

    
Create an instance of <>}
 
     @XmlElementDecl(namespace = "http://www.example.com/stock", name = "stockQuoteOfferResponse")
     }

    
Create an instance of <>}
 
    @XmlElementDecl(namespace = "http://www.example.com/stock", name = "MarketClosedFault")
        return new JAXBElement<Integer>(Integer.classnullvalue);
    }
New to GrepCode? Check out our FAQ X