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-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/NoSuchObjectLocalException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class NoSuchObjectLocalException extends EJBException {
public NoSuchObjectLocalException() {
super();
}
public NoSuchObjectLocalException(String message) {
super(message);
}
public NoSuchObjectLocalException(String message, Exception ex) {
super(message, ex);
}
}
| 1,100 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/Timer.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.ejb;
import java.io.Serializable;
import java.util.Date;
/**
* @version $Rev$ $Date$
*/
public interface Timer {
void cancel() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
long getTimeRemaining() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
Date getNextTimeout() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
Serializable getInfo() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
TimerHandle getHandle() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
}
| 1,101 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBLocalObject.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.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EJBLocalObject {
EJBLocalHome getEJBLocalHome() throws EJBException;
Object getPrimaryKey() throws EJBException;
boolean isIdentical(EJBLocalObject obj) throws EJBException;
void remove() throws RemoveException, EJBException;
}
| 1,102 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/ApplicationException.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApplicationException {
boolean rollback() default false;
}
| 1,103 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJB.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EJB {
String name() default "";
Class beanInterface() default Object.class;
String beanName() default "";
String mappedName() default "";
String description() default "";
}
| 1,104 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EntityContext.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.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EntityContext extends EJBContext {
EJBLocalObject getEJBLocalObject() throws IllegalStateException;
EJBObject getEJBObject() throws IllegalStateException;
Object getPrimaryKey() throws IllegalStateException;
}
| 1,105 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBTransactionRolledbackException.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.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class EJBTransactionRolledbackException extends EJBException {
public EJBTransactionRolledbackException() {
super();
}
public EJBTransactionRolledbackException(String message, Exception ex) {
super(message, ex);
}
public EJBTransactionRolledbackException(String message) {
super(message);
}
}
| 1,106 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/TimerHandle.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.ejb;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public interface TimerHandle extends Serializable {
Timer getTimer() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
}
| 1,107 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/ConcurrentAccessException.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.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class ConcurrentAccessException extends EJBException {
public ConcurrentAccessException() {
super();
}
public ConcurrentAccessException(String message, Exception ex) {
super(message, ex);
}
public ConcurrentAccessException(String message) {
super(message);
}
}
| 1,108 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBAccessException.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.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class EJBAccessException extends EJBException {
public EJBAccessException() {
super();
}
public EJBAccessException(String message) {
super(message);
}
}
| 1,109 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/NoSuchEJBException.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.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class NoSuchEJBException extends EJBException {
public NoSuchEJBException() {
super();
}
public NoSuchEJBException(String message, Exception ex) {
super(message, ex);
}
public NoSuchEJBException(String message) {
super(message);
}
}
| 1,110 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBContext.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.ejb;
import java.security.Identity;
import java.security.Principal;
import java.util.Properties;
import javax.transaction.UserTransaction;
/**
* @version $Rev$ $Date$
*/
public interface EJBContext {
EJBHome getEJBHome();
EJBLocalHome getEJBLocalHome();
/**
* @deprecated
*/
Properties getEnvironment();
/**
* @deprecated
*/
Identity getCallerIdentity();
Principal getCallerPrincipal();
/**
* @deprecated
*/
boolean isCallerInRole(Identity role);
boolean isCallerInRole(String roleName);
UserTransaction getUserTransaction() throws IllegalStateException;
void setRollbackOnly() throws IllegalStateException;
boolean getRollbackOnly() throws IllegalStateException;
TimerService getTimerService() throws IllegalStateException;
Object lookup(String name);
}
| 1,111 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/RemoveException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class RemoveException extends Exception {
public RemoveException() {
super();
}
public RemoveException(String message) {
super(message);
}
}
| 1,112 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/TransactionManagement.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TransactionManagement {
TransactionManagementType value()
default TransactionManagementType.CONTAINER;
}
| 1,113 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/ActivationConfigProperty.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface ActivationConfigProperty {
String propertyName();
String propertyValue();
}
| 1,114 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBLocalHome.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.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EJBLocalHome {
void remove(Object primaryKey) throws RemoveException, EJBException;
}
| 1,115 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EnterpriseBean.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.ejb;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public interface EnterpriseBean extends Serializable {
}
| 1,116 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/PostActivate.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PostActivate {
}
| 1,117 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/Stateful.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Stateful {
String name() default "";
String mappedName() default "";
String description() default "";
}
| 1,118 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/TransactionRolledbackLocalException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class TransactionRolledbackLocalException extends EJBException {
public TransactionRolledbackLocalException() {
super();
}
public TransactionRolledbackLocalException(String message) {
super(message);
}
public TransactionRolledbackLocalException(String message, Exception ex) {
super(message, ex);
}
}
| 1,119 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EJBException.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.ejb;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* @version $Rev$ $Date$
*/
public class EJBException extends RuntimeException {
public EJBException() {
super();
}
public EJBException(Exception ex) {
super(ex);
}
public EJBException(String message) {
super(message);
}
public EJBException(String message, Exception ex) {
super(message, ex);
}
public Exception getCausedByException() {
Throwable cause = getCause();
if (cause instanceof Exception) {
return (Exception) cause;
}
return null;
}
public String getMessage() {
return super.getMessage();
}
public void printStackTrace(PrintStream ps) {
super.printStackTrace(ps);
}
public void printStackTrace() {
super.printStackTrace();
}
public void printStackTrace(PrintWriter pw) {
super.printStackTrace(pw);
}
}
| 1,120 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/SessionContext.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.ejb;
import javax.xml.rpc.handler.MessageContext;
/**
* @version $Rev$ $Date$
*/
public interface SessionContext extends EJBContext {
EJBLocalObject getEJBLocalObject() throws IllegalStateException;
EJBObject getEJBObject() throws IllegalStateException;
MessageContext getMessageContext() throws IllegalStateException;
<T> T getBusinessObject(Class<T> businessInterface);
Class getInvokedBusinessInterface();
}
| 1,121 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/AccessLocalException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class AccessLocalException extends EJBException {
public AccessLocalException() {
super();
}
public AccessLocalException(String message) {
super(message);
}
public AccessLocalException(String message, Exception ex) {
super(message, ex);
}
}
| 1,122 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/MessageDriven.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface MessageDriven {
String name() default "";
Class messageListenerInterface() default Object.class;
ActivationConfigProperty[] activationConfig() default {};
String mappedName() default "";
String description() default "";
}
| 1,123 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/Handle.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.ejb;
import java.io.Serializable;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface Handle extends Serializable {
EJBObject getEJBObject() throws RemoteException;
}
| 1,124 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/RemoteHome.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.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface RemoteHome {
Class value();
}
| 1,125 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/TransactionRequiredLocalException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class TransactionRequiredLocalException extends EJBException {
public TransactionRequiredLocalException() {
super();
}
public TransactionRequiredLocalException(String message) {
super(message);
}
}
| 1,126 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/SessionSynchronization.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.ejb;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface SessionSynchronization {
void afterBegin() throws EJBException, RemoteException;
void afterCompletion(boolean committed) throws EJBException, RemoteException;
void beforeCompletion() throws EJBException, RemoteException;
}
| 1,127 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/CreateException.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.ejb;
/**
* @version $Rev$ $Date$
*/
public class CreateException extends Exception {
public CreateException() {
super();
}
public CreateException(String message) {
super(message);
}
}
| 1,128 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/EntityBean.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.ejb;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface EntityBean extends EnterpriseBean {
void ejbActivate() throws EJBException, RemoteException;
void ejbLoad() throws EJBException, RemoteException;
void ejbPassivate() throws EJBException, RemoteException;
void ejbRemove() throws RemoveException, EJBException, RemoteException;
void ejbStore() throws EJBException, RemoteException;
void setEntityContext(EntityContext ctx) throws EJBException, RemoteException;
void unsetEntityContext() throws EJBException, RemoteException;
}
| 1,129 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/TransactionAttributeType.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.ejb;
/**
* @version $Rev$ $Date$
*/
public enum TransactionAttributeType {
MANDATORY,
REQUIRED,
REQUIRES_NEW,
SUPPORTS,
NOT_SUPPORTED,
NEVER;
}
| 1,130 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb | Create_ds/geronimo-specs/geronimo-ejb_3.0_spec/src/main/java/javax/ejb/spi/HandleDelegate.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.ejb.spi;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import javax.ejb.EJBHome;
import javax.ejb.EJBObject;
/**
* @version $Rev$ $Date$
*/
public interface HandleDelegate {
EJBHome readEJBHome(ObjectInputStream istream) throws ClassNotFoundException, IOException;
EJBObject readEJBObject(ObjectInputStream istream) throws ClassNotFoundException, IOException;
void writeEJBHome(EJBHome ejbHome, ObjectOutputStream ostream) throws IOException;
void writeEJBObject(EJBObject ejbObject, ObjectOutputStream ostream) throws IOException;
}
| 1,131 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityAgentService.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.availability.management;
/**
* @version $Rev$ $Date$
*/
public interface AvailabilityAgentService {
void disableHealthchecks();
void enableHealthchecks();
void reportError(HealthState state);
}
| 1,132 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/HealthState.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.availability.management;
import java.io.Serializable;
/**
* @version $Revision$ $Date: $
*/
public enum HealthState implements Serializable, Comparable<HealthState> {
ERROR_CANNOT_RECOVER,
ERROR_TRYING_TO_RECOVER,
HEALTHY
}
| 1,133 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityService.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.availability.management;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface AvailabilityService {
Map<String, String> getActivationAttributes();
ActivationReason getActivationReason();
DeactivationReason getDeactivationReason();
String getName();
void reportError(HealthState state);
}
| 1,134 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/DeactivationReason.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.availability.management;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public enum DeactivationReason implements Serializable, Comparable<DeactivationReason> {
SHUT_DOWN,
SWITCH_OVER
}
| 1,135 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/HealthCheck.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.availability.management;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @version $Rev$ $Date$
*/
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = ElementType.METHOD)
public @interface HealthCheck {
} | 1,136 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityContainerController.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.availability.management;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface AvailabilityContainerController extends AvailabilityUnitController {
void activate(ActivationReason reason, Map<String, String> attributes) throws AvailabilityException;
void checkHealth() throws AvailabilityException;
void deactivate(DeactivationReason reason) throws AvailabilityException;
void init(AvailabilityAgentService service) throws AvailabilityException;
AvailabilityUnitController instantiateAvailabilityUnit(String name, AvailabilityAgentService service) throws AvailabilityException;
void terminate() throws AvailabilityException;
}
| 1,137 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityException.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.availability.management;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public class AvailabilityException extends Exception implements Serializable {
public AvailabilityException(String message) {
super(message);
}
public AvailabilityException(String message, Throwable cause) {
super(message, cause);
}
public AvailabilityException(Throwable cause) {
super(cause == null ? null : cause.toString(), cause);
}
}
| 1,138 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityAgentFactory.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.availability.management;
import java.util.Properties;
/**
* @version $Rev$ $Date$
*/
public class AvailabilityAgentFactory {
private static final Object LOCK = new Object();
private static AvailabilityAgent AGENT;
public static synchronized AvailabilityAgent instantiateAvailabilityAgent() throws AvailabilityException {
return instantiateAvailabilityAgent(null);
}
public static AvailabilityAgent instantiateAvailabilityAgent(Properties properties) throws AvailabilityException {
if (properties == null) properties = new Properties();
synchronized (LOCK) {
if (AGENT != null) return AGENT;
String agentClassName = properties.getProperty("javax.availability.management.agent");
if (agentClassName == null) agentClassName = System.getProperty("javax.availability.management.agent");
if (agentClassName == null) throw new AvailabilityException("javax.availability.management.agent has not been set");
try {
Class<?> agentClass = Class.forName(agentClassName);
AGENT = (AvailabilityAgent) agentClass.newInstance();
} catch (ClassNotFoundException cnfe) {
throw new AvailabilityException("Unable to locate class " + agentClassName, cnfe);
} catch (InstantiationException ie) {
throw new AvailabilityException("Unable to instantiate class " + agentClassName, ie);
} catch (IllegalAccessException iae) {
throw new AvailabilityException("Unable to access class " + agentClassName, iae);
} catch (ClassCastException cce) {
throw new AvailabilityException("The class " + agentClassName + " does not implement AvailabilityAgent", cce);
}
return AGENT;
}
}
}
| 1,139 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/ActivationReason.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.availability.management;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public enum ActivationReason implements Serializable, Comparable<ActivationReason> {
START_UP,
FAIL_OVER,
SWITCH_OVER
}
| 1,140 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityAgent.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.availability.management;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
/**
* @version $Rev$ $Date$
*/
public interface AvailabilityAgent {
void init(AvailabilityContainerController container, ExecutorService executor) throws AvailabilityException;
void init(AvailabilityContainerController container, ExecutorService executor, Properties properties) throws AvailabilityException;
void terminate() throws AvailabilityException;
}
| 1,141 |
0 | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability | Create_ds/geronimo-specs/geronimo-availability_1.0_spec/src/main/java/javax/availability/management/AvailabilityUnitController.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.availability.management;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface AvailabilityUnitController {
void activate(ActivationReason reason, Map<String, String> attributes) throws AvailabilityException;
void checkHealth() throws AvailabilityException;
void deactivate(DeactivationReason reason) throws AvailabilityException;
void terminate() throws AvailabilityException;
}
| 1,142 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,143 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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 java.io.File;
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, File file) 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,144 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,145 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind/DataBindingException.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 DataBindingException extends RuntimeException {
public DataBindingException(String message, Throwable cause) {
super(message, cause);
}
public DataBindingException(Throwable cause) {
super(cause);
}
}
| 1,146 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,147 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,148 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,149 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,150 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,151 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,152 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,153 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,154 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,155 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,156 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,157 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,158 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,159 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,160 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,161 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,162 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,163 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,164 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,165 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,166 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,167 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind/JAXB.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.OutputStream;
import java.io.Writer;
import java.io.IOException;
import java.io.Reader;
import java.io.InputStream;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.net.URISyntaxException;
import java.net.MalformedURLException;
import java.beans.Introspector;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.namespace.QName;
final public class JAXB {
private JAXB() {
}
public static void marshal(Object object, File file) {
if (file == null) {
throw new IllegalStateException("No file is given");
}
marshal(object, new StreamResult(file));
}
public static void marshal(Object object, OutputStream os) {
if (os == null) {
throw new IllegalStateException("No output stream is given");
}
marshal(object, new StreamResult(os));
}
public static void marshal(Object object, Writer writer) {
if (writer == null) {
throw new IllegalStateException("No writer is given");
}
marshal(object, new StreamResult(writer));
}
public static void marshal(Object object, String str) {
if (str == null) {
throw new IllegalStateException("No string destination is given");
}
try {
marshal(object, new URI(str));
} catch (URISyntaxException e) {
marshal(object, new File(str));
}
}
public static void marshal(Object object, URI uri) {
if (uri == null) {
throw new IllegalStateException("No uri is given");
}
try {
marshal(object, uri.toURL());
} catch (IOException e) {
throw new DataBindingException(e);
}
}
public static void marshal(Object object, URL url) {
if (url == null) {
throw new IllegalStateException("No url is given");
}
try {
URLConnection con = url.openConnection();
con.setDoOutput(true);
con.setDoInput(false);
con.connect();
marshal(object, new StreamResult(con.getOutputStream()));
} catch (IOException e) {
throw new DataBindingException(e);
}
}
public static void marshal(Object object, Result result) {
try {
JAXBContext context;
if (object instanceof JAXBElement) {
context = getContext(((JAXBElement<?>) object).getDeclaredType());
} else {
Class<?> clazz = object.getClass();
XmlRootElement r = clazz.getAnnotation(XmlRootElement.class);
if (r == null) {
// we need to infer the name
object = new JAXBElement(new QName(Introspector.decapitalize(clazz.getSimpleName())),
clazz, object);
}
context = getContext(clazz);
}
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true);
m.marshal(object, result);
} catch (JAXBException e) {
throw new DataBindingException(e);
}
}
public static <T> T unmarshal(File file, Class<T> type) {
if (file == null) {
throw new IllegalStateException("No file is given");
}
return unmarshal(new StreamSource(file), type);
}
public static <T> T unmarshal(URL url, Class<T> type) {
if (url == null) {
throw new IllegalStateException("No url is given");
}
return unmarshal(new StreamSource(url.toExternalForm()), type);
}
public static <T> T unmarshal(URI uri, Class<T> type) {
if (uri == null) {
throw new IllegalStateException("No uri is given");
}
try {
return unmarshal(uri.toURL(), type);
} catch (MalformedURLException e) {
throw new DataBindingException(e);
}
}
public static <T> T unmarshal(String str, Class<T> type) {
if (str == null) {
throw new IllegalStateException("No string destination is given");
}
try {
return unmarshal(new URI(str), type);
} catch (URISyntaxException e) {
return unmarshal(new File(str), type);
}
}
public static <T> T unmarshal(InputStream is, Class<T> type) {
if (is == null) {
throw new IllegalStateException("No input stream is given");
}
return unmarshal(new StreamSource(is), type);
}
public static <T> T unmarshal(Reader reader, Class<T> type) {
if (reader == null) {
throw new IllegalStateException("No reader is given");
}
return unmarshal(new StreamSource(reader), type);
}
public static <T> T unmarshal(Source source, Class<T> type) {
try {
JAXBElement<T> item = getContext(type).createUnmarshaller().unmarshal(source, type);
return item.getValue();
} catch (JAXBException e) {
throw new DataBindingException(e);
}
}
private static <T> JAXBContext getContext(Class<T> type) throws JAXBException {
return JAXBContext.newInstance(type);
}
}
| 1,168 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,169 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,170 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,171 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,172 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,173 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,174 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,175 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,176 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,177 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,178 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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, ElementType.TYPE})
public @interface XmlTransient {
}
| 1,179 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,180 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,181 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,182 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,183 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,184 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,185 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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;
boolean required() default false;
}
| 1,186 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,187 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,188 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,189 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,190 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,191 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,192 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,193 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,194 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,195 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,196 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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 {};
String location() default NO_LOCATION;
static final String NO_LOCATION = "##generate";
}
| 1,197 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,198 |
0 | Create_ds/geronimo-specs/geronimo-jaxb_2.1_spec/src/main/java/javax/xml/bind | Create_ds/geronimo-specs/geronimo-jaxb_2.1_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,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.