index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy/model/DeployableObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.enterprise.deploy.model;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Enumeration;
import javax.enterprise.deploy.model.exceptions.DDBeanCreateException;
import javax.enterprise.deploy.shared.ModuleType;
/**
* The DeployableObject interface is an abstract representation of a J2EE deployable
* module (JAR, WAR, RAR, EAR). A DeployableObject provides access to the module's
* deployment descriptor and class files.
*
* @version $Rev$ $Date$
*/
public interface DeployableObject {
/**
* Return the ModuleType of deployment descriptor (i.e., EAR, JAR, WAR, RAR)
* this deployable object represents. Values are found in DeploymentManager.
*
* @return The ModuleType of deployable object
*/
public ModuleType getType();
/**
* Return the top level standard bean representing the root of the deployment descriptor.
*
* @return A standard bean representing the deployment descriptor.
*/
public DDBeanRoot getDDBeanRoot();
/**
* Return an array of standard beans representing the XML content returned based upon the XPath.
*
* @param xpath AAn XPath string identifying the data to be extracted from the deployment descriptor.
*
* @return an array of DDBeans or <code>null</code> if no matching data is found.
*/
public DDBean[] getChildBean(String xpath);
/**
*
* @param xpath An xpath string referring to a location in the deployment descriptor
*
* @return a list XML content or <code>null</code> if no matching data is found.
*/
public String[] getText(String xpath);
/**
* Retrieve the specified class from this deployable module.
* <p>One use: to get all finder methods from an EJB. If the tool is attempting to package a
* module and retrieve a class from the package, the class request may fail. The class may
* not yet be available. The tool should respect the manifest Class-Path entries.</p>
*
* @param className Class to retrieve.
*
* @return Class representation of the class
*/
public Class getClassFromScope(String className);
/**
* A convenience method to return the deployment descriptor
* document version number of the primary deployment descriptor
* for the module (e.g. web.xml, ejb-jar.xml, ra.xml, application.xml,
* and application-client.xml.) The version number for documents
* webservices.xml , webservicesclient.xml and the like are not returned
* by this method. DDBeanRoot.getDDBeanRootVersion should be used
* instead.
*
* This method is being deprecated. DDBeanRoot.getDDBeanRootVersion
* should be used instead.
*
* @deprecated As of version 1.1, replace by DDBeanRoot.getDDBeanRootVersion()
*
* @return a string that is the version number of the XML instance document.
* Null is returned if no version number can be found.
*/
public String getModuleDTDVersion();
/**
* Returns a DDBeanRoot object for the XML instance document named.
* This method should be used to return DDBeanRoot objects for non deployment
* descriptor XML instance documents such as WSDL files.
*
* @since 1.1
*
* @param filename the full path name from the root of the module of the xml
* instance document for which a DDBeanRoot object is to be returned.
*
* @return a DDBeanRoot object for the XML data.
*
* @throws java.io.FileNotFoundException if the named file can not be found
* @throws javax.enterprise.deploy.model.exceptions.DDBeanCreateException
* if an error is encountered creating the DDBeanRoot object.
*/
public DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException;
/**
* Returns an enumeration of the module file entries. All elements in the
* enumeration are of type String. Each String represents a file name relative
* to the root of the module.
*
* @since 1.1
*
* @return an enumeration of the archive file entries.
*/
public Enumeration entries();
/**
* Returns the InputStream for the given entry name.
* The file name must be relative to the root of the module.
*
* @since 1.1
*
* @param name the file name relative to the root of the module.
*
* @return the InputStream for the given entry name or null if not found.
*/
public InputStream getEntry(String name);
} | 1,600 |
0 | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy/model/DDBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.enterprise.deploy.model;
/**
* An interface for beans that represent a fragment of a standard deployment
* descriptor. A link is provided to the J2EE application that includes this bean.
*
* @version $Rev$ $Date$
*/
public interface DDBean {
/**
* Returns the location in the deployment descriptor from which this bean is derived.
*
* @return The XPath of this Bean.
*/
public String getXpath();
/**
* Returns the XML text for by this bean.
*
* @return The XML text for this Bean.
*/
public String getText();
/**
* Returns the ATTLIST ID value for the XML tag defined by the Xpath for this bean.
*
* @return The XML text for this Bean or 'null' if no attribute was specifed with the tag.
*/
public String getId();
/**
* Return the root element for this DDBean.
*
* @return The DDBeanRoot at the root of this DDBean tree.
*/
public DDBeanRoot getRoot();
/**
* Return a list of DDBeans based upon the XPath.
*
* @param xpath An XPath string referring to a location in the same deployment descriptor as this standard bean.
*
* @return a list of DDBeans or 'null' if no matching XML data is found.
*/
public DDBean[] getChildBean(String xpath);
/**
* Return a list of text values for a given XPath in the deployment descriptor.
*
* @param xpath An XPath.
*
* @return The list text values for this XPath or 'null' if no matching XML data is found.
*/
public String[] getText(String xpath);
/**
* Register a listener for a specific XPath.
*
* @param xpath The XPath this listener is to be registered for.
* @param xpl The listener object.
*/
public void addXpathListener(String xpath, XpathListener xpl);
/**
* Unregister a listener for a specific XPath.
*
* @param xpath The XPath this listener is to be registered for.
* @param xpl The listener object.
*/
public void removeXpathListener(String xpath, XpathListener xpl);
/**
* Returns the list of attribute names associated with XML element.
*
* @since 1.1
*
* @return a list of attribute names on this element. Null
* is returned if there are no attributes.
*/
public String[] getAttributeNames();
/**
* Returns the string value of the named attribute.
*
* @since 1.1
*
* @return the value of the attribute. Null is returned
* if there is no such attribute.
*/
public String getAttributeValue(String attrName);
} | 1,601 |
0 | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy/model/DDBeanRoot.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.enterprise.deploy.model;
import javax.enterprise.deploy.shared.ModuleType;
/**
* An interface that represents the root of a standard deployment descriptor.
* A DDBeanRoot is a type of DDBean.
*
* @version $Rev$ $Date$
*/
public interface DDBeanRoot extends DDBean {
/**
* Return the ModuleType of deployment descriptor.
*
* @return The ModuleType of deployment descriptor
*/
public ModuleType getType();
/**
* Return the containing DeployableObject
*
* @return The DeployableObject that contains this deployment descriptor
*/
public DeployableObject getDeployableObject();
/**
* A convenience method to return the DTD version number. The DeployableObject has this information.
*
* Note: the method getDDBeanRootVersion() is preferred to this method.
* @see #getDDBeanRootVersion
*
* @return a string containing the DTD version number
*/
public String getModuleDTDVersion();
/**
* A convenience method to return the version number of an
* XML instance document. This method is replacing the
* method DeployableObject.getModuleDTDVersion, because
* it returns the version number of any J2EE XML instance document
*
* @return <p>a string that is the version number of the XML instance document.
* Null is returned if no version number can be found.</p>
* <p>A module's deployment descriptor file always contains
* a document type identifier, DOCTYPE. The DOCTYPE statement
* contains the module DTD version number in the label of the
* statement.</p>
* <p>The format of the DOCTYPE statement is:</p>
* <pre><!DOCTYPE root_element PUBLIC "-//organization//label//language" "location"></pre>
* <dl>
* <dt>root_element</dt><dd>is the name of the root document in the DTD.</dd>
* <dt>organization</dt><dd>is the name of the organization responsible
* for the creation and maintenance of the DTD
* being referenced.</dd>
* <dt>label</dt><dd>is a unique descriptive name for the public text being
* referenced. </dd>
* <dt>language</dt><dd>is the ISO 639 language id representing the natural
* language encoding of th DTD.</dd>
* <dt>location</dt><dd>is the URL of the DTD.</dd>
* </dl>
* <p>An example J2EE deployment descriptor DOCTYPE statement is:</p>
* <pre><!DOCTYPE application-client PUBLIC
* "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN"
* "http://java.sun.com/dtd/application-client_1_3.dtd"></pre>
* <p>In this example the label is, "DTD J2EE Application Client 1.3",
* and the DTD version number is 1.3. A call to getModuleDTDVersion
* would return a string containing, "1.3".</p>
*/
public String getDDBeanRootVersion();
/**
* Return the XPath for this standard bean. The root XPath is "/".
*
* @return "/" this is the root standard bean.
*/
public String getXpath();
/**
* Returns the filename relative to the root of the module of the XML instance document this
* DDBeanRoot represents.
*
* @since 1.1
*
* @return String the filename relative to the root of the module
*/
public String getFilename();
} | 1,602 |
0 | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy/model | Create_ds/geronimo-specs/geronimo-j2ee-deployment_1.1_spec/src/main/java/javax/enterprise/deploy/model/exceptions/DDBeanCreateException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.enterprise.deploy.model.exceptions;
/**
* This exception reports errors in generating a DDBean.
*
* @since 1.1
*
* @version $Rev$ $Date$
*/
public class DDBeanCreateException extends Exception {
/**
* Creates new <code>DDBeanCreateException</code> without detail message.
*/
public DDBeanCreateException() {
super();
}
/**
* Constructs an <code>DDBeanCreateException</code> with the
* specified detail message.
*
* @param msg the detail message.
*/
public DDBeanCreateException(String msg) {
super(msg);
}
} | 1,603 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ValidationException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public class ValidationException extends JAXBException {
public ValidationException(String message) {
super(message);
}
public ValidationException(String message, String errorCode) {
super(message, errorCode);
}
public ValidationException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
public ValidationException(String message, Throwable cause) {
super(message, cause);
}
public ValidationException(Throwable cause) {
super(cause);
}
}
| 1,604 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/Marshaller.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.OutputStream;
import java.io.Writer;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.attachment.AttachmentMarshaller;
import javax.xml.validation.Schema;
import javax.xml.transform.Result;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamWriter;
import org.w3c.dom.Node;
import org.xml.sax.ContentHandler;
public interface Marshaller {
String JAXB_ENCODING = "jaxb.encoding";
String JAXB_FORMATTED_OUTPUT = "jaxb.formatted.output";
String JAXB_FRAGMENT = "jaxb.fragment";
String JAXB_NO_NAMESPACE_SCHEMA_LOCATION = "jaxb.noNamespaceSchemaLocation";
String JAXB_SCHEMA_LOCATION = "jaxb.schemaLocation";
abstract class Listener {
public void beforeMarshal(Object source) {
}
public void afterMarshal(Object source) {
}
}
<A extends XmlAdapter> A getAdapter(Class<A> type);
AttachmentMarshaller getAttachmentMarshaller();
ValidationEventHandler getEventHandler() throws JAXBException;
Listener getListener();
Node getNode(Object contentTree) throws JAXBException;
Object getProperty(String name) throws PropertyException;
Schema getSchema();
void marshal(Object jaxbElement, ContentHandler handler) throws JAXBException;
void marshal(Object jaxbElement, Node node) throws JAXBException;
void marshal(Object jaxbElement, OutputStream os) throws JAXBException;
void marshal(Object jaxbElement, Result result) throws JAXBException;
void marshal(Object jaxbElement, Writer writer) throws JAXBException;
void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException;
void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException;
<A extends XmlAdapter> void setAdapter(Class<A> type, A adapter);
void setAdapter(XmlAdapter adapter);
void setAttachmentMarshaller(AttachmentMarshaller am);
void setEventHandler(ValidationEventHandler handler) throws JAXBException;
void setListener(Listener listener);
void setProperty(String name, Object value) throws PropertyException;
void setSchema(Schema schema);
}
| 1,605 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/Element.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface Element {
}
| 1,606 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/Unmarshaller.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.File;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.attachment.AttachmentUnmarshaller;
import javax.xml.validation.Schema;
import javax.xml.transform.Source;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLStreamReader;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
public interface Unmarshaller {
abstract class Listener {
public void beforeUnmarshal(Object target, Object parent) {
}
public void afterUnmarshal(Object target, Object parent) {
}
}
<A extends XmlAdapter> A getAdapter(Class<A> type);
AttachmentUnmarshaller getAttachmentUnmarshaller();
ValidationEventHandler getEventHandler() throws JAXBException;
Listener getListener();
Object getProperty(String name) throws PropertyException;
Schema getSchema();
UnmarshallerHandler getUnmarshallerHandler();
boolean isValidating() throws JAXBException;
<A extends XmlAdapter> void setAdapter(Class<A> type, A adapter);
void setAdapter(XmlAdapter adapter);
void setAttachmentUnmarshaller(AttachmentUnmarshaller au);
void setEventHandler(ValidationEventHandler handler) throws JAXBException;
void setListener(Listener listener);
void setProperty(String name, Object value) throws PropertyException;
void setSchema(Schema schema);
void setValidating(boolean validating) throws JAXBException;
Object unmarshal(File f) throws JAXBException;
Object unmarshal(InputSource source) throws JAXBException;
Object unmarshal(InputStream is) throws JAXBException;
Object unmarshal(Node node) throws JAXBException;
<T> JAXBElement<T> unmarshal(Node node, Class<T> declaredType) throws JAXBException;
Object unmarshal(Reader reader) throws JAXBException;
Object unmarshal(Source source) throws JAXBException;
<T> JAXBElement<T> unmarshal(Source source, Class<T> declaredType) throws JAXBException;
Object unmarshal(URL url) throws JAXBException;
Object unmarshal(XMLEventReader reader) throws JAXBException;
<T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> declaredType) throws JAXBException;
Object unmarshal(XMLStreamReader reader) throws JAXBException;
<T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws JAXBException;
}
| 1,607 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/JAXBException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
public class JAXBException extends Exception {
private static final long serialVersionUID = 0x5dd94775L;
private String errorCode;
private Throwable linkedException;
public JAXBException(String message) {
this(message, null, null);
}
public JAXBException(String message, String errorCode) {
this(message, errorCode, null);
}
public JAXBException(String message, String errorCode, Throwable cause) {
super(message);
this.errorCode = errorCode;
this.linkedException = cause;
}
public JAXBException(String message, Throwable cause) {
this(message, null, cause);
}
public JAXBException(Throwable cause) {
this(null, null, cause);
}
public String getErrorCode() {
return errorCode;
}
public Throwable getLinkedException() {
return getCause();
}
public synchronized void setLinkedException(Throwable linkedException) {
this.linkedException = linkedException;
}
public String toString() {
return linkedException != null ?
super.toString() + "\n - with linked exception:\n[" + linkedException.toString() + "]" :
super.toString();
}
@Override
public Throwable getCause() {
return linkedException;
}
}
| 1,608 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ContextFinder.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.Properties;
import java.io.IOException;
import java.io.InputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class ContextFinder {
private static final String PLATFORM_DEFAULT_FACTORY_CLASS = "com.sun.xml.bind.v2.ContextFactory";
private static final String JAXB_CONTEXT_PROPERTY = JAXBContext.class.getName();
private static final String JAXB_CONTEXT_FACTORY = JAXBContext.JAXB_CONTEXT_FACTORY;
public static JAXBContext find(String contextPath, ClassLoader classLoader, Map properties) throws JAXBException {
contextPath = contextPath.trim();
if (contextPath.length() == 0 || contextPath.equals(":")) {
throw new JAXBException("Invalid contextPath");
}
String className = null;
String[] packages = contextPath.split("[:]");
for (String pkg : packages) {
String url = pkg.replace('.', '/') + "/jaxb.properties";
className = loadClassNameFromProperties(url, classLoader);
if (className != null) {
break;
}
}
if (className == null) {
className = System.getProperty(JAXB_CONTEXT_PROPERTY);
}
if (className == null) {
String url = "META-INF/services/" + JAXB_CONTEXT_PROPERTY;
className = loadClassName(url, classLoader);
}
if (className == null) {
className = PLATFORM_DEFAULT_FACTORY_CLASS;
}
Class spi = loadSpi(className, classLoader);
try {
Method m = spi.getMethod("createContext", new Class[] { String.class, ClassLoader.class, Map.class });
return (JAXBContext) m.invoke(null, new Object[] { contextPath, classLoader, properties });
} catch (NoSuchMethodException e) {
// will try JAXB 1.0 compatible createContext() method
} catch (Throwable t) {
throw new JAXBException("Unable to create context", t);
}
// try old JAXB 1.0 compatible createContext() method
try {
Method m = spi.getMethod("createContext", new Class[] { String.class, ClassLoader.class });
return (JAXBContext) m.invoke(null, new Object[] { contextPath, classLoader });
} catch (Throwable t) {
throw new JAXBException("Unable to create context", t);
}
}
public static JAXBContext find(Class[] classes, Map properties) throws JAXBException {
String className = null;
for (Class cl : classes) {
Package pkg = cl.getPackage();
if (pkg != null) {
String url = pkg.getName().replace('.', '/') + "/jaxb.properties";
className = loadClassNameFromProperties(url, cl.getClassLoader());
if (className != null) {
break;
}
}
}
if (className == null) {
className = System.getProperty(JAXB_CONTEXT_PROPERTY);
}
if (className == null) {
String url = "META-INF/services/" + JAXB_CONTEXT_PROPERTY;
className = loadClassName(url, Thread.currentThread().getContextClassLoader());
}
if (className == null) {
className = PLATFORM_DEFAULT_FACTORY_CLASS;
}
Class spi = loadSpi(className, Thread.currentThread().getContextClassLoader());
try {
Method m = spi.getMethod("createContext", new Class[] { Class[].class, Map.class });
return (JAXBContext) m.invoke(null, new Object[] { classes, properties });
} catch (Throwable t) {
throw new JAXBException("Unable to create context", t);
}
}
private static String loadClassNameFromProperties(String url, ClassLoader classLoader) throws JAXBException {
try {
InputStream is;
if (classLoader != null) {
is = classLoader.getResourceAsStream(url);
} else {
is = ClassLoader.getSystemResourceAsStream(url);
}
if (is != null) {
try {
Properties props = new Properties();
props.load(is);
String className = props.getProperty(JAXB_CONTEXT_FACTORY);
if (className == null) {
throw new JAXBException("jaxb.properties file " + url + " should contain a " + JAXB_CONTEXT_FACTORY + " property");
}
return className.trim();
} finally {
is.close();
}
} else {
return null;
}
} catch (IOException e) {
throw new JAXBException(e);
}
}
private static String loadClassName(String url, ClassLoader classLoader) throws JAXBException {
try {
InputStream is;
if (classLoader != null) {
is = classLoader.getResourceAsStream(url);
} else {
is = ClassLoader.getSystemResourceAsStream(url);
}
if (is != null) {
try {
BufferedReader r = new BufferedReader(new InputStreamReader(is, "UTF-8"));
return r.readLine().trim();
} finally {
is.close();
}
}
return null;
} catch (IOException e) {
throw new JAXBException(e);
}
}
private static Class loadSpi(String className, ClassLoader classLoader) throws JAXBException {
Class spiClass;
try {
if (classLoader != null) {
spiClass = classLoader.loadClass(className);
} else {
spiClass = Class.forName(className);
}
} catch (ClassNotFoundException e) {
throw new JAXBException("Provider " + className + " not found", e);
}
return spiClass;
}
}
| 1,609 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/PrintConversionEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface PrintConversionEvent extends ValidationEvent {
}
| 1,610 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/SchemaOutputResolver.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.IOException;
import javax.xml.transform.Result;
public abstract class SchemaOutputResolver {
public abstract Result createOutput(String namespaceUri, String suggestedFileName) throws IOException;
}
| 1,611 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/Validator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface Validator {
ValidationEventHandler getEventHandler() throws JAXBException;
Object getProperty(String name) throws PropertyException;
void setEventHandler(ValidationEventHandler handler) throws JAXBException;
void setProperty(String name, Object value) throws PropertyException;
boolean validate(Object subRoot) throws JAXBException;
boolean validateRoot(Object rootObj) throws JAXBException;
}
| 1,612 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/Binder.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import javax.xml.validation.Schema;
public abstract class Binder<XmlNode> {
public abstract ValidationEventHandler getEventHandler() throws JAXBException;
public abstract Object getJAXBNode(XmlNode xmlNode);
public abstract Object getProperty(String name) throws PropertyException;
public abstract Schema getSchema();
public abstract XmlNode getXMLNode(Object jaxbObject);
public abstract void marshal(Object jaxbObject, XmlNode xmlNode) throws JAXBException;
public abstract void setEventHandler(ValidationEventHandler handler) throws JAXBException;
public abstract void setProperty(String name, Object value) throws PropertyException;
public abstract void setSchema(Schema schema);
public abstract Object unmarshal(XmlNode xmlNode) throws JAXBException;
public abstract <T> JAXBElement<T> unmarshal(XmlNode xmlNode, Class<T> declaredType) throws JAXBException;
public abstract Object updateJAXB(XmlNode xmlNode) throws JAXBException;
public abstract XmlNode updateXML(Object jaxbObject) throws JAXBException;
public abstract XmlNode updateXML(Object jaxbObject, XmlNode xmlNode) throws JAXBException;
}
| 1,613 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ParseConversionEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface ParseConversionEvent extends ValidationEvent {
}
| 1,614 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ValidationEventHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface ValidationEventHandler {
boolean handleEvent(ValidationEvent event);
}
| 1,615 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ValidationEventLocator.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.net.URL;
import org.w3c.dom.Node;
public interface ValidationEventLocator {
int getColumnNumber();
int getLineNumber();
Node getNode();
Object getObject();
int getOffset();
URL getURL();
}
| 1,616 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/PropertyException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public class PropertyException extends JAXBException {
public PropertyException(String message) {
super(message);
}
public PropertyException(String message, String errorCode) {
super(message, errorCode);
}
public PropertyException(Throwable cause) {
super(cause);
}
public PropertyException(String message, Throwable cause) {
super(message, cause);
}
public PropertyException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
public PropertyException(String name, Object value) {
super("name: " + name + ", value: " + value);
}
}
| 1,617 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/DatatypeConverter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.util.Calendar;
import java.math.BigInteger;
import java.math.BigDecimal;
import javax.xml.namespace.QName;
import javax.xml.namespace.NamespaceContext;
public final class DatatypeConverter {
private static DatatypeConverterInterface converter = null;
private DatatypeConverter() {
}
public static void setDatatypeConverter(DatatypeConverterInterface converter) {
if (converter == null) {
throw new IllegalArgumentException("The DatatypeConverterInterface parameter must not be null");
}
if (DatatypeConverter.converter == null) {
DatatypeConverter.converter = converter;
}
}
public static String parseString(String lexicalXSDString) {
return converter.parseString(lexicalXSDString);
}
public static BigInteger parseInteger(String lexicalXSDInteger) {
return converter.parseInteger(lexicalXSDInteger);
}
public static int parseInt(String lexicalXSDInt) {
return converter.parseInt(lexicalXSDInt);
}
public static long parseLong(String lexicalXSDLong) {
return converter.parseLong(lexicalXSDLong);
}
public static short parseShort(String lexicalXSDShort) {
return converter.parseShort(lexicalXSDShort);
}
public static BigDecimal parseDecimal(String lexicalXSDDecimal) {
return converter.parseDecimal(lexicalXSDDecimal);
}
public static float parseFloat(String lexicalXSDFloat) {
return converter.parseFloat(lexicalXSDFloat);
}
public static double parseDouble(String lexicalXSDDouble) {
return converter.parseDouble(lexicalXSDDouble);
}
public static boolean parseBoolean(String lexicalXSDBoolean) {
return converter.parseBoolean(lexicalXSDBoolean);
}
public static byte parseByte(String lexicalXSDByte) {
return converter.parseByte(lexicalXSDByte);
}
public static QName parseQName(String lexicalXSDQName, NamespaceContext nsc) {
return converter.parseQName(lexicalXSDQName, nsc);
}
public static Calendar parseDateTime(String lexicalXSDDateTime) {
return converter.parseDateTime(lexicalXSDDateTime);
}
public static byte[] parseBase64Binary(String lexicalXSDBase64Binary) {
return converter.parseBase64Binary(lexicalXSDBase64Binary);
}
public static byte[] parseHexBinary(String lexicalXSDHexBinary) {
return converter.parseHexBinary(lexicalXSDHexBinary);
}
public static long parseUnsignedInt(String lexicalXSDUnsignedInt) {
return converter.parseUnsignedInt(lexicalXSDUnsignedInt);
}
public static int parseUnsignedShort(String lexicalXSDUnsignedShort) {
return converter.parseUnsignedShort(lexicalXSDUnsignedShort);
}
public static Calendar parseTime(String lexicalXSDTime) {
return converter.parseTime(lexicalXSDTime);
}
public static Calendar parseDate(String lexicalXSDDate) {
return converter.parseDate(lexicalXSDDate);
}
public static String parseAnySimpleType(String lexicalXSDAnySimpleType) {
return converter.parseAnySimpleType(lexicalXSDAnySimpleType);
}
public static String printString(String val) {
return converter.printString(val);
}
public static String printInteger(BigInteger val) {
return converter.printInteger(val);
}
public static String printInt(int val) {
return converter.printInt(val);
}
public static String printLong(long val) {
return converter.printLong(val);
}
public static String printShort(short val) {
return converter.printShort(val);
}
public static String printDecimal(BigDecimal val) {
return converter.printDecimal(val);
}
public static String printFloat(float val) {
return converter.printFloat(val);
}
public static String printDouble(double val) {
return converter.printDouble(val);
}
public static String printBoolean(boolean val) {
return converter.printBoolean(val);
}
public static String printByte(byte val) {
return converter.printByte(val);
}
public static String printQName(QName val, NamespaceContext nsc) {
return converter.printQName(val, nsc);
}
public static String printDateTime(Calendar val) {
return converter.printDateTime(val);
}
public static String printBase64Binary(byte val[]) {
return converter.printBase64Binary(val);
}
public static String printHexBinary(byte val[]) {
return converter.printHexBinary(val);
}
public static String printUnsignedInt(long val) {
return converter.printUnsignedInt(val);
}
public static String printUnsignedShort(int val) {
return converter.printUnsignedShort(val);
}
public static String printTime(Calendar val) {
return converter.printTime(val);
}
public static String printDate(Calendar val) {
return converter.printDate(val);
}
public static String printAnySimpleType(String val) {
return converter.printAnySimpleType(val);
}
}
| 1,618 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/JAXBElement.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.Serializable;
import javax.xml.namespace.QName;
public class JAXBElement<T> implements Serializable {
private static final long serialVersionUID = 1L;
public final static class GlobalScope {
}
protected final QName name;
protected final Class<T> declaredType;
protected final Class scope;
protected T value;
protected boolean nil;
public JAXBElement(QName name, Class<T> declaredType, Class scope, T value) {
this.nil = false;
if (declaredType == null || name == null) {
throw new IllegalArgumentException();
}
this.declaredType = declaredType;
if (scope == null) {
scope = GlobalScope.class;
}
this.scope = scope;
this.name = name;
setValue(value);
}
public JAXBElement(QName name, Class<T> declaredType, T value) {
this(name, declaredType, GlobalScope.class, value);
}
public Class<T> getDeclaredType() {
return declaredType;
}
public QName getName() {
return name;
}
public void setValue(T value) {
this.value = value;
}
public T getValue() {
return value;
}
public Class getScope() {
return scope;
}
public boolean isNil() {
return value == null || nil;
}
public void setNil(boolean nil) {
this.nil = nil;
}
public boolean isGlobalScope() {
return scope == GlobalScope.class;
}
public boolean isTypeSubstituted() {
if (value == null) {
return false;
} else {
return value.getClass() != declaredType;
}
}
}
| 1,619 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/TypeConstraintException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.PrintStream;
import java.io.PrintWriter;
public class TypeConstraintException extends RuntimeException {
private String errorCode;
private Throwable linkedException;
public TypeConstraintException(String message) {
this(message, null, null);
}
public TypeConstraintException(String message, String errorCode) {
this(message, errorCode, null);
}
public TypeConstraintException(String message, String errorCode, Throwable cause) {
super(message);
this.errorCode = errorCode;
this.linkedException = cause;
}
public TypeConstraintException(String message, Throwable cause) {
this(message, null, cause);
}
public TypeConstraintException(Throwable cause) {
this(null, null, cause);
}
public String getErrorCode() {
return errorCode;
}
public Throwable getLinkedException() {
return getCause();
}
public synchronized void setLinkedException(Throwable linkedException) {
this.linkedException = linkedException;
}
public String toString() {
return linkedException != null ?
super.toString() + "\n - with linked exception:\n[" + linkedException.toString() + "]" :
super.toString();
}
@Override
public Throwable getCause() {
return linkedException;
}
@Override
public void printStackTrace(PrintStream s) {
synchronized (s) {
s.println(this);
StackTraceElement[] trace = getStackTrace();
for (int i=0; i < trace.length; i++) {
s.println("\tat " + trace[i]);
}
Throwable ourCause = getCause();
if (ourCause != null) {
ourCause.printStackTrace(s);
}
}
}
@Override
public void printStackTrace(PrintWriter s) {
synchronized (s) {
s.println(this);
StackTraceElement[] trace = getStackTrace();
for (int i=0; i < trace.length; i++) {
s.println("\tat " + trace[i]);
}
Throwable ourCause = getCause();
if (ourCause != null) {
ourCause.printStackTrace(s);
}
}
}
}
| 1,620 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/DatatypeConverterInterface.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.util.Calendar;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.xml.namespace.QName;
import javax.xml.namespace.NamespaceContext;
public interface DatatypeConverterInterface {
String parseAnySimpleType(String lexicalXSDAnySimpleType);
byte[] parseBase64Binary(String lexicalXSDBase64Binary);
boolean parseBoolean(String lexicalXSDBoolean);
byte parseByte(String lexicalXSDByte);
Calendar parseDate(String lexicalXSDDate);
Calendar parseDateTime(String lexicalXSDDateTime);
BigDecimal parseDecimal(String lexicalXSDDecimal);
double parseDouble(String lexicalXSDDouble);
float parseFloat(String lexicalXSDFloat);
byte[] parseHexBinary(String lexicalXSDHexBinary);
int parseInt(String lexicalXSDInt);
BigInteger parseInteger(String lexicalXSDInteger);
long parseLong(String lexicalXSDLong);
QName parseQName(String lexicalXSDQName, NamespaceContext nsc);
short parseShort(String lexicalXSDShort);
String parseString(String lexicalXSDString);
Calendar parseTime(String lexicalXSDTime);
long parseUnsignedInt(String lexicalXSDUnsignedInt);
int parseUnsignedShort(String lexicalXSDUnsignedShort);
String printAnySimpleType(String val);
String printBase64Binary(byte[] val);
String printBoolean(boolean val);
String printByte(byte val);
String printDate(Calendar val);
String printDateTime(Calendar val);
String printDecimal(BigDecimal val);
String printDouble(double val);
String printFloat(float val);
String printHexBinary(byte[] val);
String printInt(int val);
String printInteger(BigInteger val);
String printLong(long val);
String printQName(QName val, NamespaceContext nsc);
String printShort(short val);
String printString(String val);
String printTime(Calendar val);
String printUnsignedInt(long val);
String printUnsignedShort(int val);
}
| 1,621 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/UnmarshalException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public class UnmarshalException extends JAXBException {
public UnmarshalException(String message) {
super(message);
}
public UnmarshalException(String message, String errorCode) {
super(message, errorCode);
}
public UnmarshalException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
public UnmarshalException(String message, Throwable cause) {
super(message, cause);
}
public UnmarshalException(Throwable cause) {
super(cause);
}
}
| 1,622 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/JAXBIntrospector.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import javax.xml.namespace.QName;
public abstract class JAXBIntrospector {
public abstract QName getElementName(Object jaxbElement);
public static Object getValue(Object jaxbElement) {
if (jaxbElement instanceof JAXBElement) {
return ((JAXBElement) jaxbElement).getValue();
} else {
return jaxbElement;
}
}
public abstract boolean isElement(Object object);
}
| 1,623 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/ValidationEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface ValidationEvent {
int ERROR = 1;
int FATAL_ERROR = 2;
int WARNING = 0;
Throwable getLinkedException();
ValidationEventLocator getLocator();
String getMessage();
int getSeverity();
}
| 1,624 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/NotIdentifiableEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public interface NotIdentifiableEvent extends ValidationEvent {
}
| 1,625 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/UnmarshallerHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import org.xml.sax.ContentHandler;
public interface UnmarshallerHandler extends ContentHandler {
Object getResult() throws JAXBException, IllegalStateException;
}
| 1,626 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/JAXBContext.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
import java.io.IOException;
import java.util.Map;
import java.util.Collections;
import org.w3c.dom.Node;
public abstract class JAXBContext {
public static final String JAXB_CONTEXT_FACTORY = "javax.xml.bind.context.factory";
protected JAXBContext() {
}
public Binder<Node> createBinder() {
throw new UnsupportedOperationException();
}
public <T> Binder<T> createBinder(Class<T> domType) {
throw new UnsupportedOperationException();
}
public JAXBIntrospector createJAXBIntrospector() {
throw new UnsupportedOperationException();
}
public abstract Marshaller createMarshaller() throws JAXBException;
public abstract Unmarshaller createUnmarshaller() throws JAXBException;
public abstract Validator createValidator() throws JAXBException;
public void generateSchema(SchemaOutputResolver resolver) throws IOException {
throw new UnsupportedOperationException();
}
public static JAXBContext newInstance(Class... classesToBeBound) throws JAXBException {
return newInstance(classesToBeBound, Collections.<String, Object>emptyMap());
}
public static JAXBContext newInstance(Class[] classesToBeBound, Map<String, ?> properties) throws JAXBException {
for (Class cl : classesToBeBound) {
if (cl == null) {
throw new IllegalArgumentException();
}
}
return ContextFinder.find(classesToBeBound, properties);
}
public static JAXBContext newInstance(String contextPath) throws JAXBException {
return newInstance(contextPath, Thread.currentThread().getContextClassLoader());
}
public static JAXBContext newInstance(String contextPath, ClassLoader classLoader) throws JAXBException {
return newInstance(contextPath, classLoader, Collections.<String, Object>emptyMap());
}
public static JAXBContext newInstance(String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException {
return ContextFinder.find(contextPath, classLoader, properties);
}
}
| 1,627 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/MarshalException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind;
public class MarshalException extends JAXBException {
public MarshalException(String message) {
super(message);
}
public MarshalException(String message, String errorCode) {
super(message, errorCode);
}
public MarshalException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
public MarshalException(String message, Throwable cause) {
super(message, cause);
}
public MarshalException(Throwable cause) {
super(cause);
}
}
| 1,628 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/util/JAXBSource.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.util;
import javax.xml.transform.Source;
import javax.xml.transform.sax.SAXSource;
import javax.xml.bind.Marshaller;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import org.xml.sax.XMLReader;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.EntityResolver;
import org.xml.sax.DTDHandler;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.InputSource;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.XMLFilterImpl;
import org.xml.sax.ext.LexicalHandler;
public class JAXBSource extends SAXSource {
public JAXBSource(JAXBContext context, Object contentObject) throws JAXBException {
if (context == null) {
throw new JAXBException("context must not be null");
}
if (contentObject == null) {
throw new JAXBException("contentObject must not be null");
}
setXMLReader(new Reader(context.createMarshaller(), contentObject));
setInputSource(new InputSource());
}
public JAXBSource(final Marshaller marshaller, final Object contentObject) throws JAXBException {
if (marshaller == null) {
throw new JAXBException("marshaller must not be null");
}
if (contentObject == null) {
throw new JAXBException("contentObject must not be null");
}
setXMLReader(new Reader(marshaller, contentObject));
setInputSource(new InputSource());
}
private static class Reader implements XMLReader {
private LexicalHandler lexicalHandler;
private EntityResolver entityResolver;
private DTDHandler dtdHandler;
private XMLFilterImpl repeater;
private ErrorHandler errorHandler;
private final Marshaller marshaller;
private final Object contentObject;
public Reader(Marshaller marshaller, Object contentObject) {
this.marshaller = marshaller;
this.contentObject = contentObject;
repeater = new XMLFilterImpl();
}
public boolean getFeature(String name) throws SAXNotRecognizedException {
if (name.equals("http://xml.org/sax/features/namespaces")) {
return true;
}
if (name.equals("http://xml.org/sax/features/namespace-prefixes")) {
return false;
}
throw new SAXNotRecognizedException(name);
}
public void setFeature(String name, boolean value) throws SAXNotRecognizedException {
if (name.equals("http://xml.org/sax/features/namespaces") && value) {
return;
}
if (name.equals("http://xml.org/sax/features/namespace-prefixes") && !value) {
return;
}
throw new SAXNotRecognizedException(name);
}
public Object getProperty(String name) throws SAXNotRecognizedException {
if("http://xml.org/sax/properties/lexical-handler".equals(name)) {
return lexicalHandler;
}
throw new SAXNotRecognizedException(name);
}
public void setProperty(String name, Object value) throws SAXNotRecognizedException {
if("http://xml.org/sax/properties/lexical-handler".equals(name)) {
lexicalHandler = (LexicalHandler) value;
return;
}
throw new SAXNotRecognizedException(name);
}
public void setEntityResolver(EntityResolver resolver) {
entityResolver = resolver;
}
public EntityResolver getEntityResolver() {
return entityResolver;
}
public void setDTDHandler(DTDHandler handler) {
dtdHandler = handler;
}
public DTDHandler getDTDHandler() {
return dtdHandler;
}
public void setContentHandler(ContentHandler handler) {
repeater.setContentHandler(handler);
}
public ContentHandler getContentHandler() {
return repeater.getContentHandler();
}
public void setErrorHandler(ErrorHandler handler) {
errorHandler = handler;
}
public ErrorHandler getErrorHandler() {
return errorHandler;
}
public void parse(InputSource input) throws SAXException {
parse();
}
public void parse(String systemId) throws SAXException {
parse();
}
public void parse() throws SAXException {
try {
marshaller.marshal(contentObject, repeater);
} catch(JAXBException e) {
SAXParseException se = new SAXParseException(e.getMessage(), null, null, -1, -1, e);
if (errorHandler != null) {
errorHandler.fatalError(se);
}
throw se;
}
}
}
}
| 1,629 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/util/JAXBResult.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.util;
import javax.xml.transform.Result;
import javax.xml.transform.sax.SAXResult;
import javax.xml.bind.UnmarshallerHandler;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
public class JAXBResult extends SAXResult {
private final UnmarshallerHandler unmarshallerHandler;
public JAXBResult(JAXBContext context) throws JAXBException {
if (context == null) {
throw new JAXBException("context must not be null");
}
unmarshallerHandler = context.createUnmarshaller().getUnmarshallerHandler();
super.setHandler(unmarshallerHandler);
}
public JAXBResult(Unmarshaller unmarshaller) throws JAXBException {
if (unmarshaller == null) {
throw new JAXBException("unmarshaller must not be null");
}
unmarshallerHandler = unmarshaller.getUnmarshallerHandler();
super.setHandler(unmarshallerHandler);
}
public Object getResult() throws JAXBException {
return unmarshallerHandler.getResult();
}
}
| 1,630 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/util/ValidationEventCollector.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.util;
import java.util.ArrayList;
import javax.xml.bind.ValidationEventHandler;
import javax.xml.bind.ValidationEvent;
public class ValidationEventCollector implements ValidationEventHandler {
private ArrayList<ValidationEvent> events = new ArrayList<ValidationEvent>();
public ValidationEvent[] getEvents() {
return events.toArray(new ValidationEvent[events.size()]);
}
public boolean handleEvent(ValidationEvent event) {
events.add(event);
return event.getSeverity() != ValidationEvent.FATAL_ERROR;
}
public boolean hasEvents() {
return !events.isEmpty();
}
public void reset() {
events.clear();
}
}
| 1,631 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/attachment/AttachmentUnmarshaller.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.attachment;
import javax.activation.DataHandler;
public abstract class AttachmentUnmarshaller {
public abstract byte[] getAttachmentAsByteArray(String cid);
public abstract DataHandler getAttachmentAsDataHandler(String cid);
public boolean isXOPPackage() {
return false;
}
}
| 1,632 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/attachment/AttachmentMarshaller.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.attachment;
import javax.activation.DataHandler;
public abstract class AttachmentMarshaller {
public abstract String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName);
public abstract String addMtomAttachment(DataHandler data, String elementNamespace, String elementLocalName);
public abstract String addSwaRefAttachment(DataHandler data);
public boolean isXOPPackage() {
return false;
}
}
| 1,633 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAccessorOrder.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.PACKAGE, ElementType.TYPE})
public @interface XmlAccessorOrder {
XmlAccessOrder value() default XmlAccessOrder.UNDEFINED;
}
| 1,634 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlList.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
public @interface XmlList {
}
| 1,635 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAnyElement.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD })
public @interface XmlAnyElement {
boolean lax() default false;
Class<? extends DomHandler> value() default W3CDomHandler.class;
}
| 1,636 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlInlineBinaryData.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
public @interface XmlInlineBinaryData {
}
| 1,637 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlTransient.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlTransient {
}
| 1,638 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlNs.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {})
public @interface XmlNs {
String namespaceURI();
String prefix();
}
| 1,639 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAttachmentRef.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
public @interface XmlAttachmentRef {
}
| 1,640 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAccessorType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.PACKAGE, ElementType.TYPE })
public @interface XmlAccessorType {
XmlAccessType value() default XmlAccessType.PUBLIC_MEMBER;
}
| 1,641 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlIDREF.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlIDREF {
}
| 1,642 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlSchemaTypes.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PACKAGE)
public @interface XmlSchemaTypes {
XmlSchemaType[] value();
}
| 1,643 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElements.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlElements {
XmlElement[] value();
}
| 1,644 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElementWrapper.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlElementWrapper {
String name() default "##default";
String namespace() default "##default";
boolean nillable() default false;
}
| 1,645 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlMimeType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
public @interface XmlMimeType {
String value();
}
| 1,646 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlSchemaType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.PACKAGE})
public @interface XmlSchemaType {
final class DEFAULT {
}
String name();
String namespace() default "http://www.w3.org/2001/XMLSchema";
Class type() default DEFAULT.class;
}
| 1,647 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlRegistry.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface XmlRegistry {
}
| 1,648 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface XmlType {
final class DEFAULT {
}
Class factoryClass() default DEFAULT.class;
String factoryMethod() default "";
String name() default "##default";
String namespace() default "##default";
String[] propOrder() default "";
}
| 1,649 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlNsForm.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
public enum XmlNsForm {
UNQUALIFIED,
QUALIFIED,
UNSET
}
| 1,650 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAttribute.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD })
public @interface XmlAttribute {
String name() default "##default";
boolean required() default false;
String namespace() default "##default";
}
| 1,651 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAccessOrder.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
public enum XmlAccessOrder {
ALPHABETICAL,
UNDEFINED
}
| 1,652 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlMixed.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlMixed {
}
| 1,653 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElementDecl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface XmlElementDecl {
final class GLOBAL {
}
String name();
Class scope() default GLOBAL.class;
String namespace() default "##default";
String substitutionHeadNamespace() default "##default";
String substitutionHeadName() default "";
String defaultValue() default "\u0000";
}
| 1,654 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/DomHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.bind.ValidationEventHandler;
public interface DomHandler<ElementT, ResultT extends Result> {
ResultT createUnmarshaller(ValidationEventHandler errorHandler);
ElementT getElement(ResultT rt);
Source marshal(ElementT n, ValidationEventHandler errorHandler);
}
| 1,655 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlSchema.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PACKAGE)
public @interface XmlSchema {
XmlNsForm attributeFormDefault() default XmlNsForm.UNSET;
XmlNsForm elementFormDefault() default XmlNsForm.UNSET;
String namespace() default "";
XmlNs[] xmlns() default {};
}
| 1,656 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlID.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlID {
}
| 1,657 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElement.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD })
public @interface XmlElement {
final class DEFAULT {
}
String name() default "##default";
boolean nillable() default false;
boolean required() default false;
String namespace() default "##default";
String defaultValue() default "\u0000";
Class type() default DEFAULT.class;
}
| 1,658 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElementRef.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlElementRef {
final class DEFAULT {
}
String name() default "##default";
String namespace() default "";
Class type() default DEFAULT.class;
}
| 1,659 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/W3CDomHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.Source;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.bind.ValidationEventHandler;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.DocumentFragment;
public class W3CDomHandler implements DomHandler<Element, DOMResult> {
private DocumentBuilder builder;
public W3CDomHandler() {
}
public W3CDomHandler(DocumentBuilder builder) {
if (builder == null) {
throw new IllegalArgumentException();
}
this.builder = builder;
}
public DOMResult createUnmarshaller(ValidationEventHandler errorHandler) {
if (builder == null) {
return new DOMResult();
} else {
return new DOMResult(builder.newDocument());
}
}
public DocumentBuilder getBuilder() {
return builder;
}
public Element getElement(DOMResult rt) {
Node n = rt.getNode();
if (n instanceof Document) {
return ((Document)n).getDocumentElement();
}
if (n instanceof Element) {
return (Element)n;
}
if (n instanceof DocumentFragment) {
return (Element)n.getChildNodes().item(0);
} else {
throw new IllegalStateException(n.toString());
}
}
public Source marshal(Element n, ValidationEventHandler errorHandler) {
return new DOMSource(n);
}
public void setBuilder(DocumentBuilder builder) {
this.builder = builder;
}
}
| 1,660 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAnyAttribute.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD })
public @interface XmlAnyAttribute {
}
| 1,661 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlRootElement.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface XmlRootElement {
String name() default "##default";
String namespace() default "##default";
}
| 1,662 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlAccessType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
public enum XmlAccessType {
FIELD,
NONE,
PROPERTY,
PUBLIC_MEMBER
}
| 1,663 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlEnumValue.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface XmlEnumValue {
String value();
}
| 1,664 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlEnum.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface XmlEnum {
Class<?> value() default String.class;
}
| 1,665 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlValue.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlValue {
}
| 1,666 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/XmlElementRefs.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface XmlElementRefs {
XmlElementRef[] value();
}
| 1,667 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/XmlAdapter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
public abstract class XmlAdapter<ValueType, BoundType> {
protected XmlAdapter() {
}
public abstract ValueType marshal(BoundType v) throws Exception;
public abstract BoundType unmarshal(ValueType v) throws Exception;
}
| 1,668 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/HexBinaryAdapter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
import javax.xml.bind.DatatypeConverter;
public final class HexBinaryAdapter extends XmlAdapter<String, byte[]> {
public String marshal(byte[] v) {
return DatatypeConverter.printHexBinary(v);
}
public byte[] unmarshal(String v) {
return DatatypeConverter.parseHexBinary(v);
}
}
| 1,669 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/XmlJavaTypeAdapters.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.PACKAGE})
public @interface XmlJavaTypeAdapters {
XmlJavaTypeAdapter[] value();
}
| 1,670 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/NormalizedStringAdapter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
public final class NormalizedStringAdapter extends XmlAdapter<String, String> {
public String marshal(String v) {
return v;
}
public String unmarshal(String v) {
if (v == null) {
return null;
}
int i;
for (i = v.length() - 1; i >= 0 && !isWhiteSpaceExceptSpace(v.charAt(i)); i--);
if (i < 0) {
return v;
}
char buf[] = v.toCharArray();
buf[i--] = ' ';
for(; i >= 0; i--) {
if(isWhiteSpaceExceptSpace(buf[i])) {
buf[i] = ' ';
}
}
return new String(buf);
}
protected static boolean isWhiteSpaceExceptSpace(char ch) {
if (ch >= ' ') {
return false;
} else {
return ch == '\t' || ch == '\n' || ch == '\r';
}
}
}
| 1,671 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.PACKAGE, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER})
public @interface XmlJavaTypeAdapter {
final class DEFAULT {
}
Class<? extends XmlAdapter> value();
Class type() default DEFAULT.class;
}
| 1,672 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/annotation/adapters/CollapsedStringAdapter.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.annotation.adapters;
public class CollapsedStringAdapter extends XmlAdapter<String, String> {
public String marshal(String v) {
return v;
}
public String unmarshal(String v) {
if(v == null) {
return null;
}
int len = v.length();
int s;
for (s = 0; s < len && !isWhiteSpace(v.charAt(s)); s++);
if (s == len) {
return v;
}
StringBuffer result = new StringBuffer(len);
if (s != 0) {
for(int i = 0; i < s; i++) {
result.append(v.charAt(i));
}
result.append(' ');
}
boolean inStripMode = true;
for (int i = s + 1; i < len; i++) {
char ch = v.charAt(i);
boolean b = isWhiteSpace(ch);
if (inStripMode && b) {
continue;
}
inStripMode = b;
result.append(inStripMode ? ' ' : ch);
}
len = result.length();
if (len > 0 && result.charAt(len - 1) == ' ') {
result.setLength(len - 1);
}
return result.toString();
}
protected static boolean isWhiteSpace(char ch) {
if (ch > ' ') {
return false;
} else {
return ch == '\t' || ch == '\n' || ch == '\r' || ch == ' ';
}
}
}
| 1,673 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/AbstractUnmarshallerImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import java.io.File;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import java.net.MalformedURLException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.ValidationEventHandler;
import javax.xml.bind.UnmarshallerHandler;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.UnmarshalException;
import javax.xml.bind.JAXBException;
import javax.xml.bind.PropertyException;
import javax.xml.bind.attachment.AttachmentUnmarshaller;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.validation.Schema;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.dom.DOMSource;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLStreamReader;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
public abstract class AbstractUnmarshallerImpl implements Unmarshaller {
protected boolean validating;
private ValidationEventHandler eventHandler;
private XMLReader reader;
protected UnmarshalException createUnmarshalException(SAXException e) {
Exception nested = e.getException();
if (nested instanceof UnmarshalException) {
return (UnmarshalException)nested;
} else if(nested instanceof RuntimeException) {
throw (RuntimeException)nested;
} else if (nested != null) {
return new UnmarshalException(nested);
} else {
return new UnmarshalException(e);
}
}
protected XMLReader getXMLReader() throws JAXBException {
if (reader == null) {
try {
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setNamespaceAware(true);
parserFactory.setValidating(false);
reader = parserFactory.newSAXParser().getXMLReader();
} catch(ParserConfigurationException e) {
throw new JAXBException(e);
} catch(SAXException e) {
throw new JAXBException(e);
}
}
return reader;
}
public <A extends XmlAdapter> A getAdapter(Class<A> type) {
throw new UnsupportedOperationException();
}
public AttachmentUnmarshaller getAttachmentUnmarshaller() {
throw new UnsupportedOperationException();
}
public ValidationEventHandler getEventHandler() throws JAXBException {
return eventHandler;
}
public Listener getListener() {
throw new UnsupportedOperationException();
}
public Object getProperty(String name) throws PropertyException {
if(name == null) {
throw new IllegalArgumentException("name must not be null");
}
throw new PropertyException(name);
}
public Schema getSchema() {
throw new UnsupportedOperationException();
}
public boolean isValidating() throws JAXBException {
return validating;
}
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter) {
throw new UnsupportedOperationException();
}
public void setAdapter(XmlAdapter adapter) {
if (adapter == null) {
throw new IllegalArgumentException();
}
setAdapter((Class<XmlAdapter>) adapter.getClass(), adapter);
}
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
throw new UnsupportedOperationException();
}
public void setEventHandler(ValidationEventHandler handler) throws JAXBException {
if (handler == null) {
handler = new DefaultValidationEventHandler();
}
eventHandler = handler;
}
public void setListener(Listener listener) {
throw new UnsupportedOperationException();
}
public void setProperty(String name, Object value) throws PropertyException {
if(name == null) {
throw new IllegalArgumentException("name must not be null");
}
throw new PropertyException(name, value);
}
public void setSchema(Schema schema) {
throw new UnsupportedOperationException();
}
public void setValidating(boolean validating) throws JAXBException {
this.validating = validating;
}
public final Object unmarshal(File file) throws JAXBException {
if (file == null) {
throw new IllegalArgumentException("file must not be null");
}
try
{
String path = file.getAbsolutePath();
if (File.separatorChar != '/') {
path = path.replace(File.separatorChar, '/');
}
if (!path.startsWith("/")) {
path = "/" + path;
}
if (!path.endsWith("/") && file.isDirectory()) {
path = path + "/";
}
return unmarshal(new URL("file", "", path));
}
catch(MalformedURLException e) {
throw new IllegalArgumentException(e.getMessage());
}
}
public final Object unmarshal(InputSource source) throws JAXBException {
if (source == null) {
throw new IllegalArgumentException("source must not be null");
}
return unmarshal(getXMLReader(), source);
}
public final Object unmarshal(InputStream is) throws JAXBException {
if (is == null) {
throw new IllegalArgumentException("is must not be null");
}
return unmarshal(new InputSource(is));
}
public <T> JAXBElement<T> unmarshal(Node node, Class<T> declaredType) throws JAXBException {
throw new UnsupportedOperationException();
}
public final Object unmarshal(Reader reader) throws JAXBException {
if (reader == null) {
throw new IllegalArgumentException("reader must not be null");
}
return unmarshal(new InputSource(reader));
}
public Object unmarshal(Source source) throws JAXBException {
if (source == null) {
throw new IllegalArgumentException("source must not be null");
} else if (source instanceof SAXSource) {
SAXSource saxSource = (SAXSource) source;
XMLReader reader = saxSource.getXMLReader();
if (reader == null) {
reader = getXMLReader();
}
return unmarshal(reader, saxSource.getInputSource());
} else if (source instanceof StreamSource) {
StreamSource ss = (StreamSource) source;
InputSource is = new InputSource();
is.setSystemId(ss.getSystemId());
is.setByteStream(ss.getInputStream());
is.setCharacterStream(ss.getReader());
return unmarshal(is);
} else if (source instanceof DOMSource)
return unmarshal(((DOMSource) source).getNode());
else
throw new IllegalArgumentException();
}
protected abstract Object unmarshal(XMLReader xmlreader, InputSource inputsource) throws JAXBException;
public <T> JAXBElement<T> unmarshal(Source source, Class<T> declaredType) throws JAXBException {
throw new UnsupportedOperationException();
}
public final Object unmarshal(URL url) throws JAXBException {
if(url == null) {
throw new IllegalArgumentException("url must not be null");
}
return unmarshal(new InputSource(url.toExternalForm()));
}
public Object unmarshal(XMLEventReader reader) throws JAXBException {
throw new UnsupportedOperationException();
}
public <T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> declaredType) throws JAXBException {
throw new UnsupportedOperationException();
}
public Object unmarshal(XMLStreamReader reader) throws JAXBException {
throw new UnsupportedOperationException();
}
public <T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws JAXBException {
throw new UnsupportedOperationException();
}
}
| 1,674 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/ValidationEventLocatorImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import java.net.URL;
import java.net.MalformedURLException;
import javax.xml.bind.ValidationEventLocator;
import org.w3c.dom.Node;
import org.xml.sax.SAXParseException;
import org.xml.sax.Locator;
public class ValidationEventLocatorImpl implements ValidationEventLocator {
private URL url;
private int offset = -1;
private int lineNumber = -1;
private int columnNumber = -1;
private Object object;
private Node node;
public ValidationEventLocatorImpl() {
}
public ValidationEventLocatorImpl(Locator loc) {
if (loc == null) {
throw new IllegalArgumentException("loc must not be null");
}
url = toURL(loc.getSystemId());
columnNumber = loc.getColumnNumber();
lineNumber = loc.getLineNumber();
}
public ValidationEventLocatorImpl(SAXParseException e) {
if (e == null) {
throw new IllegalArgumentException("e must not be null");
}
url = toURL(e.getSystemId());
columnNumber = e.getColumnNumber();
lineNumber = e.getLineNumber();
}
public ValidationEventLocatorImpl(Node node) {
if (node == null) {
throw new IllegalArgumentException("node must not be null");
}
this.node = node;
}
public ValidationEventLocatorImpl(Object object) {
if (object == null) {
throw new IllegalArgumentException("object must not be null");
}
this.object = object;
}
private static URL toURL(String systemId) {
try {
return new URL(systemId);
}
catch (MalformedURLException e) {
return null;
}
}
public URL getURL() {
return url;
}
public void setURL(URL url) {
this.url = url;
}
public int getOffset() {
return offset;
}
public void setOffset(int offset) {
this.offset = offset;
}
public int getLineNumber() {
return lineNumber;
}
public void setLineNumber(int lineNumber) {
this.lineNumber = lineNumber;
}
public int getColumnNumber() {
return columnNumber;
}
public void setColumnNumber(int columnNumber) {
this.columnNumber = columnNumber;
}
public Object getObject() {
return object;
}
public void setObject(Object object) {
this.object = object;
}
public Node getNode() {
return node;
}
public void setNode(Node node) {
this.node = node;
}
public String toString() {
return "[node=" + getNode() + ", " +
"object=" + getObject() + ", " +
"url=" + getURL() + ", " +
"line=" + String.valueOf(getLineNumber()) + "," +
"col=" + String.valueOf(getColumnNumber()) + "," +
"offset=" + String.valueOf(getOffset()) + "]";
}
}
| 1,675 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/ParseConversionEventImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import javax.xml.bind.ParseConversionEvent;
import javax.xml.bind.ValidationEventLocator;
public class ParseConversionEventImpl extends ValidationEventImpl implements ParseConversionEvent {
public ParseConversionEventImpl(int severity, String message, ValidationEventLocator locator) {
super(severity, message, locator);
}
public ParseConversionEventImpl(int severity, String message, ValidationEventLocator locator, Throwable linkedException) {
super(severity, message, locator, linkedException);
}
}
| 1,676 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/ValidationEventImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import javax.xml.bind.ValidationEvent;
import javax.xml.bind.ValidationEventLocator;
public class ValidationEventImpl implements ValidationEvent {
private int severity;
private String message;
private Throwable linkedException;
private ValidationEventLocator locator;
public ValidationEventImpl(int severity, String message, ValidationEventLocator locator) {
this(severity, message, locator, null);
}
public ValidationEventImpl(int severity, String message, ValidationEventLocator locator, Throwable linkedException) {
setSeverity(severity);
this.message = message;
this.locator = locator;
this.linkedException = linkedException;
}
public int getSeverity() {
return severity;
}
public void setSeverity(int severity) {
if (severity != 0 && severity != 1 && severity != 2) {
throw new IllegalArgumentException("Illegal severity");
}
this.severity = severity;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Throwable getLinkedException() {
return linkedException;
}
public void setLinkedException(Throwable linkedException) {
this.linkedException = linkedException;
}
public ValidationEventLocator getLocator() {
return locator;
}
public void setLocator(ValidationEventLocator locator) {
this.locator = locator;
}
public String toString() {
String s;
switch (getSeverity()) {
case WARNING:
s = "WARNING";
break;
case ERROR:
s = "ERROR";
break;
case FATAL_ERROR:
s = "FATAL_ERROR";
break;
default:
s = String.valueOf(getSeverity());
break;
}
return "[severity=" + s + ", message=" + getMessage() + ", locator=" + getLocator() + "]";
}
}
| 1,677 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/PrintConversionEventImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import javax.xml.bind.PrintConversionEvent;
import javax.xml.bind.ValidationEventLocator;
public class PrintConversionEventImpl extends ValidationEventImpl implements PrintConversionEvent {
public PrintConversionEventImpl(int severity, String message, ValidationEventLocator locator) {
super(severity, message, locator);
}
public PrintConversionEventImpl(int severity, String message, ValidationEventLocator locator, Throwable linkedException) {
super(severity, message, locator, linkedException);
}
}
| 1,678 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/AbstractMarshallerImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.PropertyException;
import javax.xml.bind.ValidationEventHandler;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.bind.attachment.AttachmentMarshaller;
import javax.xml.stream.XMLEventWriter;
import javax.xml.stream.XMLStreamWriter;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.Result;
import javax.xml.validation.Schema;
import org.w3c.dom.Node;
import org.xml.sax.ContentHandler;
public abstract class AbstractMarshallerImpl implements Marshaller {
static String aliases[] = {
"UTF-8", "UTF8",
"UTF-16", "Unicode",
"UTF-16BE", "UnicodeBigUnmarked",
"UTF-16LE", "UnicodeLittleUnmarked",
"US-ASCII", "ASCII",
"TIS-620", "TIS620",
"ISO-10646-UCS-2", "Unicode",
"EBCDIC-CP-US", "cp037",
"EBCDIC-CP-CA", "cp037",
"EBCDIC-CP-NL", "cp037",
"EBCDIC-CP-WT", "cp037",
"EBCDIC-CP-DK", "cp277",
"EBCDIC-CP-NO", "cp277",
"EBCDIC-CP-FI", "cp278",
"EBCDIC-CP-SE", "cp278",
"EBCDIC-CP-IT", "cp280",
"EBCDIC-CP-ES", "cp284",
"EBCDIC-CP-GB", "cp285",
"EBCDIC-CP-FR", "cp297",
"EBCDIC-CP-AR1", "cp420",
"EBCDIC-CP-HE", "cp424",
"EBCDIC-CP-BE", "cp500",
"EBCDIC-CP-CH", "cp500",
"EBCDIC-CP-ROECE", "cp870",
"EBCDIC-CP-YU", "cp870",
"EBCDIC-CP-IS", "cp871",
"EBCDIC-CP-AR2", "cp918"
};
private ValidationEventHandler eventHandler = new DefaultValidationEventHandler();
private String encoding = "UTF-8";
private String schemaLocation;
private String noNSSchemaLocation;
private boolean formattedOutput;
private boolean fragment;
public final void marshal(Object obj, OutputStream os) throws JAXBException {
checkNotNull(obj, "obj", os, "os");
marshal(obj, new StreamResult(os));
}
public final void marshal(Object obj, Writer w) throws JAXBException {
checkNotNull(obj, "obj", w, "writer");
marshal(obj, new StreamResult(w));
}
public final void marshal(Object obj, ContentHandler handler) throws JAXBException {
checkNotNull(obj, "obj", handler, "handler");
marshal(obj, new SAXResult(handler));
}
public final void marshal(Object obj, Node node) throws JAXBException {
checkNotNull(obj, "obj", node, "node");
marshal(obj, new DOMResult(node));
}
public Node getNode(Object obj) throws JAXBException {
checkNotNull(obj, "obj", "foo", "bar");
throw new UnsupportedOperationException();
}
protected String getEncoding() {
return encoding;
}
protected void setEncoding(String encoding) {
this.encoding = encoding;
}
protected String getSchemaLocation() {
return schemaLocation;
}
protected void setSchemaLocation(String location) {
schemaLocation = location;
}
protected String getNoNSSchemaLocation() {
return noNSSchemaLocation;
}
protected void setNoNSSchemaLocation(String location) {
noNSSchemaLocation = location;
}
protected boolean isFormattedOutput() {
return formattedOutput;
}
protected void setFormattedOutput(boolean v) {
formattedOutput = v;
}
protected boolean isFragment() {
return fragment;
}
protected void setFragment(boolean v) {
fragment = v;
}
protected String getJavaEncoding(String encoding) throws UnsupportedEncodingException {
try {
"dummy".getBytes(encoding);
return encoding;
}
catch (UnsupportedEncodingException e) {
}
for (int i = 0; i < aliases.length; i += 2) {
if (encoding.equals(aliases[i])) {
"dummy".getBytes(aliases[i + 1]);
return aliases[i + 1];
}
}
throw new UnsupportedEncodingException(encoding);
}
public void setProperty(String name, Object value) throws PropertyException {
if (name == null) {
throw new IllegalArgumentException("name must not be null");
}
if (JAXB_ENCODING.equals(name)) {
checkString(name, value);
setEncoding((String) value);
} else if (JAXB_FORMATTED_OUTPUT.equals(name)) {
checkBoolean(name, value);
setFormattedOutput(((Boolean) value).booleanValue());
} else if (JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(name)) {
checkString(name, value);
setNoNSSchemaLocation((String) value);
} else if (JAXB_SCHEMA_LOCATION.equals(name)) {
checkString(name, value);
setSchemaLocation((String) value);
} else if (JAXB_FRAGMENT.equals(name)) {
checkBoolean(name, value);
setFragment(((Boolean) value).booleanValue());
} else {
throw new PropertyException(name, value);
}
}
public Object getProperty(String name) throws PropertyException {
if (name == null) {
throw new IllegalArgumentException("name must not be null");
}
if (JAXB_ENCODING.equals(name)) {
return getEncoding();
} else if (JAXB_FORMATTED_OUTPUT.equals(name)) {
return isFormattedOutput() ? Boolean.TRUE : Boolean.FALSE;
} else if (JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(name)) {
return getNoNSSchemaLocation();
} else if (JAXB_SCHEMA_LOCATION.equals(name)) {
return getSchemaLocation();
} else if (JAXB_FRAGMENT.equals(name)) {
return isFragment() ? Boolean.TRUE : Boolean.FALSE;
} else {
throw new PropertyException(name);
}
}
public ValidationEventHandler getEventHandler() throws JAXBException {
return eventHandler;
}
public void setEventHandler(ValidationEventHandler handler) throws JAXBException {
if (handler == null) {
eventHandler = new DefaultValidationEventHandler();
} else {
eventHandler = handler;
}
}
private void checkBoolean(String name, Object value) throws PropertyException {
if (!(value instanceof Boolean)) {
throw new PropertyException(name + " must be a boolean");
}
}
private void checkString(String name, Object value) throws PropertyException {
if (!(value instanceof String)) {
throw new PropertyException(name + " must be a string");
}
}
private void checkNotNull(Object o1, String o1Name, Object o2, String o2Name) {
if (o1 == null) {
throw new IllegalArgumentException(o1Name + " must not be null");
}
if (o2 == null) {
throw new IllegalArgumentException(o2Name + " must not be null");
}
}
public void marshal(Object obj, XMLEventWriter writer)
throws JAXBException {
throw new UnsupportedOperationException();
}
public void marshal(Object obj, XMLStreamWriter writer) throws JAXBException {
throw new UnsupportedOperationException();
}
public void setSchema(Schema schema) {
throw new UnsupportedOperationException();
}
public Schema getSchema() {
throw new UnsupportedOperationException();
}
public void setAdapter(XmlAdapter adapter) {
if (adapter == null) {
throw new IllegalArgumentException();
}
setAdapter((Class<XmlAdapter>) adapter.getClass(), adapter);
}
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter) {
throw new UnsupportedOperationException();
}
public <A extends XmlAdapter> A getAdapter(Class<A> type) {
throw new UnsupportedOperationException();
}
public void setAttachmentMarshaller(AttachmentMarshaller am) {
throw new UnsupportedOperationException();
}
public AttachmentMarshaller getAttachmentMarshaller() {
throw new UnsupportedOperationException();
}
public void setListener(javax.xml.bind.Marshaller.Listener listener) {
throw new UnsupportedOperationException();
}
public javax.xml.bind.Marshaller.Listener getListener() {
throw new UnsupportedOperationException();
}
}
| 1,679 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/NotIdentifiableEventImpl.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import javax.xml.bind.NotIdentifiableEvent;
import javax.xml.bind.ValidationEventLocator;
public class NotIdentifiableEventImpl extends ValidationEventImpl implements NotIdentifiableEvent {
public NotIdentifiableEventImpl(int severity, String message, ValidationEventLocator locator) {
super(severity, message, locator);
}
public NotIdentifiableEventImpl(int severity, String message, ValidationEventLocator locator, Throwable linkedException) {
super(severity, message, locator, linkedException);
}
}
| 1,680 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.0_spec/src/main/java/javax/xml/bind/helpers/DefaultValidationEventHandler.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package javax.xml.bind.helpers;
import java.net.URL;
import javax.xml.bind.ValidationEventHandler;
import javax.xml.bind.ValidationEvent;
import javax.xml.bind.ValidationEventLocator;
import org.w3c.dom.Node;
public class DefaultValidationEventHandler implements ValidationEventHandler {
public boolean handleEvent(ValidationEvent event) {
if (event == null) {
throw new IllegalArgumentException();
}
String severity = null;
boolean retVal = false;
switch(event.getSeverity()) {
case ValidationEvent.WARNING:
severity = "[WARNING]: ";
retVal = true;
break;
case ValidationEvent.ERROR:
severity = "[ERROR]: ";
retVal = false;
break;
case ValidationEvent.FATAL_ERROR:
severity = "[FATAL_ERROR]: ";
retVal = false;
break;
}
String location = getLocation(event);
System.out.println("DefaultValidationEventHandler " + severity + " " + event.getMessage() + "\n Location: " + location);
return retVal;
}
private String getLocation(ValidationEvent event) {
StringBuffer msg = new StringBuffer();
ValidationEventLocator locator = event.getLocator();
if (locator != null) {
URL url = locator.getURL();
Object obj = locator.getObject();
Node node = locator.getNode();
int line = locator.getLineNumber();
if(url != null || line != -1) {
msg.append("line ").append(line);
if(url != null) {
msg.append(" of ").append(url);
}
} else {
if (obj != null) {
msg.append(" obj: ").append(obj.toString());
} else if(node != null) {
msg.append(" node: ").append(node.toString());
}
}
} else {
msg.append("unavailable");
}
return msg.toString();
}
}
| 1,681 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WebServiceProvider {
public String wsdlLocation() default "";
public String serviceName() default "";
public String targetNamespace() default "";
public String portName() default "";
}
| 1,682 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebEndpoint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WebEndpoint {
public String name() default "";
}
| 1,683 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/BindingType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface BindingType {
public String value() default "";
}
| 1,684 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/FaultAction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.METHOD)
public @interface FaultAction {
public Class className();
public String value() default "";
}
| 1,685 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/RespectBindingFeature.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
public final class RespectBindingFeature extends WebServiceFeature {
public static final String ID = "javax.xml.ws.RespectBindingFeature";
public RespectBindingFeature() {
this(true);
}
public RespectBindingFeature(boolean enabled) {
super();
this.enabled = enabled;
}
@Override
public String getID() {
return ID;
}
}
| 1,686 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/EndpointReference.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import javax.xml.ws.spi.Provider;
import java.io.ByteArrayOutputStream;
@XmlTransient
public abstract class EndpointReference {
protected EndpointReference() {
}
public static EndpointReference readFrom(Source eprInfoset) {
return Provider.provider().readEndpointReference(eprInfoset);
}
public abstract void writeTo(Result result);
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) {
return Provider.provider().getPort(this, serviceEndpointInterface, features);
}
@Override
public String toString() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
writeTo(new StreamResult(baos));
return baos.toString();
}
}
| 1,687 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Holder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
public final class Holder<T> {
public Holder() {
}
public Holder(T value) {
this.value = value;
}
public T value;
}
| 1,688 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/RequestWrapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestWrapper {
public String localName() default "";
public String targetNamespace() default "";
public String className() default "";
}
| 1,689 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Response.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.util.Map;
import java.util.concurrent.Future;
public interface Response<T>
extends Future<T> {
public abstract Map<java.lang.String, java.lang.Object> getContext();
}
| 1,690 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceClient.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WebServiceClient {
public String name() default "";
public String targetNamespace() default "";
public String wsdlLocation() default "";
}
| 1,691 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Provider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
public interface Provider<T> {
public abstract T invoke(T obj);
}
| 1,692 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/LogicalMessage.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import javax.xml.bind.JAXBContext;
import javax.xml.transform.Source;
public interface LogicalMessage {
public abstract Source getPayload();
public abstract void setPayload(Source source);
public abstract Object getPayload(JAXBContext jaxbcontext);
public abstract void setPayload(Object obj, JAXBContext jaxbcontext);
}
| 1,693 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServicePermission.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.security.BasicPermission;
public final class WebServicePermission extends BasicPermission {
public WebServicePermission(String name) {
super(name);
}
public WebServicePermission(String name, String actions) {
super(name, actions);
}
}
| 1,694 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/ResponseWrapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ResponseWrapper {
public String localName() default "";
public String targetNamespace() default "";
public String className() default "";
}
| 1,695 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
public class WebServiceException extends RuntimeException {
public WebServiceException() {
}
public WebServiceException(String message) {
super(message);
}
public WebServiceException(String message, Throwable cause) {
super(message, cause);
}
public WebServiceException(Throwable cause) {
super(cause);
}
}
| 1,696 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/AsyncHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
public interface AsyncHandler<T> {
public abstract void handleResponse(Response<T> response);
}
| 1,697 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceRefs.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.TYPE)
public @interface WebServiceRefs {
public WebServiceRef[] value();
}
| 1,698 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/BindingProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.xml.ws;
import java.util.Map;
public interface BindingProvider {
public abstract EndpointReference getEndpointReference();
public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz);
public abstract Map<java.lang.String, java.lang.Object> getRequestContext();
public abstract Map<java.lang.String, java.lang.Object> getResponseContext();
public abstract Binding getBinding();
public static final String USERNAME_PROPERTY = "javax.xml.ws.security.auth.username";
public static final String PASSWORD_PROPERTY = "javax.xml.ws.security.auth.password";
public static final String ENDPOINT_ADDRESS_PROPERTY = "javax.xml.ws.service.endpoint.address";
public static final String SESSION_MAINTAIN_PROPERTY = "javax.xml.ws.session.maintain";
public static final String SOAPACTION_USE_PROPERTY = "javax.xml.ws.soap.http.soapaction.use";
public static final String SOAPACTION_URI_PROPERTY = "javax.xml.ws.soap.http.soapaction.uri";
}
| 1,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.