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-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/EmailAddress.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface EmailAddress { String getAddress() throws JAXRException; String getType() throws JAXRException; void setAddress(String address) throws JAXRException; void setType(String type) throws JAXRException; }
400
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Versionable.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Versionable { int getMajorVersion() throws JAXRException; int getMinorVersion() throws JAXRException; String getUserVersion() throws JAXRException; void setMajorVersion(int version) throws JAXRException; void setMinorVersion(int version) throws JAXRException; void setUserVersion(String version) throws JAXRException; }
401
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/TelephoneNumber.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface TelephoneNumber { String getAreaCode() throws JAXRException; String getCountryCode() throws JAXRException; String getExtension() throws JAXRException; String getNumber() throws JAXRException; String getType() throws JAXRException; String getUrl() throws JAXRException; void setAreaCode(String areaCode) throws JAXRException; void setCountryCode(String countryCode) throws JAXRException; void setExtension(String extension) throws JAXRException; void setNumber(String number) throws JAXRException; void setType(String type) throws JAXRException; void setUrl(String url) throws JAXRException; }
402
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/LocalizedString.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.xml.registry.infomodel; import java.util.Locale; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface LocalizedString { public static final String DEFAULT_CHARSET_NAME = "UTF-8"; String getCharsetName() throws JAXRException; Locale getLocale() throws JAXRException; String getValue() throws JAXRException; void setCharsetName(String charsetName) throws JAXRException; void setLocale(Locale locale) throws JAXRException; void setValue(String value) throws JAXRException; }
403
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/SpecificationLink.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface SpecificationLink extends RegistryObject { ServiceBinding getServiceBinding() throws JAXRException; RegistryObject getSpecificationObject() throws JAXRException; InternationalString getUsageDescription() throws JAXRException; Collection getUsageParameters() throws JAXRException; void setSpecificationObject(RegistryObject obj) throws JAXRException; void setUsageDescription(InternationalString usageDescription) throws JAXRException; void setUsageParameters(Collection usageParameters) throws JAXRException; }
404
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Classification.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Classification extends RegistryObject { ClassificationScheme getClassificationScheme() throws JAXRException; RegistryObject getClassifiedObject() throws JAXRException; Concept getConcept() throws JAXRException; String getValue() throws JAXRException; boolean isExternal() throws JAXRException; void setClassificationScheme(ClassificationScheme classificationScheme) throws JAXRException; void setClassifiedObject(RegistryObject classifiedObject) throws JAXRException; void setConcept(Concept concept) throws JAXRException; void setValue(String value) throws JAXRException; }
405
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/PersonName.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface PersonName { String getFirstName() throws JAXRException; String getFullName() throws JAXRException; String getLastName() throws JAXRException; String getMiddleName() throws JAXRException; void setFirstName(String firstName) throws JAXRException; void setFullName(String fullName) throws JAXRException; void setLastName(String lastName) throws JAXRException; void setMiddleName(String middleName) throws JAXRException; }
406
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/PostalAddress.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface PostalAddress extends ExtensibleObject { String getCity() throws JAXRException; String getCountry() throws JAXRException; String getPostalCode() throws JAXRException; ClassificationScheme getPostalScheme() throws JAXRException; String getStateOrProvince() throws JAXRException; String getStreet() throws JAXRException; String getStreetNumber() throws JAXRException; String getType() throws JAXRException; void setCity(String city) throws JAXRException; void setCountry(String country) throws JAXRException; void setPostalCode(String postalCode) throws JAXRException; void setPostalScheme(ClassificationScheme postalScheme) throws JAXRException; void setStateOrProvince(String state) throws JAXRException; void setStreet(String street) throws JAXRException; void setStreetNumber(String streetNumber) throws JAXRException; void setType(String type) throws JAXRException; }
407
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ExtensibleObject.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ExtensibleObject { void addSlot(Slot slot) throws JAXRException; void addSlots(Collection slots) throws JAXRException; Slot getSlot(String slotName) throws JAXRException; Collection getSlots() throws JAXRException; void removeSlot(String slotName) throws JAXRException; void removeSlots(Collection soltNames) throws JAXRException; }
408
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Organization.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Organization extends RegistryObject { void addChildOrganization(Organization organization) throws JAXRException; void addChildOrganizations(Collection organizations) throws JAXRException; void addService(Service service) throws JAXRException; void addServices(Collection services) throws JAXRException; void addUser(User user) throws JAXRException; void addUsers(Collection users) throws JAXRException; int getChildOrganizationCount() throws JAXRException; Collection getChildOrganizations() throws JAXRException; Collection getDescendantOrganizations() throws JAXRException; Organization getParentOrganization() throws JAXRException; PostalAddress getPostalAddress() throws JAXRException; User getPrimaryContact() throws JAXRException; Organization getRootOrganization() throws JAXRException; Collection getServices() throws JAXRException; Collection getTelephoneNumbers(String phoneType) throws JAXRException; Collection getUsers() throws JAXRException; void removeChildOrganization(Organization organization) throws JAXRException; void removeChildOrganizations(Collection organizations) throws JAXRException; void removeService(Service service) throws JAXRException; void removeServices(Collection services) throws JAXRException; void removeUser(User user) throws JAXRException; void removeUsers(Collection users) throws JAXRException; void setPostalAddress(PostalAddress address) throws JAXRException; void setPrimaryContact(User primaryContact) throws JAXRException; void setTelephoneNumbers(Collection phoneNumbers) throws JAXRException; }
409
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ExternalLink.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ExternalLink extends RegistryObject, URIValidator { String getExternalURI() throws JAXRException; Collection getLinkedObjects() throws JAXRException; void setExternalURI(String uri) throws JAXRException; }
410
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/InternationalString.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.xml.registry.infomodel; import java.util.Collection; import java.util.Locale; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface InternationalString { void addLocalizedString(LocalizedString localizedString) throws JAXRException; void addLocalizedStrings(Collection localizedStrings) throws JAXRException; LocalizedString getLocalizedString(Locale locale, String charsetName) throws JAXRException; Collection getLocalizedStrings() throws JAXRException; String getValue() throws JAXRException; String getValue(Locale locale) throws JAXRException; void removeLocalizedString(LocalizedString localizedString) throws JAXRException; void removeLocalizedStrings(Collection localizedStrings) throws JAXRException; void setValue(Locale locale, String value) throws JAXRException; void setValue(String value) throws JAXRException; }
411
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/User.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.xml.registry.infomodel; import java.net.URL; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface User extends RegistryObject { Collection getEmailAddresses() throws JAXRException; Organization getOrganization() throws JAXRException; PersonName getPersonName() throws JAXRException; Collection getPostalAddresses() throws JAXRException; Collection getTelephoneNumbers(String phoneType) throws JAXRException; String getType() throws JAXRException; URL getUrl() throws JAXRException; void setEmailAddresses(Collection addresses) throws JAXRException; void setPersonName(PersonName personName) throws JAXRException; void setPostalAddresses(Collection addresses) throws JAXRException; void setTelephoneNumbers(Collection phoneNumbers) throws JAXRException; void setType(String type) throws JAXRException; void setUrl(URL url) throws JAXRException; }
412
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ExtrinsicObject.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.xml.registry.infomodel; import javax.activation.DataHandler; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ExtrinsicObject extends RegistryEntry { String getMimeType() throws JAXRException; DataHandler getRepositoryItem() throws JAXRException; boolean isOpaque() throws JAXRException; void setMimeType(String mimeType) throws JAXRException; void setOpaque(boolean isOpaque) throws JAXRException; void setRepositoryItem(DataHandler repositoryItem) throws JAXRException; }
413
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/URIValidator.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface URIValidator { boolean getValidateURI() throws JAXRException; void setValidateURI(boolean validate) throws JAXRException; }
414
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ExternalIdentifier.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ExternalIdentifier extends RegistryObject { ClassificationScheme getIdentificationScheme() throws JAXRException; RegistryObject getRegistryObject() throws JAXRException; String getValue() throws JAXRException; void setIdentificationScheme(ClassificationScheme identificationSchema) throws JAXRException; void setValue(String value) throws JAXRException; }
415
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/RegistryEntry.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.xml.registry.infomodel; import java.util.Date; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface RegistryEntry extends RegistryObject, Versionable { public static final int STABILITY_DYNAMIC = 0; public static final int STABILITY_DYNAMIC_COMPATIBLE = 1; public static final int STABILITY_STATIC = 2; public static final int STATUS_SUBMITTED = 0; public static final int STATUS_APPROVED = 1; public static final int STATUS_DEPRECATED = 2; public static final int STATUS_WITHDRAWN = 3; Date getExpiration() throws JAXRException; int getStability() throws JAXRException; int getStatus() throws JAXRException; void setExpiration(Date expiration) throws JAXRException; void setStability(int stability) throws JAXRException; }
416
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Slot.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Slot { public static final String ADDRESS_LINES_SLOT = "addressLines"; public static final String AUTHORIZED_NAME_SLOT = "authorizedName"; public static final String OPERATOR_SLOT = "operator"; public static final String SORT_CODE_SLOT = "sortCode"; String getName() throws JAXRException; String getSlotType() throws JAXRException; Collection getValues() throws JAXRException; void setName(String name) throws JAXRException; void setSlotType(String slotType) throws JAXRException; void setValues(Collection values) throws JAXRException; }
417
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/RegistryPackage.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.xml.registry.infomodel; import java.util.Collection; import java.util.Set; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface RegistryPackage extends RegistryEntry { void addRegistryObject(RegistryObject registryObject) throws JAXRException; void addRegistryObjects(Collection registryObjects) throws JAXRException; Set getRegistryObjects() throws JAXRException; void removeRegistryObject(RegistryObject registryObject) throws JAXRException; void removeRegistryObjects(Collection registryObjects) throws JAXRException; }
418
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ClassificationScheme.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ClassificationScheme extends RegistryEntry { public static final int VALUE_TYPE_UNIQUE = 0; public static final int VALUE_TYPE_EMBEDDED_PATH = 1; public static final int VALUE_TYPE_NON_UNIQUE = 2; void addChildConcept(Concept concept) throws JAXRException; void addChildConcepts(Collection concepts) throws JAXRException; int getChildConceptCount() throws JAXRException; Collection getChildrenConcepts() throws JAXRException; Collection getDescendantConcepts() throws JAXRException; int getValueType() throws JAXRException; boolean isExternal() throws JAXRException; void removeChildConcept(Concept concept) throws JAXRException; void removeChildConcepts(Collection concepts) throws JAXRException; void setValueType(int valueType) throws JAXRException; }
419
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Service.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Service extends RegistryEntry { void addServiceBinding(ServiceBinding serviceBinding) throws JAXRException; void addServiceBindings(Collection serviceBindings) throws JAXRException; Organization getProvidingOrganization() throws JAXRException; Collection getServiceBindings() throws JAXRException; void removeServiceBinding(ServiceBinding serviceBinding) throws JAXRException; void removeServiceBindings(Collection serviceBindings) throws JAXRException; void setProvidingOrganization(Organization organization) throws JAXRException; }
420
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Association.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Association extends RegistryObject { Concept getAssociationType() throws JAXRException; RegistryObject getSourceObject() throws JAXRException; RegistryObject getTargetObject() throws JAXRException; boolean isConfirmed() throws JAXRException; boolean isConfirmedBySourceOwner() throws JAXRException; boolean isConfirmedByTargetOwner() throws JAXRException; boolean isExtramural() throws JAXRException; void setAssociationType(Concept associationType) throws JAXRException; void setSourceObject(RegistryObject source) throws JAXRException; void setTargetObject(RegistryObject target) throws JAXRException; }
421
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/AuditableEvent.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.xml.registry.infomodel; import java.sql.Timestamp; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface AuditableEvent extends RegistryObject { public static final int EVENT_TYPE_CREATED = 0; public static final int EVENT_TYPE_DELETED = 1; public static final int EVENT_TYPE_DEPRECATED = 2; public static final int EVENT_TYPE_UPDATED = 3; public static final int EVENT_TYPE_VERSIONED = 4; public static final int EVENT_TYPE_UNDEPRECATED = 5; int getEventType() throws JAXRException; RegistryObject getRegistryObject() throws JAXRException; Timestamp getTimestamp() throws JAXRException; User getUser() throws JAXRException; }
422
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Key.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.xml.registry.infomodel; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Key { String getId() throws JAXRException; void setId(String id) throws JAXRException; }
423
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/ServiceBinding.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface ServiceBinding extends RegistryObject, URIValidator { void addSpecificationLink(SpecificationLink specificationLink) throws JAXRException; void addSpecificationLinks(Collection specificationLinks) throws JAXRException; String getAccessURI() throws JAXRException; Service getService() throws JAXRException; Collection getSpecificationLinks() throws JAXRException; ServiceBinding getTargetBinding() throws JAXRException; void removeSpecificationLink(SpecificationLink specificationLink) throws JAXRException; void removeSpecificationLinks(Collection specificationLinks) throws JAXRException; void setAccessURI(String uri) throws JAXRException; void setTargetBinding(ServiceBinding binding) throws JAXRException; }
424
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/Concept.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; /** * @version $Revision$ $Date$ */ public interface Concept extends RegistryObject { void addChildConcept(Concept concept) throws JAXRException; void addChildConcepts(Collection concepts) throws JAXRException; int getChildConceptCount() throws JAXRException; Collection getChildrenConcepts() throws JAXRException; ClassificationScheme getClassificationScheme() throws JAXRException; Collection getDescendantConcepts() throws JAXRException; RegistryObject getParent() throws JAXRException; Concept getParentConcept() throws JAXRException; String getPath() throws JAXRException; String getValue() throws JAXRException; void removeChildConcept(Concept concept) throws JAXRException; void removeChildConcepts(Collection concepts) throws JAXRException; void setValue(String value) throws JAXRException; }
425
0
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry
Create_ds/geronimo-specs/geronimo-jaxr_1.0_spec/src/main/java/javax/xml/registry/infomodel/RegistryObject.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.xml.registry.infomodel; import java.util.Collection; import javax.xml.registry.JAXRException; import javax.xml.registry.LifeCycleManager; /** * @version $Revision$ $Date$ */ public interface RegistryObject extends ExtensibleObject { void addAssociation(Association association) throws JAXRException; void addAssociations(Collection associations) throws JAXRException; void addClassification(Classification classification) throws JAXRException; void addClassifications(Collection classifications) throws JAXRException; void addExternalIdentifier(ExternalIdentifier externalIdentifier) throws JAXRException; void addExternalIdentifiers(Collection externalIdentifiers) throws JAXRException; void addExternalLink(ExternalLink externalLink) throws JAXRException; void addExternalLinks(Collection externalLinks) throws JAXRException; Collection getAssociatedObjects() throws JAXRException; Collection getAssociations() throws JAXRException; Collection getAuditTrail() throws JAXRException; Collection getClassifications() throws JAXRException; InternationalString getDescription() throws JAXRException; Collection getExternalIdentifiers() throws JAXRException; Collection getExternalLinks() throws JAXRException; Key getKey() throws JAXRException; LifeCycleManager getLifeCycleManager() throws JAXRException; InternationalString getName() throws JAXRException; Concept getObjectType() throws JAXRException; Collection getRegistryPackages() throws JAXRException; Organization getSubmittingOrganization() throws JAXRException; void removeAssociation(Association association) throws JAXRException; void removeAssociations(Collection associations) throws JAXRException; void removeClassification(Classification classification) throws JAXRException; void removeClassifications(Collection classifications) throws JAXRException; void removeExternalIdentifier(ExternalIdentifier externalIdentifier) throws JAXRException; void removeExternalIdentifiers(Collection externalIdentifiers) throws JAXRException; void removeExternalLink(ExternalLink externalLink) throws JAXRException; void removeExternalLinks(Collection externalLinks) throws JAXRException; void setAssociations(Collection associations) throws JAXRException; void setDescription(InternationalString description) throws JAXRException; void setClassifications(Collection classifications) throws JAXRException; void setExternalIdentifiers(Collection externalIdentifiers) throws JAXRException; void setExternalLinks(Collection externalLinks) throws JAXRException; void setKey(Key key) throws JAXRException; void setName(InternationalString name) throws JAXRException; String toXML() throws JAXRException; }
426
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/BatchRuntime.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.batch.runtime; import javax.batch.operations.JobOperator; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.ServiceLoader; public class BatchRuntime { public static JobOperator getJobOperator() { if (System.getSecurityManager() == null) { return findJobOperator(); } return AccessController.doPrivileged(new PrivilegedAction<JobOperator>() { public JobOperator run() { return findJobOperator(); } }); } private static JobOperator findJobOperator() { for (JobOperator operator : ServiceLoader.load(JobOperator.class)) { return operator; } return null; } }
427
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/StepExecution.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.batch.runtime; import java.util.Date; import java.io.Serializable; public interface StepExecution { long getStepExecutionId(); String getStepName(); BatchStatus getBatchStatus(); Date getStartTime(); Date getEndTime(); String getExitStatus(); Serializable getPersistentUserData(); Metric[] getMetrics(); }
428
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/Metric.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.batch.runtime; public interface Metric { enum MetricType { READ_COUNT, WRITE_COUNT, COMMIT_COUNT, ROLLBACK_COUNT, READ_SKIP_COUNT, PROCESS_SKIP_COUNT, FILTER_COUNT, WRITE_SKIP_COUNT } MetricType getType(); long getValue(); }
429
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/JobExecution.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.batch.runtime; import java.util.Date; import java.util.Properties; public interface JobExecution { long getExecutionId(); String getJobName(); BatchStatus getBatchStatus(); Date getStartTime(); Date getEndTime(); String getExitStatus(); Date getCreateTime(); Date getLastUpdatedTime(); Properties getJobParameters(); }
430
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/JobInstance.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.batch.runtime; public interface JobInstance { long getInstanceId(); String getJobName(); }
431
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/BatchStatus.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.batch.runtime; public enum BatchStatus { STARTING, STARTED, STOPPING, STOPPED, FAILED, COMPLETED, ABANDONED }
432
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/context/StepContext.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.batch.runtime.context; import javax.batch.runtime.BatchStatus; import javax.batch.runtime.Metric; import java.io.Serializable; import java.util.Properties; public interface StepContext { String getStepName(); Object getTransientUserData(); void setTransientUserData(Object data); long getStepExecutionId(); Properties getProperties(); Serializable getPersistentUserData(); void setPersistentUserData(Serializable data); BatchStatus getBatchStatus(); String getExitStatus(); void setExitStatus(String status); Exception getException(); Metric[] getMetrics(); }
433
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/runtime/context/JobContext.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.batch.runtime.context; import javax.batch.runtime.BatchStatus; import java.util.Properties; public interface JobContext { String getJobName(); Object getTransientUserData(); void setTransientUserData(Object data); long getInstanceId(); long getExecutionId(); Properties getProperties(); BatchStatus getBatchStatus(); String getExitStatus(); void setExitStatus(String status); }
434
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/NoSuchJobInstanceException.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.batch.operations; public class NoSuchJobInstanceException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public NoSuchJobInstanceException() { // no-op } public NoSuchJobInstanceException(final String message) { super(message); } public NoSuchJobInstanceException(final Throwable cause) { super(cause); } public NoSuchJobInstanceException(final String message, final Throwable cause) { super(message, cause); } }
435
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/BatchRuntimeException.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.batch.operations; public class BatchRuntimeException extends RuntimeException { private static final long serialVersionUID = 1L; public BatchRuntimeException() { // no-op } public BatchRuntimeException(final String message) { super(message); } public BatchRuntimeException(final Throwable cause) { super(cause); } public BatchRuntimeException(final String message, final Throwable cause) { super(message, cause); } }
436
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobOperator.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.batch.operations; import javax.batch.runtime.JobExecution; import javax.batch.runtime.JobInstance; import javax.batch.runtime.StepExecution; import java.util.List; import java.util.Properties; import java.util.Set; public interface JobOperator { Set<String> getJobNames() throws JobSecurityException; int getJobInstanceCount(String jobName) throws NoSuchJobException, JobSecurityException; List<JobInstance> getJobInstances(String jobName, int start, int count) throws NoSuchJobException, JobSecurityException; List<Long> getRunningExecutions(String jobName) throws NoSuchJobException, JobSecurityException; Properties getParameters(long executionId) throws NoSuchJobExecutionException, JobSecurityException; long start(String jobXMLName, Properties jobParameters) throws JobStartException, JobSecurityException; long restart(long executionId, Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException; void stop(long executionId) throws NoSuchJobExecutionException, JobExecutionNotRunningException, JobSecurityException; void abandon(long executionId) throws NoSuchJobExecutionException, JobExecutionIsRunningException, JobSecurityException; JobInstance getJobInstance(long executionId) throws NoSuchJobExecutionException, JobSecurityException; List<JobExecution> getJobExecutions(JobInstance instance) throws NoSuchJobInstanceException, JobSecurityException; JobExecution getJobExecution(long executionId) throws NoSuchJobExecutionException, JobSecurityException; List<StepExecution> getStepExecutions(long jobExecutionId) throws NoSuchJobExecutionException, JobSecurityException; }
437
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/NoSuchJobExecutionException.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.batch.operations; public class NoSuchJobExecutionException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public NoSuchJobExecutionException() { // no-op } public NoSuchJobExecutionException(final String message) { super(message); } public NoSuchJobExecutionException(final Throwable cause) { super(cause); } public NoSuchJobExecutionException(final String message, final Throwable cause) { super(message, cause); } }
438
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobExecutionNotRunningException.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.batch.operations; public class JobExecutionNotRunningException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobExecutionNotRunningException() { // no-op } public JobExecutionNotRunningException(final String message) { super(message); } public JobExecutionNotRunningException(final Throwable cause) { super(cause); } public JobExecutionNotRunningException(final String message, final Throwable cause) { super(message, cause); } }
439
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobStartException.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.batch.operations; public class JobStartException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobStartException() { // no-op } public JobStartException(final String message) { super(message); } public JobStartException(final Throwable cause) { super(cause); } public JobStartException(final String message, final Throwable cause) { super(message, cause); } }
440
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobExecutionAlreadyCompleteException.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.batch.operations; public class JobExecutionAlreadyCompleteException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobExecutionAlreadyCompleteException() { // no-op } public JobExecutionAlreadyCompleteException(final String message) { super(message); } public JobExecutionAlreadyCompleteException(final Throwable cause) { super(cause); } public JobExecutionAlreadyCompleteException(final String message, final Throwable cause) { super(message, cause); } }
441
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobExecutionNotMostRecentException.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.batch.operations; public class JobExecutionNotMostRecentException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobExecutionNotMostRecentException() { // no-op } public JobExecutionNotMostRecentException(final String message) { super(message); } public JobExecutionNotMostRecentException(final Throwable cause) { super(cause); } public JobExecutionNotMostRecentException(final String message, final Throwable cause) { super(message, cause); } }
442
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobSecurityException.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.batch.operations; public class JobSecurityException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobSecurityException() { // no-op } public JobSecurityException(final String message) { super(message); } public JobSecurityException(final Throwable cause) { super(cause); } public JobSecurityException(final String message, final Throwable cause) { super(message, cause); } }
443
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/NoSuchJobException.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.batch.operations; public class NoSuchJobException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public NoSuchJobException() { // no-op } public NoSuchJobException(final String message) { super(message); } public NoSuchJobException(final Throwable cause) { super(cause); } public NoSuchJobException(final String message, final Throwable cause) { super(message, cause); } }
444
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobRestartException.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.batch.operations; public class JobRestartException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobRestartException() { // no-op } public JobRestartException(final String message) { super(message); } public JobRestartException(final Throwable cause) { super(cause); } public JobRestartException(final String message, final Throwable cause) { super(message, cause); } }
445
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/operations/JobExecutionIsRunningException.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.batch.operations; public class JobExecutionIsRunningException extends BatchRuntimeException { private static final long serialVersionUID = 1L; public JobExecutionIsRunningException() { // no-op } public JobExecutionIsRunningException(final String message) { super(message); } public JobExecutionIsRunningException(final Throwable cause) { super(cause); } public JobExecutionIsRunningException(final String message, final Throwable cause) { super(message, cause); } }
446
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/BatchProperty.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.batch.api; import javax.enterprise.util.Nonbinding; import javax.inject.Qualifier; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Qualifier @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER }) public @interface BatchProperty { @Nonbinding String name() default ""; }
447
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/AbstractBatchlet.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.batch.api; public abstract class AbstractBatchlet implements Batchlet { @Override public abstract String process() throws Exception; @Override public void stop() throws Exception { // no-op } }
448
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/Batchlet.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.batch.api; public interface Batchlet { String process() throws Exception; void stop() throws Exception; }
449
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/Decider.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.batch.api; import javax.batch.runtime.StepExecution; public interface Decider { String decide(StepExecution[] executions) throws Exception; }
450
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/listener/AbstractStepListener.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.batch.api.listener; public abstract class AbstractStepListener implements StepListener { @Override public void beforeStep() throws Exception { // no-op } @Override public void afterStep() throws Exception { // no-op } }
451
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/listener/StepListener.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.batch.api.listener; public interface StepListener { public void beforeStep() throws Exception; public void afterStep() throws Exception; }
452
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/listener/AbstractJobListener.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.batch.api.listener; public abstract class AbstractJobListener implements JobListener { @Override public void beforeJob() throws Exception { // no-op } @Override public void afterJob() throws Exception { // no-op } }
453
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/listener/JobListener.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.batch.api.listener; public interface JobListener { void beforeJob() throws Exception; void afterJob() throws Exception; }
454
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/ItemProcessor.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.batch.api.chunk; public interface ItemProcessor { Object processItem(Object item) throws Exception; }
455
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/ItemWriter.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.batch.api.chunk; import java.io.Serializable; import java.util.List; public interface ItemWriter { public void open(Serializable checkpoint) throws Exception; public void close() throws Exception; public void writeItems(List<Object> items) throws Exception; public Serializable checkpointInfo() throws Exception; }
456
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/ItemReader.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.batch.api.chunk; import java.io.Serializable; public interface ItemReader { void open(Serializable checkpoint) throws Exception; void close() throws Exception; Object readItem() throws Exception; Serializable checkpointInfo() throws Exception; }
457
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/CheckpointAlgorithm.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.batch.api.chunk; public interface CheckpointAlgorithm { int checkpointTimeout() throws Exception; void beginCheckpoint() throws Exception; boolean isReadyToCheckpoint() throws Exception; void endCheckpoint() throws Exception; }
458
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/AbstractItemReader.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.batch.api.chunk; import java.io.Serializable; public abstract class AbstractItemReader implements ItemReader { @Override public void open(final Serializable checkpoint) throws Exception { // no-op } @Override public void close() throws Exception { // no-op } @Override public abstract Object readItem() throws Exception; @Override public Serializable checkpointInfo() throws Exception { return null; } }
459
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/AbstractCheckpointAlgorithm.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.batch.api.chunk; public abstract class AbstractCheckpointAlgorithm implements CheckpointAlgorithm { @Override public int checkpointTimeout() throws Exception { return 0; } @Override public void beginCheckpoint() throws Exception { // no-op } @Override public abstract boolean isReadyToCheckpoint() throws Exception; @Override public void endCheckpoint() throws Exception { // no-op } }
460
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/AbstractItemWriter.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.batch.api.chunk; import java.io.Serializable; import java.util.List; public abstract class AbstractItemWriter implements ItemWriter { @Override public void open(final Serializable checkpoint) throws Exception { // no-op } @Override public void close() throws Exception { // no-op } @Override public abstract void writeItems(final List<Object> items) throws Exception; @Override public Serializable checkpointInfo() throws Exception { return null; } }
461
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/ItemWriteListener.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.batch.api.chunk.listener; import java.util.List; public interface ItemWriteListener { void beforeWrite(List<Object> items) throws Exception; void afterWrite(List<Object> items) throws Exception; void onWriteError(List<Object> items, Exception ex) throws Exception; }
462
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/SkipReadListener.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.batch.api.chunk.listener; public interface SkipReadListener { void onSkipReadItem(Exception ex) throws Exception; }
463
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/ItemReadListener.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.batch.api.chunk.listener; public interface ItemReadListener { void beforeRead() throws Exception; void afterRead(Object item) throws Exception; void onReadError(Exception ex) throws Exception; }
464
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/ChunkListener.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.batch.api.chunk.listener; public interface ChunkListener { void beforeChunk() throws Exception; void onError(Exception ex) throws Exception; void afterChunk() throws Exception; }
465
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/AbstractItemProcessListener.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.batch.api.chunk.listener; public abstract class AbstractItemProcessListener implements ItemProcessListener { @Override public void beforeProcess(final Object item) throws Exception { // no-op } @Override public void afterProcess(final Object item, final Object result) throws Exception { // no-op } @Override public void onProcessError(final Object item, final Exception ex) throws Exception { // no-op } }
466
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/AbstractItemReadListener.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.batch.api.chunk.listener; public abstract class AbstractItemReadListener implements ItemReadListener { @Override public void beforeRead() throws Exception { //no-op } @Override public void afterRead(final Object item) throws Exception { // no-op } @Override public void onReadError(final Exception ex) throws Exception { // no-op } }
467
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/RetryReadListener.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.batch.api.chunk.listener; public interface RetryReadListener { void onRetryReadException(Exception ex) throws Exception; }
468
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/RetryWriteListener.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.batch.api.chunk.listener; import java.util.List; public interface RetryWriteListener { void onRetryWriteException(List<Object> items, Exception ex) throws Exception; }
469
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/SkipWriteListener.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.batch.api.chunk.listener; import java.util.List; public interface SkipWriteListener { void onSkipWriteItem(List<Object> items, Exception ex) throws Exception; }
470
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/SkipProcessListener.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.batch.api.chunk.listener; public interface SkipProcessListener { void onSkipProcessItem(Object item, Exception ex) throws Exception; }
471
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/ItemProcessListener.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.batch.api.chunk.listener; public interface ItemProcessListener { void beforeProcess(Object item) throws Exception; void afterProcess(Object item, Object result) throws Exception; void onProcessError(Object item, Exception ex) throws Exception; }
472
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/AbstractChunkListener.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.batch.api.chunk.listener; public abstract class AbstractChunkListener implements ChunkListener { @Override public void beforeChunk() throws Exception { // no-op } @Override public void onError(final Exception ex) throws Exception { // no-op } @Override public void afterChunk() throws Exception { // no-op } }
473
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/RetryProcessListener.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.batch.api.chunk.listener; public interface RetryProcessListener { void onRetryProcessException(Object item, Exception ex) throws Exception; }
474
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/chunk/listener/AbstractItemWriteListener.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.batch.api.chunk.listener; import java.util.List; public abstract class AbstractItemWriteListener implements ItemWriteListener { @Override public void beforeWrite(final List<Object> items) throws Exception { // no-op } @Override public void afterWrite(final List<Object> items) throws Exception { // no-op } @Override public void onWriteError(final List<Object> items, final Exception ex) throws Exception { // no-op } }
475
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionAnalyzer.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.batch.api.partition; import javax.batch.runtime.BatchStatus; import java.io.Serializable; public interface PartitionAnalyzer { void analyzeCollectorData(Serializable data) throws Exception; void analyzeStatus(BatchStatus batchStatus, String exitStatus) throws Exception; }
476
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/AbstractPartitionReducer.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.batch.api.partition; public abstract class AbstractPartitionReducer implements PartitionReducer { @Override public void beginPartitionedStep() throws Exception { // no-op } @Override public void beforePartitionedStepCompletion() throws Exception { // no-op } @Override public void rollbackPartitionedStep() throws Exception { // no-op } @Override public void afterPartitionedStepCompletion(final PartitionStatus status) throws Exception { // no-op } }
477
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionReducer.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.batch.api.partition; public interface PartitionReducer { enum PartitionStatus { COMMIT, ROLLBACK } void beginPartitionedStep() throws Exception; void beforePartitionedStepCompletion() throws Exception; void rollbackPartitionedStep() throws Exception; void afterPartitionedStepCompletion(PartitionStatus status) throws Exception; }
478
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionMapper.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.batch.api.partition; public interface PartitionMapper { PartitionPlan mapPartitions() throws Exception; }
479
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionPlan.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.batch.api.partition; import java.util.Properties; public interface PartitionPlan { public void setPartitions(int count); public void setPartitionsOverride(boolean override); public boolean getPartitionsOverride(); public void setThreads(int count); public void setPartitionProperties(Properties[] props); public int getPartitions(); public int getThreads(); public Properties[] getPartitionProperties(); }
480
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionCollector.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.batch.api.partition; import java.io.Serializable; public interface PartitionCollector { Serializable collectPartitionData() throws Exception; }
481
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/PartitionPlanImpl.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.batch.api.partition; import java.util.Properties; /** * Simple Default implementation of a PartitionPlan. */ public class PartitionPlanImpl implements PartitionPlan { private int partitions= 0; private boolean override= false; private int threads= 0; private Properties[] partitionProperties= null; @Override public void setPartitions(int count) { partitions= count; if (threads == 0) threads= count; } @Override public void setThreads(int count) { threads= count; } @Override public int getThreads() { return threads; } @Override public void setPartitionsOverride(boolean override) { this.override= override; } @Override public boolean getPartitionsOverride() { return override; } @Override public void setPartitionProperties(Properties[] props) { partitionProperties= props; } @Override public Properties[] getPartitionProperties() { return partitionProperties; } @Override public int getPartitions() { return partitions; } }
482
0
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api
Create_ds/geronimo-specs/geronimo-jbatch_1.0_spec/src/main/java/javax/batch/api/partition/AbstractPartitionAnalyzer.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.batch.api.partition; import javax.batch.runtime.BatchStatus; import java.io.Serializable; public abstract class AbstractPartitionAnalyzer implements PartitionAnalyzer { @Override public void analyzeCollectorData(Serializable data) throws Exception { // no-op } @Override public void analyzeStatus(BatchStatus batchStatus, String exitStatus) throws Exception { // no-op } }
483
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Inject.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.inject; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(value={ElementType.METHOD,ElementType.CONSTRUCTOR,ElementType.FIELD}) @Retention(value=RetentionPolicy.RUNTIME) @Documented public @interface Inject { }
484
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Provider.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* * 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.inject; public interface Provider<T> { T get(); }
485
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Singleton.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.inject; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Scope @Documented @Retention(value=RetentionPolicy.RUNTIME) public @interface Singleton { }
486
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Scope.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.inject; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(value=ElementType.ANNOTATION_TYPE) @Retention(value=RetentionPolicy.RUNTIME) @Documented public @interface Scope { }
487
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Qualifier.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.inject; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(value=ElementType.ANNOTATION_TYPE) @Retention(value=RetentionPolicy.RUNTIME) @Documented public @interface Qualifier { }
488
0
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-atinject_1.0_spec/src/main/java/javax/inject/Named.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.inject; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Indicates the name of the webbeans component. * <p> * If there is no <code>Named</code> annotation for the * given webbeans component, its name is null. * </p> */ @Qualifier @Documented @Retention(value=RetentionPolicy.RUNTIME) public @interface Named { String value() default ""; }
489
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/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.validation; /** * @version $Rev$ $Date$ */ @SuppressWarnings("serial") public class ValidationException extends RuntimeException { public ValidationException(String message) { super(message); } public ValidationException() { super(); } public ValidationException(String message, Throwable cause) { super(message, cause); } public ValidationException(Throwable cause) { super(cause); } }
490
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintValidatorContext.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.validation; /** * @version $Rev$ $Date$ */ public interface ConstraintValidatorContext { void disableDefaultConstraintViolation(); String getDefaultConstraintMessageTemplate(); ConstraintViolationBuilder buildConstraintViolationWithTemplate(String messageTemplate); /** @since 2.0 */ ClockProvider getClockProvider(); /** @since 1.1 */ <T> T unwrap(Class<T> type); interface ConstraintViolationBuilder { /** * @deprecated since 1.1 * @see #addBeanNode() * @see #addPropertyNode(String) * @see #addParameterNode(int) */ @Deprecated NodeBuilderDefinedContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); /** @since 1.1 */ NodeBuilderCustomizableContext addPropertyNode(String name); /** @since 1.1 */ LeafNodeBuilderCustomizableContext addBeanNode(); /** @since 1.1 */ NodeBuilderDefinedContext addParameterNode(int index); /** @since 2.0 */ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); interface NodeBuilderDefinedContext { /** * @deprecated since 1.1 * @see #addPropertyNode(String) * @see #addBeanNode() */ @Deprecated NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); /** @since 1.1 */ NodeBuilderCustomizableContext addPropertyNode(String name); /** @since 1.1 */ LeafNodeBuilderCustomizableContext addBeanNode(); /** @since 2.0 */ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); } interface NodeBuilderCustomizableContext { NodeContextBuilder inIterable(); NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); /** @since 1.1 */ NodeBuilderCustomizableContext addPropertyNode(String name); /** @since 1.1 */ LeafNodeBuilderCustomizableContext addBeanNode(); /** @since 2.0 */ NodeBuilderCustomizableContext inContainer(Class<?> containerClass, Integer typeArgumentIndex); /** @since 2.0 */ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); } interface NodeContextBuilder { NodeBuilderDefinedContext atKey(Object key); NodeBuilderDefinedContext atIndex(Integer index); NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); /** @since 1.1 */ NodeBuilderCustomizableContext addPropertyNode(String name); /** @since 1.1 */ LeafNodeBuilderCustomizableContext addBeanNode(); /** @since 2.0 */ ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); } /** @since 1.1 */ interface LeafNodeBuilderDefinedContext { ConstraintValidatorContext addConstraintViolation(); } /** @since 1.1 */ interface LeafNodeBuilderCustomizableContext { LeafNodeContextBuilder inIterable(); ConstraintValidatorContext addConstraintViolation(); /** @since 2.0 */ LeafNodeBuilderCustomizableContext inContainer(Class<?> containerClass, Integer typeArgumentIndex); } /** @since 1.1 */ interface LeafNodeContextBuilder { LeafNodeBuilderDefinedContext atKey(Object key); LeafNodeBuilderDefinedContext atIndex(Integer index); ConstraintValidatorContext addConstraintViolation(); } /** @since 2.0 */ interface ContainerElementNodeBuilderDefinedContext { NodeBuilderCustomizableContext addPropertyNode(String name); LeafNodeBuilderCustomizableContext addBeanNode(); ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); ConstraintValidatorContext addConstraintViolation(); } /** @since 2.0 */ interface ContainerElementNodeBuilderCustomizableContext { ContainerElementNodeContextBuilder inIterable(); NodeBuilderCustomizableContext addPropertyNode(String name); LeafNodeBuilderCustomizableContext addBeanNode(); ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); ConstraintValidatorContext addConstraintViolation(); } /** @since 2.0 */ interface ContainerElementNodeContextBuilder { ContainerElementNodeBuilderDefinedContext atKey(Object key); ContainerElementNodeBuilderDefinedContext atIndex(Integer index); NodeBuilderCustomizableContext addPropertyNode(String name); LeafNodeBuilderCustomizableContext addBeanNode(); ContainerElementNodeBuilderCustomizableContext addContainerElementNode(String name, Class<?> containerType, Integer typeArgumentIndex); ConstraintValidatorContext addConstraintViolation(); } } }
491
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintViolationException.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.validation; import java.util.HashSet; import java.util.Set; /** * @version $Rev$ $Date$ */ @SuppressWarnings("serial") public class ConstraintViolationException extends ValidationException { private final Set<ConstraintViolation<?>> constraintViolations; public ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations) { super(message); this.constraintViolations = new HashSet<ConstraintViolation<?>>(constraintViolations); } public ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations) { this(null, constraintViolations); } public Set<ConstraintViolation<?>> getConstraintViolations() { return constraintViolations; } }
492
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ElementKind.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.validation; /** @since 1.1 */ public enum ElementKind { BEAN, PROPERTY, METHOD, CONSTRUCTOR, PARAMETER, CROSS_PARAMETER, RETURN_VALUE, /** @since 2.0 */ CONTAINER_ELEMENT; }
493
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintValidatorFactory.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.validation; /** * @version $Rev$ $Date$ */ public interface ConstraintValidatorFactory { <T extends ConstraintValidator<?, ?>> T getInstance(Class<T> key); /** @since 1.1 */ void releaseInstance(ConstraintValidator<?, ?> instance); }
494
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Payload.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.validation; /** * Non-portable implementation specific way to provide metadata to constraints. * This is just a marker interface to make it more typesafe. * * @see Constraint * * @version $Rev$ $Date$ */ public interface Payload { }
495
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintTarget.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.validation; /** @since 1.1 */ public enum ConstraintTarget { IMPLICIT, RETURN_VALUE, PARAMETERS }
496
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ValidatorFactory.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.validation; /** * @version $Rev$ $Date$ */ public interface ValidatorFactory extends AutoCloseable { Validator getValidator(); ValidatorContext usingContext(); MessageInterpolator getMessageInterpolator(); TraversableResolver getTraversableResolver(); ConstraintValidatorFactory getConstraintValidatorFactory(); <T> T unwrap(Class<T> type); /** @since 1.1 */ ParameterNameProvider getParameterNameProvider(); /** @since 1.1 */ @Override void close(); /** @since 2.0 */ ClockProvider getClockProvider(); }
497
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Validation.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.validation; import javax.validation.bootstrap.GenericBootstrap; import javax.validation.bootstrap.ProviderSpecificBootstrap; import javax.validation.spi.BootstrapState; import javax.validation.spi.ValidationProvider; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.ArrayList; import java.util.List; import java.util.ServiceLoader; import java.util.WeakHashMap; /** * Note: From Section 4.4.5 Validation of the 1.0 PFD Spec - Validation * implementations may only provide the following three public static methods: * buildDefaultValidatorFactory(), byDefaultProvider(), byProvider() * * @version $Rev$ $Date$ */ public class Validation { public static ValidatorFactory buildDefaultValidatorFactory() { return byDefaultProvider().configure().buildValidatorFactory(); } public static GenericBootstrap byDefaultProvider() { return new GenericBootstrapImpl(); } public static <T extends Configuration<T>, U extends ValidationProvider<T>> ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) { return new ProviderSpecificBootstrapImpl<>(providerType); } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class ProviderSpecificBootstrapImpl<T extends Configuration<T>, U extends ValidationProvider<T>> implements ProviderSpecificBootstrap<T> { private final Class<U> providerClass; private ValidationProviderResolver vpResolver; /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#ProviderSpecificBootstrap(Class<T>) */ public ProviderSpecificBootstrapImpl(Class<U> validationProviderClass) { providerClass = validationProviderClass; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#providerResolver(javax.validation.ValidationProviderResolver) */ public ProviderSpecificBootstrap<T> providerResolver(ValidationProviderResolver resolver) { vpResolver = resolver; return this; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#configure() */ public T configure() { if (providerClass == null) { throw new ValidationException("No resolver provided"); } // create a default resolver if not supplied by providerResolver() GenericBootstrapImpl impl = new GenericBootstrapImpl(); if ( vpResolver == null ) { vpResolver = impl.getDefaultValidationProviderResolver(); } else { impl.providerResolver(vpResolver); } // check each provider discovered by the resolver for (ValidationProvider<?> vProvider : vpResolver.getValidationProviders()) { if (providerClass.isAssignableFrom(vProvider.getClass())) { // Create a ValidationProvider<T> from the above bootstrap impl // and configurationType return providerClass.cast(vProvider).createSpecializedConfiguration(impl); } } // throw a Spec required exception throw new ValidationException("No provider found for " + providerClass); } } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class GenericBootstrapImpl implements GenericBootstrap, BootstrapState { private ValidationProviderResolver vpDefaultResolver; private ValidationProviderResolver vpResolver; /* * (non-Javadoc) * * @see javax.validation.bootstrap.GenericBootstrap#providerResolver(javax.validation.ValidationProviderResolver) */ public GenericBootstrap providerResolver(ValidationProviderResolver resolver) { vpResolver = resolver; return this; } /* * (non-Javadoc) * * @see javax.validation.spi.BootstrapState#getValidationProviderResolver() */ public ValidationProviderResolver getValidationProviderResolver() { return vpResolver; } /* * (non-Javadoc) * * @see javax.validation.spi.BootstrapState#getDefaultValidationProviderResolver() */ public ValidationProviderResolver getDefaultValidationProviderResolver() { if (vpDefaultResolver == null) { vpDefaultResolver = new DefaultValidationProviderResolver(); } return vpDefaultResolver; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.GenericBootstrap#configure() */ public Configuration<?> configure() { ValidationProviderResolver resolv = vpResolver; try { if (resolv == null) { resolv = getDefaultValidationProviderResolver(); } return resolv.getValidationProviders().get(0).createGenericConfiguration(this); } catch (Exception e) { throw new ValidationException("Could not create Configuration.", e); } } } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class DefaultValidationProviderResolver implements ValidationProviderResolver { // cache of providers per class loader private volatile WeakHashMap<ClassLoader, List<ValidationProvider<?>>> providerCache = new WeakHashMap<>(); /* * (non-Javadoc) * * @see javax.validation.ValidationProviderResolver#getValidationProviders() */ public List<ValidationProvider<?>> getValidationProviders() { List<ValidationProvider<?>> providers; // get our class loader ClassLoader cl = PrivClassLoader.get(null); if (cl == null) { cl = PrivClassLoader.get(DefaultValidationProviderResolver.class); } // use any previously cached providers providers = providerCache.get(cl); if (providers == null) { // need to discover and load them for this class loader providers = new ArrayList<>(); ClassLoader original = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(cl); for (ValidationProvider<?> validationProvider : ServiceLoader.load(ValidationProvider.class)) { providers.add(validationProvider); } } catch (ClassCastException e) { throw new ValidationException("Invalid provider definition", e); } catch (Exception e) { throw new ValidationException("Failed to instantiate provider", e); } finally { Thread.currentThread().setContextClassLoader(original); } // cache the discovered providers providerCache.put(cl, providers); } // caller must handle the case of no providers found return providers; } private static class PrivClassLoader implements PrivilegedAction<ClassLoader> { private final Class<?> c; public static ClassLoader get(Class<?> c) { final PrivClassLoader action = new PrivClassLoader(c); if (System.getSecurityManager() == null) { return action.run(); } return AccessController.doPrivileged(action); } private PrivClassLoader(Class<?> c) { this.c = c; } public ClassLoader run() { if (c == null) { return Thread.currentThread().getContextClassLoader(); } return c.getClassLoader(); } } } }
498
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintDeclarationException.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.validation; /** * @version $Rev$ $Date$ */ @SuppressWarnings("serial") public class ConstraintDeclarationException extends ValidationException { public ConstraintDeclarationException(String message) { super(message); } public ConstraintDeclarationException() { super(); } public ConstraintDeclarationException(String message, Throwable cause) { super(message, cause); } public ConstraintDeclarationException(Throwable cause) { super(cause); } }
499