Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cloudbees.sdk.commands.app;
 
 

Author(s):
Fabian Donze
@XStreamAlias("appserver")
public class AppServerXML {
    @XStreamImplicit(itemFieldName="resource")
    private List<ResourceSettingsresources;
    public AppServerXML() {
    }
    public List<ResourceSettingsgetResources() {
        if ( == null)
             = new ArrayList<ResourceSettings>();
        return ;
    }
    public void setResources(List<ResourceSettingsresources) {
        this. = resources;
    }
    private static XStream createXStream() {
        XStream xstream = new XStream();
        xstream.processAnnotations(AppServerXML.class);
        xstream.processAnnotations(ParameterSettings.class);
        xstream.processAnnotations(ResourceSettings.class);
        return xstream;
    }
    public static void toXML(AppServerXML appServerXMLFileOutputStream fos) {
        XStream xstream = createXStream();
        xstream.toXML(appServerXMLfos);
    }
    @Override
    public String toString() {
        return "AppServerXML{" +
                ", resources=" +  +
                '}';
    }
New to GrepCode? Check out our FAQ X