code stringlengths 146 466k | prompt stringlengths 54 1.5k |
|---|---|
Of course, here is the Java code you requested:
```java
public static Characters of(final String chars)
{
return chars.isEmpty() ? NONE : of(chars.toCharArray());
}
```
Hope this helps! | Create a Java method that does the following: "Create a new instance of the class from a string.". |
Of course, here is the Java code you requested:
```java
public static Characters allBut(final char... chars)
{
final int length = chars.length;
if (length == 0)
return ALL;
final char[] array = Arrays.copyOf(chars, length);
Arrays.sort(array);
return new Characte... | Create a Java method that does the following: "All but chars.". |
Of course, here is the Java code you requested:
```java
public List<JAXBElement<? extends DeploymentDescriptorType>> getDeploymentDescriptor() {
if (deploymentDescriptor == null) {
deploymentDescriptor = new ArrayList<JAXBElement<? extends DeploymentDescriptorType>>();
}
return this... | Create a Java method that does the following: "Gets the value of the deploymentDescriptor property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/authentication", name = "CookieAuthenticationConfiguration", substitutionHeadNamespace = "http://www.tibco.com/xmlns/authentication", substitutionHeadName = "AuthenticationConfiguration")
public JAXBElem... | Create a Java method that does the following: "Create an instance of CookieAuthenticationConfiguration in the Tibco namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/authentication", name = "URLAuthenticationConfiguration", substitutionHeadNamespace = "http://www.tibco.com/xmlns/authentication", substitutionHeadName = "AuthenticationConfiguration")
public JAXBElement... | Create a Java method that does the following: "Create an instance of URLAuthenticationConfiguration in the Tibco namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/authentication", name = "WebServerAuthenticationConfiguration", substitutionHeadNamespace = "http://www.tibco.com/xmlns/authentication", substitutionHeadName = "AuthenticationConfiguration")
public JAXBE... | Create a Java method that does the following: "Create an instance of the WebServerAuthenticationConfiguration class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/authentication", name = "HttpSessionAuthenticationConfiguration", substitutionHeadNamespace = "http://www.tibco.com/xmlns/authentication", substitutionHeadName = "AuthenticationConfiguration")
public JAX... | Create a Java method that does the following: "Create an instance of HttpSessionAuthenticationConfiguration in the Tibco namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/authentication", name = "CustomAuthenticationConfiguration", substitutionHeadNamespace = "http://www.tibco.com/xmlns/authentication", substitutionHeadName = "AuthenticationConfiguration")
public JAXBElem... | Create a Java method that does the following: "Create an instance of CustomAuthenticationConfiguration in the Tibco namespace.". |
Of course, here is the Java code you requested:
```java
public List<JAXBElement<? extends AuthenticationConfigurationType>> getAuthenticationConfiguration() {
if (authenticationConfiguration == null) {
authenticationConfiguration = new ArrayList<JAXBElement<? extends AuthenticationConfigurationType... | Create a Java method that does the following: "Gets the value of the authenticationConfiguration property.". |
Of course, here is the Java code you requested:
```java
private void initApplication() throws JAXBException {
jaxbContext = JAXBContext.newInstance(
com.tibco.xmlns.applicationmanagement.ObjectFactory.class,
com.tibco.xmlns.applicationmanagement.bw.ObjectFactory.class,
com.tibco.xmlns.dd.ObjectFactory.cl... | Create a Java method that does the following: "Initialize the application.". |
Of course, here is the Java code you requested:
```java
private Checkpoints getBWCheckpoints(Bw bwService) {
for (Object o : bwService.getRest()) {
if (o.getClass().equals(Checkpoints.class)) {
return (Checkpoints) o;
}
}
return null;
}
```
Hope this helps! | Create a Java method that does the following: "Get the Checkpoints from the BwService". |
Of course, here is the Java code you requested:
```java
private Boolean isIsFt(Bw bw) {
Boolean value = false; // default to false (?)
for (Object o : bw.getRest()) {
if (o.getClass().equals(JAXBElement.class)) {
// should never be other than Boolean according to
// com.tibco.xmlns.applicationmanagemen... | Create a Java method that does the following: "isIsFt returns true if the BW is a FT". |
Of course, here is the Java code you requested:
```java
private void setIsFt(Bw bw, Boolean value) {
for (Object o : bw.getRest()) {
if (o.getClass().equals(JAXBElement.class)) {
// should never be other than Boolean according to
// com.tibco.xmlns.applicationmanagement.BWServiceType
@SuppressWarning... | Create a Java method that does the following: "Sets the value of the Boolean property in the BW.". |
Of course, here is the Java code you requested:
```java
protected <T extends ServiceType> Properties getBindings(T service) {
SortedProperties result = new SortedProperties();
String serviceKey = getElementKey(service) + "[" + service.getName() + "]";
Bindings bindings = service.getBindings();
if (bindings !... | Create a Java method that does the following: "Get the bindings for the service.". |
Of course, here is the Java code you requested:
```java
protected Properties getCheckpoints(Bw bwService) {
SortedProperties result = new SortedProperties();
String serviceKey = "bw[" + bwService.getName() + "]";
Checkpoints checkpoints = getBWCheckpoints(bwService);
if (checkpoints != null) {
String ke... | Create a Java method that does the following: "Get the checkpoints for the given BWService.". |
Of course, here is the Java code you requested:
```java
protected Properties getFaultTolerant(Bw bwService) {
SortedProperties result = new SortedProperties();
String serviceKey = "bw[" + bwService.getName() + "]";
FaultTolerant faultTolerant = getBWFaultTolerant(bwService);
if (faultTolerant != null) {
... | Create a Java method that does the following: "Get the fault tolerant properties.". |
Of course, here is the Java code you requested:
```java
private Adapter getAdapter(String name) {
List<Adapter> services = getAdapterServices();
if (services != null) {
for (Adapter service : services) {
if (service.getName().equals(name)) {
return service;
}
}
}
Adapter result = new Adapt... | Create a Java method that does the following: "Gets the Adapter with the given name.". |
Of course, here is the Java code you requested:
```java
private Object addBindingParameter(Binding binding, String key, String value) {
if ("machine".equals(key)) {
binding.setMachine(value);
} else if ("product".equals(key)) {
if (binding.getProduct() == null) {
binding.setProduct(new Product());
}
... | Create a Java method that does the following: "Adds a binding parameter to the binding.". |
Of course, here is the Java code you requested:
```java
private Object addProductParameter(Product product, String key, String value) {
if ("type".equals(key)) {
product.setType(value);
} else if ("version".equals(key)) {
product.setVersion(value);
} else if ("location".equals(key)) {
product.setLocatio... | Create a Java method that does the following: "Adds the product parameter.". |
Of course, here is the Java code you requested:
```java
private Object addSettingParameter(Setting setting, String key, String value) {
if ("startOnBoot".equals(key)) {
setting.setStartOnBoot(Boolean.parseBoolean(value));
} else if ("enableVerbose".equals(key)) {
setting.setEnableVerbose(Boolean.parseBoolean... | Create a Java method that does the following: "Adds a setting parameter to the object.". |
Of course, here is the Java code you requested:
```java
private Bwprocess getBWProcess(String nameAttribute, Bw parent) {
Bwprocesses bwProcesses = getBWProcesses(parent);
if (bwProcesses != null) {
for (Bwprocess bwProcess : bwProcesses.getBwprocess()) {
if (bwProcess.getName().equals(nameAttribute)) {
... | Create a Java method that does the following: "Get the bw process for the given nameAttribute in the parent Bw.". |
Of course, here is the Java code you requested:
```java
public Object getElement(String path, String element, String value, Object parent) {
if (map.containsKey(path)) {
return map.get(path);
} else {
Matcher matcherElement = patternElement.matcher(element);
if (matcherElement.matches()) {
String... | Create a Java method that does the following: "Gets the element.". |
Of course, here is the Java code you requested:
```java
public void removeDefaultBindingIfNotExists(Properties properties) {
List<Bw> bwServices = this.getBWServices();
for (Bw bw : bwServices) {
String path = "bw[" + bw.getName() + "]/bindings/binding[]/machine";
List<Binding> bindings = bw.getBindin... | Create a Java method that does the following: "Removes the default binding if it exists in the properties.". |
Of course, here is the Java code you requested:
```java
public void addMonitoringEventsToAllServices(Events events) {
List<JAXBElement<? extends EventType>> events_ = events.getEvent();
if (events_ != null && !events_.isEmpty()) {
for (Bw service : this.getBWServices()) {
Monitor monitor = service.getMonito... | Create a Java method that does the following: "Add monitoring events to all services.". |
Of course, here is the Java code you requested:
```java
public List<JAXBElement<? extends ServiceType>> getBaseService() {
if (baseService == null) {
baseService = new ArrayList<JAXBElement<? extends ServiceType>>();
}
return this.baseService;
}
```
Hope this helps! | Create a Java method that does the following: "Gets the value of the baseService property.". |
Of course, here is the Java code you requested:
```java
public static AbstractBWMojo propertiesManager(MavenSession session, MavenProject mavenProject) {
AbstractBWMojo mojo = new AbstractBWMojo();
mojo.setProject(mavenProject);
mojo.setSession(session);
mojo.setSettings(session.getSettings());
return mojo;... | Create a Java method that does the following: "Creates a new instance of AbstractBWMojo with the properties manager.". |
Of course, here is the Java code you requested:
```java
protected List<Dependency> readDependenciesFromFile(String resolvedFileName, String dependencyType) throws IOException {
List<Dependency> dependencies = new ArrayList<Dependency>();
File resolvedFile = new File(resolvedFileName);
if (!resolvedFile.exists()... | Create a Java method that does the following: "Reads the dependencies from a file.". |
Of course, here is the Java code you requested:
```java
protected List<Dependency> getDependencies(String dependencyType, boolean doIgnoreDependencies) throws IOException {
ArrayList<Dependency> result = new ArrayList<Dependency>();
List<Dependency> dependencies = readDependenciesFromFile(directory + "/resolved", ... | Create a Java method that does the following: "Get the list of dependencies of the given type.". |
Of course, here is the Java code you requested:
```java
private void copyAliasesFile() throws IOException {
// Create the aliases.properties in the target folder
File aliasesFile = getAliasesFile();
FileWriter file = null;
BufferedWriter buffer = null;
PrintWriter aliasesFileOut = null;
try {
file = new... | Create a Java method that does the following: "Copy the aliases. properties file to the target folder.". |
Of course, here is the Java code you requested:
```java
private void copyDesigner5Prefs() throws IOException {
File designer5Prefs = getDesigner5Prefs();
// copy system 'Designer5.prefs' to this ".TIBCO" directory
File systemDesigner5Prefs = new File(System.getProperty("user.home") + "/" + TIBCO_HOME_DIR + "/" ... | Create a Java method that does the following: "Copy the designer5. prefs file to the TIBCO directory.". |
Of course, here is the Java code you requested:
```java
private void copyDesignTimeLibs() throws IOException {
File designTimeLibs = new File(buildSrcDirectory + "/" + DTL_FILE_NAME);
getLog().debug(DTL_FILE_NAME + " : " + buildSrcDirectory + "/" + DTL_FILE_NAME);
if (!designTimeLibs.exists()) {
if (buildS... | Create a Java method that does the following: "Copy the design time libraries to the build src directory.". |
Of course, here is the Java code you requested:
```java
protected int launchTIBCOBinary(File binary, List<File> tras, ArrayList<String> arguments, File workingDir, String errorMsg, boolean fork, boolean synchronous) throws IOException, MojoExecutionException {
Integer result = 0;
if (tras == null) { // no value... | Create a Java method that does the following: "Launches the tibco binary.". |
Of course, here is the Java code you requested:
```java
protected void launchTIBCOBinary(File binary, List<File> tras, ArrayList<String> arguments, File workingDir, String errorMsg) throws IOException, MojoExecutionException {
launchTIBCOBinary(binary, tras, arguments, workingDir, errorMsg, false, true);
}
```
Hop... | Create a Java method that does the following: "Launch the TIBCO binary.". |
Of course, here is the Java code you requested:
```java
private void buildEAR(File outputFile) throws MojoExecutionException, IOException {
checkBuildEAR();
// assert (outputFile != null);
ArrayList<String> arguments = new ArrayList<String>();
arguments.add("-ear"); // path of the Ente... | Create a Java method that does the following: "Build the EAR archive.". |
Of course, here is the Java code you requested:
```java
protected boolean cleanDirectory(File directory) {
if (directory.isDirectory() && directory.listFiles().length != 0) {
for (File file : directory.listFiles()) {
if (file.isFile()) {
file.delete();
... | Create a Java method that does the following: "Clean directory.". |
Of course, here is the Java code you requested:
```java
public void save() throws JAXBException {
Marshaller m = jaxbContext.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
m.marshal(process, xmlFile);
}
```
Hope this helps! | Create a Java method that does the following: "Saves the XML document to a file.". |
Of course, here is the Java code you requested:
```java
private List<MethodSubscriber> monitorInstances(List<ImmutablePair<String, String>> instances) throws ConsoleInitializationException, MicroAgentException {
List<MethodSubscriber> result = new ArrayList<MethodSubscriber>();
microAgent = new MicroAgent(hawk... | Create a Java method that does the following: "Monitor the instances.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "DiffExcludeFilter", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<DiffExcludeFilter> createDiffExcludeFilter(... | Create a Java method that does the following: "Create an instance of DiffExcludeFilter". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "NameValuePairs", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<NameValuePairs> createNameValuePairs(NameValue... | Create a Java method that does the following: "Create an instance of NameValuePairs.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "ClassLoaderExtension", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<ClassLoaderExtension> createClassLoaderE... | Create a Java method that does the following: "Create an instance of the ClassLoaderExtension class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "DeploymentDescriptor")
public JAXBElement<DeploymentDescriptorType> createDeploymentDescriptor(DeploymentDescriptorType value) {
return new JAXBElement<DeploymentDescriptorType>(_Dep... | Create a Java method that does the following: "Create an instance of the DeploymentDescriptor class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "NameValuePairBoolean", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "NVPair")
public JAXBElement<NameValuePairBoolean> createNameValuePairBoolean(NameV... | Create a Java method that does the following: "Create an instance of NameValuePairBoolean". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "Modules", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<Modules> createModules(Modules value) {
retur... | Create a Java method that does the following: "Create an instance of the Modules class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "SupportsFaultTolerance", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<SupportsFaultTolerance> createSupports... | Create a Java method that does the following: "Create an instance of supports fault tolerance.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "RequiredComponents", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor")
public JAXBElement<RequiredComponents> createRequiredComponen... | Create a Java method that does the following: "Create an instance of the required components property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "minInclusive")
public JAXBElement<Facet> createMinInclusive(Facet value) {
return new JAXBElement<Facet>(_MinInclusive_QNAME, Facet.class, null, value);
}
```
Hope this helps... | Create a Java method that does the following: "Create an instance of the JAXBElement required to represent a MinInclusive facet.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "maxLength")
public JAXBElement<NumFacet> createMaxLength(NumFacet value) {
return new JAXBElement<NumFacet>(_MaxLength_QNAME, NumFacet.class, null, value);
}
```
Hope this he... | Create a Java method that does the following: "Create an instance of the appropriate type for the maxLength property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "sequence")
public JAXBElement<ExplicitGroup> createSequence(ExplicitGroup value) {
return new JAXBElement<ExplicitGroup>(_Sequence_QNAME, ExplicitGroup.class, null, value);
}
... | Create a Java method that does the following: "Create an instance of the ExplicitGroup class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "minLength")
public JAXBElement<NumFacet> createMinLength(NumFacet value) {
return new JAXBElement<NumFacet>(_MinLength_QNAME, NumFacet.class, null, value);
}
```
Hope this he... | Create a Java method that does the following: "Create an instance of the JAXBElement required to represent the Minimum Length facet.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "attributeGroup")
public JAXBElement<NamedAttributeGroup> createAttributeGroup(NamedAttributeGroup value) {
return new JAXBElement<NamedAttributeGroup>(_AttributeGroup_QNAME, Named... | Create a Java method that does the following: "Create an instance of the named attribute group property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "key")
public JAXBElement<Keybase> createKey(Keybase value) {
return new JAXBElement<Keybase>(_Key_QNAME, Keybase.class, null, value);
}
```
Hope this helps! | Create a Java method that does the following: "Create an instance of the Key subtype.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "simpleType")
public JAXBElement<TopLevelSimpleType> createSimpleType(TopLevelSimpleType value) {
return new JAXBElement<TopLevelSimpleType>(_SimpleType_QNAME, TopLevelSimpleType.c... | Create a Java method that does the following: "Create an instance of the generic simpleType property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "maxExclusive")
public JAXBElement<Facet> createMaxExclusive(Facet value) {
return new JAXBElement<Facet>(_MaxExclusive_QNAME, Facet.class, null, value);
}
```
Hope this helps... | Create a Java method that does the following: "Create an instance of the JAXBElement class which represents the maximum exclusive facet.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "element")
public JAXBElement<TopLevelElement> createElement(TopLevelElement value) {
return new JAXBElement<TopLevelElement>(_Element_QNAME, TopLevelElement.class, null, value);
... | Create a Java method that does the following: "Create an instance of the JAXBElement class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "unique")
public JAXBElement<Keybase> createUnique(Keybase value) {
return new JAXBElement<Keybase>(_Unique_QNAME, Keybase.class, null, value);
}
```
Hope this helps! | Create a Java method that does the following: "Create an instance of the unique property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "complexType")
public JAXBElement<TopLevelComplexType> createComplexType(TopLevelComplexType value) {
return new JAXBElement<TopLevelComplexType>(_ComplexType_QNAME, TopLevelComple... | Create a Java method that does the following: "Create an instance of the complexType JAXBElement.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "maxInclusive")
public JAXBElement<Facet> createMaxInclusive(Facet value) {
return new JAXBElement<Facet>(_MaxInclusive_QNAME, Facet.class, null, value);
}
```
Hope this helps... | Create a Java method that does the following: "Create an instance of the JAXBElement class which is a maxInclusive value.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "attribute")
public JAXBElement<TopLevelAttribute> createAttribute(TopLevelAttribute value) {
return new JAXBElement<TopLevelAttribute>(_Attribute_QNAME, TopLevelAttribute.class, n... | Create a Java method that does the following: "Create an instance of the appropriate type of Attribute.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "anyAttribute")
public JAXBElement<Wildcard> createAnyAttribute(Wildcard value) {
return new JAXBElement<Wildcard>(_AnyAttribute_QNAME, Wildcard.class, null, value);
}
```
Hop... | Create a Java method that does the following: "Create an instance of the AnyAttribute JAXBElement.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.w3.org/2001/XMLSchema", name = "element", scope = Group.class)
public JAXBElement<LocalElement> createGroupElement(LocalElement value) {
return new JAXBElement<LocalElement>(_Element_QNAME, LocalElement.class, G... | Create a Java method that does the following: "Create an instance of the JAXBElement class representing the LocalElement element.". |
Of course, here is the Java code you requested:
```java
private void addAlias(ArrayList<HashMap<String,Object>> list, String aliasName) {
for (HashMap<String, Object> h : list) {
String name = (String) h.get("name");
if (name != null && name.equals(aliasName)) {
return; // avoid duplicates
}
}
HashM... | Create a Java method that does the following: "Add an alias to the list of aliases.". |
Of course, here is the Java code you requested:
```java
public void processFile(File f) throws MojoExecutionException {
try {
RepositoryModel repositoryModel = new RepositoryModel(f);
ArrayList<HashMap<String, Object>> aliases = readXMLBean(repositoryModel, f);
// reset old references
if (!keepOriginal... | Create a Java method that does the following: "Process the XML Bean file.". |
Of course, here is the Java code you requested:
```java
private void buildProjlib(File outputFile) throws MojoExecutionException, IOException {
checkDesignerBuildLibrary();
assert(outputFile != null);
ArrayList<String> arguments = new ArrayList<String>();
arguments.add("-lib"); // path of the libbuilder rel... | Create a Java method that does the following: "Build the PROJLIB.". |
Of course, here is the Java code you requested:
```java
public List<JAXBElement<? extends TExtensibleAttributesDocumented>> getRest() {
if (rest == null) {
rest = new ArrayList<JAXBElement<? extends TExtensibleAttributesDocumented>>();
}
return this.rest;
}
```
Hope this helps! | Create a Java method that does the following: "Gets the value of the rest property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/wsdl/", name = "definitions")
public JAXBElement<TDefinitions> createDefinitions(TDefinitions value) {
return new JAXBElement<TDefinitions>(_Definitions_QNAME, TDefinitions.class, null, value);
... | Create a Java method that does the following: "Create an instance of the TDefinitions class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/wsdl/", name = "fault", scope = TOperation.class)
public JAXBElement<TFault> createTOperationFault(TFault value) {
return new JAXBElement<TFault>(_TOperationFault_QNAME, TFault.class, TOperation.... | Create a Java method that does the following: "Create an instance of the TFault JAXBElement.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/wsdl/", name = "output", scope = TOperation.class)
public JAXBElement<TParam> createTOperationOutput(TParam value) {
return new JAXBElement<TParam>(_TOperationOutput_QNAME, TParam.class, TOperati... | Create a Java method that does the following: "Create an instance of the TParam class in the SOAP namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://schemas.xmlsoap.org/wsdl/", name = "input", scope = TOperation.class)
public JAXBElement<TParam> createTOperationInput(TParam value) {
return new JAXBElement<TParam>(_TOperationInput_QNAME, TParam.class, TOperation.... | Create a Java method that does the following: "Create an instance of the TParam class in the SOAP service.". |
Of course, here is the Java code you requested:
```java
public static void main(String[] args) {
MethodInvocator ca = null;
if (args.length != 4 ) {
System.err.println("Usage: java ConsoleApp <hawkDomain> <rvService> <rvNetwork> <rvDaemon>");
return;
}
if (args.le... | Create a Java method that does the following: "Main method to run the MethodInvocator.". |
Of course, here is the Java code you requested:
```java
public static Model getModelFromPOM(File pom, Log logger) throws IOException, XmlPullParserException {
Model model = null;
FileInputStream fis = null;
InputStreamReader isr = null;
try {
fis = new FileInputStream(pom);
isr = new InputStreamReader(fi... | Create a Java method that does the following: "Get the Model from the given pom file.". |
Of course, here is the Java code you requested:
```java
public static void addDependency(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
Model model = getModelFromPOM(pom, logger);
model.addDependency(dependency);
writeModelToPOM(model, pom, logger);
}
```
Hope thi... | Create a Java method that does the following: "Adds a dependency to the specified pom file.". |
Of course, here is the Java code you requested:
```java
public static void addDependencyManagement(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
Model model = getModelFromPOM(pom, logger);
DependencyManagement dMgmt = model.getDependencyManagement();
if (dMgmt == nu... | Create a Java method that does the following: "Adds a dependency to the dependency management model.". |
Of course, here is the Java code you requested:
```java
public static void removeDependency(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
Model model = getModelFromPOM(pom, logger);
for (Iterator<Dependency> it = model.getDependencies().iterator(); it.hasNext();){
if... | Create a Java method that does the following: "Removes the dependency from the specified pom file.". |
Of course, here is the Java code you requested:
```java
public static boolean dependencyExists(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
Model model = getModelFromPOM(pom, logger);
return dependencyExists(dependency, model.getDependencies());
}
```
Hope this hel... | Create a Java method that does the following: "Checks if the dependency exists in the pom.". |
Of course, here is the Java code you requested:
```java
public static boolean dependencyExistsManagement(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
Model model = getModelFromPOM(pom, logger);
DependencyManagement dMgmt = model.getDependencyManagement();
if (dMgmt... | Create a Java method that does the following: "Checks if a dependency exists in the dependency management model.". |
Of course, here is the Java code you requested:
```java
public static void addProjectAsModule(File pom, String relativePath, String profileId, Log logger) throws IOException, XmlPullParserException {
if (relativePath == null) return;
Model model = getModelFromPOM(pom, logger);
relativePath = relativePath.repla... | Create a Java method that does the following: "Add a project as a module.". |
Of course, here is the Java code you requested:
```java
public static boolean moduleExists(File pom, String relativePath, String profileId, Log logger) throws IOException, XmlPullParserException {
if (relativePath == null) return false;
Model model = getModelFromPOM(pom, logger);
relativePath = relativePath.... | Create a Java method that does the following: "Checks if a module exists in the pom.". |
Of course, here is the Java code you requested:
```java
protected void savePropertiesToFile(File outputFile, Properties properties, String propertiesComment, String success, String failure) throws MojoExecutionException {
OutputStream outputStream = null;
try {
outputFile.getParentFile().mkdirs();
outputS... | Create a Java method that does the following: "Saves the properties to the given file.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "performPolicy")
public JAXBElement<String> createPerformPolicy(String value) {
return new JAXBElement<String>(_PerformPolicy_QNAME, String.class, null, value);
... | Create a Java method that does the following: "Create an instance of the appropriate type of PerformPolicy". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "httpRepoInstance", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "remoteRepoInstance")
public JAXBElement<HttpRepo... | Create a Java method that does the following: "Create an instance of HttpRepoInstance in the Tibco Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "remoteRepoInstance")
public JAXBElement<RemoteRepoInstanceType> createRemoteRepoInstance(RemoteRepoInstanceType value) {
return new JAXBElement<RemoteRepoInstanceT... | Create a Java method that does the following: "Create an instance of the remoteRepoInstance property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "event")
public JAXBElement<EventType> createEvent(EventType value) {
return new JAXBElement<EventType>(_Event_QNAME, EventType.class, null, value);
}
```
Hope... | Create a Java method that does the following: "Create an instance of the event type.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "bw", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "baseService")
public JAXBElement<Bw> createBw(Bw value) {
... | Create a Java method that does the following: "Create an instance of the Bw class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "NVPair")
public JAXBElement<NVPairType> createNVPair(NVPairType value) {
return new JAXBElement<NVPairType>(_NVPair_QNAME, NVPairType.class, null, value);
}
``... | Create a Java method that does the following: "Create an instance of NVPairType in the TIBCO Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "suspendProcessEvent", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "event")
public JAXBElement<SuspendProcessEven... | Create a Java method that does the following: "Create an instance of the SuspendProcessEvent class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "checkPointRecoveryStorage", defaultValue = "false")
public JAXBElement<Boolean> createCheckPointRecoveryStorage(Boolean value) {
return new JAXBElement<Boolean>(_C... | Create a Java method that does the following: "Create an instance of the appropriate type for the CheckPointRecoveryStorage property.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "logEvent", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "event")
public JAXBElement<LogEvent> createLogEvent(LogE... | Create a Java method that does the following: "Create an instance of LogEvent in the Tibco Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "adapter", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "baseService")
public JAXBElement<Adapter> createAdapter(A... | Create a Java method that does the following: "Create an instance of the Adapter class.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "NameValuePair", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "NVPair")
public JAXBElement<NameValuePair> createNa... | Create a Java method that does the following: "Create an instance of NameValuePair in the TIBCO Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "rvRepoInstance", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "remoteRepoInstance")
public JAXBElement<RvRepoInst... | Create a Java method that does the following: "Create an instance of RvRepoInstance in the Tibco Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "application")
public JAXBElement<ApplicationType> createApplication(ApplicationType value) {
return new JAXBElement<ApplicationType>(_Application_QNAME, Applicatio... | Create a Java method that does the following: "Create an instance of ApplicationType". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "isFt")
public JAXBElement<Boolean> createIsFt(Boolean value) {
return new JAXBElement<Boolean>(_IsFt_QNAME, Boolean.class, null, value);
}
```
Hope this helps... | Create a Java method that does the following: "Create an instance of the appropriate type for IsFt". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "NameValuePairPassword", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "NVPair")
public JAXBElement<NameValuePairPa... | Create a Java method that does the following: "Create an instance of NameValuePairPassword". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "localRepoInstance", substitutionHeadNamespace = "http://www.tibco.com/xmlns/ApplicationManagement", substitutionHeadName = "repoInstance")
public JAXBElement<LocalRepoInst... | Create a Java method that does the following: "Create an instance of LocalRepoInstance in the Tibco Application Management namespace.". |
Of course, here is the Java code you requested:
```java
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "extends", scope = Plugins.class)
public JAXBElement<AnyObject> createPluginsExtends(AnyObject value) {
return new JAXBElement<AnyObject>(_PluginsExtends_QNAME, Any... | Create a Java method that does the following: "Create an instance of the optional parameter PluginsExtends.". |
Of course, here is the Java code you requested:
```java
private Artifact extractArtifact(Artifact a, String type, String classifier) {
if (a == null) {
return a;
}
Artifact result = new DefaultArtifact(a.getGroupId(),
a.getArtifactId(),
a.ge... | Create a Java method that does the following: "Extract an artifact from the given artifact.". |
Of course, here is the Java code you requested:
```java
protected File getArtifactFile(File basedir, String finalName, String classifier) {
if (classifier == null) {
classifier = "";
} else if (classifier.trim().length() > 0 && !classifier.startsWith("-")) {
classifier = "-" + c... | Create a Java method that does the following: "Get the file for the given classifier.". |
Of course, here is the Java code you requested:
```java
protected String extractFileContent(final String filename)
throws IOException {
final StringBuilder sb = new StringBuilder();
String temp = "";
final BufferedReader bufferedReader = new BufferedReader(
new FileReader(filename));
try {
while (tem... | Create a Java method that does the following: "Extract the content of a file into a String.". |
Of course, here is the Java code you requested:
```java
protected byte[] getBytesForClass(final String className)
throws RuntimeException {
try {
ClassLoader classLoader = this.getClass().getClassLoader();
InputStream stream = classLoader.getResourceAsStream(className
.replace(".", "/") + ".class");
... | Create a Java method that does the following: "Get the bytes for the class with the specified name.". |
Of course, here is the Java code you requested:
```java
public ArrayList<String> commonArguments() {
ArrayList<String> arguments = new ArrayList<String>();
arguments.add("-app");
arguments.add(deployedProjectName);
arguments.add("-domain");
arguments.add(domainName);
arguments.add("-user");
arguments.ad... | Create a Java method that does the following: "Returns the common arguments for the command.". |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.