Package com.google.api.ads.dfp.axis.v201211

Examples of com.google.api.ads.dfp.axis.v201211.EnvironmentType


    this.plan = (ApplicationClientType) plan.getValue();
    createClient();
  }

    protected EnvironmentType getEnvironment(boolean create) {
      EnvironmentType type = null;
        Object plan = getPlan().getValue();
        if (ApplicationClientType.class.isInstance(plan)) {
            type = ((ApplicationClientType) plan).getServerEnvironment();
            if (type == null && create) {
                type = getDeploymentObjectFactory().createEnvironmentType();
View Full Code Here


            }
        });
    }

    protected EnvironmentType getEnvironment(boolean create) {
        EnvironmentType type = null;
        Object plan = getPlan().getValue();
        if (ApplicationClientType.class.isInstance(plan)) {
            type = ((ApplicationClientType) plan).getClientEnvironment();
            if (type == null && create) {
                type = getDeploymentObjectFactory().createEnvironmentType();
View Full Code Here

            return moduleId.getType();
        return "";
    }

    protected boolean isInverseClassloading() {
        EnvironmentType type = getEnvironment(false);
        return type != null && type.getInverseClassloading() != null;
    }
View Full Code Here

        EnvironmentType type = getEnvironment(false);
        return type != null && type.getInverseClassloading() != null;
    }

    protected boolean isSuppressDefaultEnvironment() {
        EnvironmentType type = getEnvironment(false);
        return type != null && type.getSuppressDefaultEnvironment() != null;
    }
View Full Code Here

        return false;
    }

    protected void setInverseClassloading(boolean enable) {
        if (enable) {
            EnvironmentType type = getEnvironment(true);
            type.setInverseClassloading(getDeploymentObjectFactory().createEmptyType());
        } else {
            EnvironmentType type = getEnvironment(false);
            if (type != null) {
                type.setInverseClassloading(null);
            }
        }
    }
View Full Code Here

        }
    }

    protected void setSuppressDefaultEnvironment(boolean enable) {
        if (enable) {
            EnvironmentType type = getEnvironment(true);
            type.setSuppressDefaultEnvironment(getDeploymentObjectFactory().createEmptyType());
        } else {
            EnvironmentType type = getEnvironment(false);
            if (type != null) {
                type.setSuppressDefaultEnvironment(null);
            }
        }
    }
View Full Code Here

        }
        return null;
    }

    protected EnvironmentType getEnvironment(boolean create) {
        EnvironmentType type = null;
        Object plan = getPlan().getValue();
        if (WebAppType.class.isInstance(plan)) {
            type = ((WebAppType) plan).getEnvironment();
            if (type == null && create) {
                type = getDeploymentObjectFactory().createEnvironmentType();
View Full Code Here

        return type;
    }
   
    private DependenciesType getDependencies(boolean create) {
        EnvironmentType env = getEnvironment(create);
        if(env != null) {
            DependenciesType dep = env.getDependencies();
            if (dep == null && create) {
                dep = getDeploymentObjectFactory().createDependenciesType();
                env.setDependencies(dep);
            }
            return dep;
        }
        return null;
    }
View Full Code Here

        }
        return null;
    }

    private ArtifactType getModuleId(boolean create) {
        EnvironmentType type = getEnvironment(create);
        if (type != null) {
            ArtifactType moduleId = type.getModuleId();
            if (moduleId == null && create) {
                moduleId = getDeploymentObjectFactory().createArtifactType();
                type.setModuleId(moduleId);
            }
            return moduleId;
        }
        return null;
    }
View Full Code Here

        return getDependencies().getDependency();
    }

    private DependenciesType getDependencies() {
        if (environment == null) {
            environment = new EnvironmentType();
        }
        if (environment.getDependencies() == null) {
            environment.setDependencies(new DependenciesType());
        }
        return environment.getDependencies();
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.axis.v201211.EnvironmentType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.