com.sun.tools.ws.processor.model.Block Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxws-tools Show documentation
Show all versions of jaxws-tools Show documentation
Open source Reference Implementation of JSR-224: Java API for XML Web Services
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.tools.ws.processor.model;
import com.sun.tools.ws.wsdl.framework.Entity;
import com.sun.tools.ws.wsdl.document.*;
import javax.xml.namespace.QName;
/**
*
* @author WS Development Team
*/
public class Block extends ModelObject {
public static final int UNBOUND = 0;
public static final int BODY = 1;
public static final int HEADER = 2;
public static final int ATTACHMENT = 3;
public Block(QName name, AbstractType type, Entity entity) {
super(entity);
this.name = name;
this.type = type;
}
public QName getName() {
return name;
}
public AbstractType getType() {
return type;
}
public void setType(AbstractType type) {
this.type = type;
}
public int getLocation() {
return location;
}
public void setLocation(int i) {
location = i;
}
public void accept(ModelVisitor visitor) throws Exception {
visitor.visit(this);
}
private final QName name;
private AbstractType type;
private int location;
}