buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void testWithNonEscapedErrors() throws Exception { this.tag.setHtmlEscape("false"); // construct an errors instance of the tag TestBean target = new TestBean(); target.setName("Rob Harrop"); Errors errors = new BeanPropertyBindingResult(target, COMMAND_NAME); errors.rejectValue("name", "some.code",...
public void testWithNonEscapedErrors() throws Exception { this.tag.setHtmlEscape(false); // construct an errors instance of the tag TestBean target = new TestBean(); target.setName("Rob Harrop"); Errors errors = new BeanPropertyBindingResult(target, COMMAND_NAME); errors.rejectValue("name", "some.code", "...
public void testWithNullResolvedCommand() throws Exception { try { tag.setCommandName("${null}"); tag.doStartTag(); fail("Must not be able to have a command name that resolves to null"); } catch (IllegalArgumentException ex) { // expected } }
public void testWithNullResolvedCommand() throws Exception { try { tag.setCommandName(null); tag.doStartTag(); fail("Must not be able to have a command name that resolves to null"); } catch (IllegalArgumentException ex) { // expected } }
public void testHiddenElementOmittedOnDisabled() throws Exception { this.tag.setPath("stringArray"); this.tag.setItems(new Object[] {"foo", "bar", "baz"}); this.tag.setDisabled("true"); int result = this.tag.doStartTag(); assertEquals(Tag.SKIP_BODY, result); String output = getOutput(); // wrap the outp...
public void testHiddenElementOmittedOnDisabled() throws Exception { this.tag.setPath("stringArray"); this.tag.setItems(new Object[] {"foo", "bar", "baz"}); this.tag.setDisabled(true); int result = this.tag.doStartTag(); assertEquals(Tag.SKIP_BODY, result); String output = getOutput(); // wrap the output...
public String toString() { StringBuffer s = new StringBuffer(); if (coefficients[0] == 0.0) { if (coefficients.length == 1) { return "0"; } } else { s.append(Double.toString(coefficients[0])); } for (int i = 1; i < coefficients.length; ++i)...
public String toString() { StringBuilder s = new StringBuilder(); if (coefficients[0] == 0.0) { if (coefficients.length == 1) { return "0"; } } else { s.append(Double.toString(coefficients[0])); } for (int i = 1; i < coefficients.length; ++...
public String toString() { NumberFormat nf = NumberFormat.getPercentInstance(); StringBuffer outBuffer = new StringBuffer(); outBuffer.append("Value \t Freq. \t Pct. \t Cum Pct. \n"); Iterator<Comparable<?>> iter = freqTable.keySet().iterator(); while (iter.hasNext()) { ...
public String toString() { NumberFormat nf = NumberFormat.getPercentInstance(); StringBuilder outBuffer = new StringBuilder(); outBuffer.append("Value \t Freq. \t Pct. \t Cum Pct. \n"); Iterator<Comparable<?>> iter = freqTable.keySet().iterator(); while (iter.hasNext()) { ...
public String toString() { final StringBuffer buff = new StringBuffer("("); final int[] coordinates = getPoint(); for (int i = 0; i < coordinates.length; i++) { buff.append(coordinates[i]); if (i < coordinates.length - 1) { buff.append(","); ...
public String toString() { final StringBuilder buff = new StringBuilder("("); final int[] coordinates = getPoint(); for (int i = 0; i < coordinates.length; i++) { buff.append(coordinates[i]); if (i < coordinates.length - 1) { buff.append(","); ...
public String toString() { StringBuffer outBuffer = new StringBuffer(); String endl = "\n"; outBuffer.append("DescriptiveStatistics:").append(endl); outBuffer.append("n: ").append(getN()).append(endl); outBuffer.append("min: ").append(getMin()).append(endl); outBuffer...
public String toString() { StringBuilder outBuffer = new StringBuilder(); String endl = "\n"; outBuffer.append("DescriptiveStatistics:").append(endl); outBuffer.append("n: ").append(getN()).append(endl); outBuffer.append("min: ").append(getMin()).append(endl); outBuff...
public String toString() { StringBuffer outBuffer = new StringBuffer(); String endl = "\n"; outBuffer.append("SummaryStatistics:").append(endl); outBuffer.append("n: ").append(getN()).append(endl); outBuffer.append("min: ").append(getMin()).append(endl); outBuffer.app...
public String toString() { StringBuilder outBuffer = new StringBuilder(); String endl = "\n"; outBuffer.append("SummaryStatistics:").append(endl); outBuffer.append("n: ").append(getN()).append(endl); outBuffer.append("min: ").append(getMin()).append(endl); outBuffer.a...
private Number parseNumber(final String source, final double value, final ParsePosition pos) { Number ret = null; StringBuffer sb = new StringBuffer(); sb.append('('); sb.append(value); sb.append(')'); final int n = sb.length(); ...
private Number parseNumber(final String source, final double value, final ParsePosition pos) { Number ret = null; StringBuilder sb = new StringBuilder(); sb.append('('); sb.append(value); sb.append(')'); final int n = sb.length(); ...
public void checkNextPoissonConsistency(double mean) throws Exception { // Generate sample values final int sampleSize = 1000; // Number of deviates to generate final int minExpectedCount = 7; // Minimum size of expected bin count long maxObservedValue = 0; final d...
public void checkNextPoissonConsistency(double mean) throws Exception { // Generate sample values final int sampleSize = 1000; // Number of deviates to generate final int minExpectedCount = 7; // Minimum size of expected bin count long maxObservedValue = 0; final d...
public static void addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path, final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip, final Boolean autoDeployExploded, final Boolean scanEnabled, final Long deploymentTimeout) { fin...
public static void addService(final ServiceTarget serviceTarget, final String name, final String relativeTo, final String path, final Integer scanInterval, TimeUnit unit, final Boolean autoDeployZip, final Boolean autoDeployExploded, final Boolean scanEnabled, final Long deploymentTimeout) { fin...
public static ServiceName getFilterRefServiceName(final PathAddress address, String name) { final PathAddress oneUp = address.subAddress(0, address.size() - 1); final PathAddress twoUp = oneUp.subAddress(0, oneUp.size() - 1); final PathAddress threeUp = twoUp.subAddress(0, twoUp.size() - 1);...
public static ServiceName getFilterRefServiceName(final PathAddress address, String name) { final PathAddress oneUp = address.subAddress(0, address.size() - 1); final PathAddress twoUp = oneUp.subAddress(0, oneUp.size() - 1); final PathAddress threeUp = twoUp.subAddress(0, twoUp.size() - 1);...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); fina...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR)); fina...
public void serverRegistered(String serverName, Connection connection) { try { final ManagedServer server = servers.get(serverName); if (server == null) { log.errorf("No server called %s available", serverName); return; } serve...
public void serverRegistered(String serverName, Connection connection) { try { final ManagedServer server = servers.get(serverName); if (server == null) { log.errorf("No server called %s available", serverName); return; } serve...
private void fill() { //LOG.info("Fetching from Kafka: " + _consumer.host() + ":" + _partition.partition + " from offset " + _emittedToOffset); long start = System.nanoTime(); ByteBufferMessageSet msgs = _consumer.fetch( new FetchRequestBuilder().addFetch( ...
private void fill() { //LOG.info("Fetching from Kafka: " + _consumer.host() + ":" + _partition.partition + " from offset " + _emittedToOffset); long start = System.nanoTime(); ByteBufferMessageSet msgs = _consumer.fetch( new FetchRequestBuilder().addFetch( ...
private void decodeParameters(MultiValueMap<String, String> params, HttpServletRequest request) { for (String name : new ArrayList<String>(params.keySet())) { for (String value : new ArrayList<String>(params.remove(name))) { params.add(name, this.urlPathHelper.decodeRequestString(request, value)); } } }...
private void decodeParameters(MultiValueMap<String, String> params, HttpServletRequest request) { for (String name : new ArrayList<String>(params.keySet())) { for (String value : new ArrayList<String>(params.remove(name))) { params.add(this.urlPathHelper.decodeRequestString(request, name), this.urlPathHelper....
public ResourceAdapterXmlDeploymentService(ConnectorXmlDescriptor connectorXmlDescriptor, ResourceAdapter raxml, Module module, final String deployment, final ServiceName deploymentServiceName) { this.connectorXmlDescriptor = connectorXmlDescriptor; thi...
public ResourceAdapterXmlDeploymentService(ConnectorXmlDescriptor connectorXmlDescriptor, ResourceAdapter raxml, Module module, final String deployment, final ServiceName deploymentServiceName) { this.connectorXmlDescriptor = connectorXmlDescriptor; thi...
@Message(id = 11864, value = "Invalid binding name %s, name must start with one of %s") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual co...
@Message(id = 11864, value = "Invalid binding name %s, name must start with one of %s") /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual co...
private List<String> getServerLaunchCommand(Standalone serverConfig) { JvmElement jvm = serverConfig.getJvm(); List<String> command = new ArrayList<String>(); // if (false) { // // Example: run at high priority on *NIX // args.add("/usr/bin/nice"); /...
private List<String> getServerLaunchCommand(Standalone serverConfig) { JvmElement jvm = serverConfig.getJvm(); List<String> command = new ArrayList<String>(); // if (false) { // // Example: run at high priority on *NIX // args.add("/usr/bin/nice"); /...
private ObjectListAttributeDefinition(final String name, final String xmlName, final ObjectTypeAttributeDefinition valueType, final boolean allowNull, final int minSize, final int maxSize, final String[] alternatives, final String[] requires, final AttributeMarshaller attri...
private ObjectListAttributeDefinition(final String name, final String xmlName, final ObjectTypeAttributeDefinition valueType, final boolean allowNull, final int minSize, final int maxSize, final String[] alternatives, final String[] requires, final AttributeMarshaller attri...
protected SimpleListAttributeDefinition(final String name, final String xmlName, final AttributeDefinition valueType, final boolean allowNull, final int minSize, final int maxSize, final String[] alternatives, final String[] requires, AttributeMarshaller attributeMarshaller,final boolean resourceOnly, final Depreca...
protected SimpleListAttributeDefinition(final String name, final String xmlName, final AttributeDefinition valueType, final boolean allowNull, final int minSize, final int maxSize, final String[] alternatives, final String[] requires, AttributeMarshaller attributeMarshaller,final boolean resourceOnly, final Depreca...
public ClientMappingsAttributeDefinition(String name) { super(name, name, true, 0, Integer.MAX_VALUE, validator, null, null, AttributeAccess.Flag.RESTART_ALL_SERVICES); }
public ClientMappingsAttributeDefinition(String name) { super(name, name, true, false, 0, Integer.MAX_VALUE, validator, null, null, AttributeAccess.Flag.RESTART_ALL_SERVICES); }
public void start(StartContext context) throws StartException { this.service = new CoreGroupCommunicationService(); this.service.setChannel(channel.getValue()); this.service.setScopeId(this.scope); try { this.service.start(); } catch (Exception e) { t...
public void start(StartContext context) throws StartException { this.service = new CoreGroupCommunicationService(); this.service.setChannel(this.channel.getValue()); this.service.setScopeId(this.scope); try { this.service.start(); } catch (Exception e) { ...
private List<ModelNode> parse(String name) throws XMLStreamException, IOException { final List<ModelNode> operations = new ArrayList<ModelNode>(); XMLMapper mapper = XMLMapper.Factory.create(); mapper.registerRootElement(new QName(Namespace.CURRENT.getUri(), "subsystem"), this.parser); ...
private List<ModelNode> parse(String name) throws XMLStreamException, IOException { final List<ModelNode> operations = new ArrayList<ModelNode>(); XMLMapper mapper = XMLMapper.Factory.create(); mapper.registerRootElement(new QName(Namespace.CURRENT.getUri(), "subsystem"), this.parser); ...
public boolean isTrueLength() { return trueLength; }
public boolean isTrueLength() { return this.trueLength; }
public void testSendMessage() throws JMSException, NamingException { final InitialContext ctx = new InitialContext(); final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA"); final QueueConnection connection = factory.createQueueConnection(); connect...
public void testSendMessage() throws JMSException, NamingException { final InitialContext ctx = new InitialContext(); final QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:/JmsXA"); final QueueConnection connection = factory.createQueueConnection(); connect...
public void testWikipediaExamples() { Caverphone caverphone = new Caverphone(); String[][] data = { {"Stevenson", "STFNSN1111"}, {"Peter", "PTA1111111"}, {"ready", "RTA1111111"}, {"social", "SSA1111111"}, {"able", "APA111111...
public void testSpecificationExamples() { Caverphone caverphone = new Caverphone(); String[][] data = { {"Stevenson", "STFNSN1111"}, {"Peter", "PTA1111111"}, {"ready", "RTA1111111"}, {"social", "SSA1111111"}, {"able", "APA11...
package org.springframework.jdbc.datasource.init; /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
package org.springframework.jdbc.datasource.init; /* * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
private ClientMappingsHandler() { super(AbstractSocketBindingResourceDefinition.CLIENT_MAPPINGS.getValidator()); }
private ClientMappingsHandler() { super(AbstractSocketBindingResourceDefinition.CLIENT_MAPPINGS); }
public void testVectorOnePair() { Vector3D u = new Vector3D(3, 2, 1); Vector3D v = new Vector3D(-4, 2, 2); Rotation r = new Rotation(u, v); checkVector(r.applyTo(u.multiply(v.getNorm())), v.multiply(u.getNorm())); checkAngle(new Rotation(u, u.negate()).getAngle(), Math.PI); try { ne...
public void testVectorOnePair() { Vector3D u = new Vector3D(3, 2, 1); Vector3D v = new Vector3D(-4, 2, 2); Rotation r = new Rotation(u, v); checkVector(r.applyTo(u.scalarMultiply(v.getNorm())), v.scalarMultiply(u.getNorm())); checkAngle(new Rotation(u, u.negate()).getAngle(), Math.PI); try ...
public void register(GenericWebApplicationContext wac) { RootBeanDefinition adapterDef = new RootBeanDefinition(RequestMappingHandlerMethodAdapter.class); ModelAndViewResolver[] mavResolvers = new ModelAndViewResolver[] {new MyModelAndViewResolver()}; adapterDef.getPropertyValues().add("customModelAndVie...
public void register(GenericWebApplicationContext wac) { RootBeanDefinition adapterDef = new RootBeanDefinition(RequestMappingHandlerMethodAdapter.class); ModelAndViewResolver[] mavResolvers = new ModelAndViewResolver[] {new MyModelAndViewResolver()}; adapterDef.getPropertyValues().add("modelAndViewResol...
public interface BivariateFunction { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Ve...
public interface BivariateFunction { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Ve...
public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final File configDir, final ConfigurationFile file) { HostXml hostXml = new HostXml(Module.getBootModuleLoader()); BackupXmlConfigurationPersister persister = new BackupXmlConfigurationPersister(file, new QName(Names...
public static ExtensibleConfigurationPersister createHostXmlConfigurationPersister(final File configDir, final ConfigurationFile file) { HostXml hostXml = new HostXml(Module.getBootModuleLoader()); BackupXmlConfigurationPersister persister = new BackupXmlConfigurationPersister(file, new QName(Names...
public synchronized ExtensibleConfigurationPersister getConfigurationPersister() { if (configurationPersister == null) { if (serverEnvironment == null) { configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader)); } ...
public synchronized ExtensibleConfigurationPersister getConfigurationPersister() { if (configurationPersister == null) { if (serverEnvironment == null) { configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader)); } ...
private static long readUint64(final DataInput in) throws IOException { int firstByte = in.readUnsignedByte(); int mask = 0x80; long value = 0; for (int i = 0; i < 8; i++) { if ((firstByte & mask) == 0) { return value | ((firstByte & (mask - 1)) << (8 * i)...
private static long readUint64(final DataInput in) throws IOException { long firstByte = in.readUnsignedByte(); int mask = 0x80; long value = 0; for (int i = 0; i < 8; i++) { if ((firstByte & mask) == 0) { return value | ((firstByte & (mask - 1)) << (8 * i...
protected <T> StatefulEJBLocator<T> openSession(EJBReceiverContext context, Class<T> viewType, String appName, String moduleName, String distinctName, String beanName) throws IllegalArgumentException { final EjbDeploymentInformation ejbInfo = findBean(appName, moduleName, distinctName, beanName); fi...
protected <T> StatefulEJBLocator<T> openSession(EJBReceiverContext context, Class<T> viewType, String appName, String moduleName, String distinctName, String beanName) throws IllegalArgumentException { final EjbDeploymentInformation ejbInfo = findBean(appName, moduleName, distinctName, beanName); fi...
private String normalizeLanguageAttributes(final String input, final boolean strip) { String text = input; Set<String> langs = new HashSet<String>(); int bracketStart; while ((bracketStart = text.indexOf('[')) != -1) { int bracketEnd = text.indexOf(']', bracketStart); ...
private String normalizeLanguageAttributes(final String input, final boolean strip) { String text = input; Set<String> langs = new HashSet<String>(); int bracketStart; while ((bracketStart = text.indexOf('[')) != -1) { int bracketEnd = text.indexOf(']', bracketStart); ...
public void testMomonts() { final double tol = 1e-9; BetaDistribution dist; dist = new BetaDistributionImpl(1, 1); Assert.assertEquals(dist.getNumericalMean(), 0.5, tol); Assert.assertEquals(dist.getNumericalVariance(), 1.0 / 12.0, tol); dist = new ...
public void testMoments() { final double tol = 1e-9; BetaDistribution dist; dist = new BetaDistributionImpl(1, 1); Assert.assertEquals(dist.getNumericalMean(), 0.5, tol); Assert.assertEquals(dist.getNumericalVariance(), 1.0 / 12.0, tol); dist = new ...
public void testMomonts() { final double tol = 1e-9; BinomialDistribution dist; dist = new BinomialDistributionImpl(10, 0.5); Assert.assertEquals(dist.getNumericalMean(), 10d * 0.5d, tol); Assert.assertEquals(dist.getNumericalVariance(), 10d * 0.5d * 0.5d, tol); ...
public void testMoments() { final double tol = 1e-9; BinomialDistribution dist; dist = new BinomialDistributionImpl(10, 0.5); Assert.assertEquals(dist.getNumericalMean(), 10d * 0.5d, tol); Assert.assertEquals(dist.getNumericalVariance(), 10d * 0.5d * 0.5d, tol); ...
public void testMomonts() { CauchyDistribution dist; dist = new CauchyDistributionImpl(10.2, 0.15); Assert.assertTrue(Double.isNaN(dist.getNumericalMean())); Assert.assertTrue(Double.isNaN(dist.getNumericalVariance())); dist = new CauchyDistributionI...
public void testMoments() { CauchyDistribution dist; dist = new CauchyDistributionImpl(10.2, 0.15); Assert.assertTrue(Double.isNaN(dist.getNumericalMean())); Assert.assertTrue(Double.isNaN(dist.getNumericalVariance())); dist = new CauchyDistributionI...
public void testMomonts() { final double tol = 1e-9; ChiSquaredDistribution dist; dist = new ChiSquaredDistributionImpl(1500); Assert.assertEquals(dist.getNumericalMean(), 1500, tol); Assert.assertEquals(dist.getNumericalVariance(), 3000, tol); dist...
public void testMoments() { final double tol = 1e-9; ChiSquaredDistribution dist; dist = new ChiSquaredDistributionImpl(1500); Assert.assertEquals(dist.getNumericalMean(), 1500, tol); Assert.assertEquals(dist.getNumericalVariance(), 3000, tol); dist...
public void testMomonts() { final double tol = 1e-9; ExponentialDistribution dist; dist = new ExponentialDistributionImpl(11d); Assert.assertEquals(dist.getNumericalMean(), 11d, tol); Assert.assertEquals(dist.getNumericalVariance(), 11d * 11d, tol); ...
public void testMoments() { final double tol = 1e-9; ExponentialDistribution dist; dist = new ExponentialDistributionImpl(11d); Assert.assertEquals(dist.getNumericalMean(), 11d, tol); Assert.assertEquals(dist.getNumericalVariance(), 11d * 11d, tol); ...
public void testMomonts() { final double tol = 1e-9; FDistribution dist; dist = new FDistributionImpl(1, 2); Assert.assertTrue(Double.isNaN(dist.getNumericalMean())); Assert.assertTrue(Double.isNaN(dist.getNumericalVariance())); dist = new FDistribut...
public void testMoments() { final double tol = 1e-9; FDistribution dist; dist = new FDistributionImpl(1, 2); Assert.assertTrue(Double.isNaN(dist.getNumericalMean())); Assert.assertTrue(Double.isNaN(dist.getNumericalVariance())); dist = new FDistribut...
public void testMomonts() { final double tol = 1e-9; GammaDistribution dist; dist = new GammaDistributionImpl(1, 2); Assert.assertEquals(dist.getNumericalMean(), 2, tol); Assert.assertEquals(dist.getNumericalVariance(), 4, tol); dist = new GammaDist...
public void testMoments() { final double tol = 1e-9; GammaDistribution dist; dist = new GammaDistributionImpl(1, 2); Assert.assertEquals(dist.getNumericalMean(), 2, tol); Assert.assertEquals(dist.getNumericalVariance(), 4, tol); dist = new GammaDist...
public void testMomonts() { final double tol = 1e-9; HypergeometricDistribution dist; dist = new HypergeometricDistributionImpl(1500, 40, 100); Assert.assertEquals(dist.getNumericalMean(), 40d * 100d / 1500d, tol); Assert.assertEquals(dist.getNumericalVariance(), ( 1...
public void testMoments() { final double tol = 1e-9; HypergeometricDistribution dist; dist = new HypergeometricDistributionImpl(1500, 40, 100); Assert.assertEquals(dist.getNumericalMean(), 40d * 100d / 1500d, tol); Assert.assertEquals(dist.getNumericalVariance(), ( 1...
public void testMomonts() { final double tol = 1e-9; NormalDistribution dist; dist = new NormalDistributionImpl(0, 1); Assert.assertEquals(dist.getNumericalMean(), 0, tol); Assert.assertEquals(dist.getNumericalVariance(), 1, tol); dist = new...
public void testMoments() { final double tol = 1e-9; NormalDistribution dist; dist = new NormalDistributionImpl(0, 1); Assert.assertEquals(dist.getNumericalMean(), 0, tol); Assert.assertEquals(dist.getNumericalVariance(), 1, tol); dist = new...
public void testMomonts() { final double tol = 1e-9; PascalDistribution dist; dist = new PascalDistributionImpl(10, 0.5); Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol); Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d...
public void testMoments() { final double tol = 1e-9; PascalDistribution dist; dist = new PascalDistributionImpl(10, 0.5); Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol); Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d...
public void testMomonts() { final double tol = 1e-9; PoissonDistribution dist; dist = new PoissonDistributionImpl(1); Assert.assertEquals(dist.getNumericalMean(), 1, tol); Assert.assertEquals(dist.getNumericalVariance(), 1, tol); dist = new PoissonD...
public void testMoments() { final double tol = 1e-9; PoissonDistribution dist; dist = new PoissonDistributionImpl(1); Assert.assertEquals(dist.getNumericalMean(), 1, tol); Assert.assertEquals(dist.getNumericalVariance(), 1, tol); dist = new PoissonD...
public void testMomonts() { final double tol = 1e-9; WeibullDistribution dist; dist = new WeibullDistributionImpl(2.5, 3.5); // In R: 3.5*gamma(1+(1/2.5)) (or emperically: mean(rweibull(10000, 2.5, 3.5))) Assert.assertEquals(dist.getNumericalMean(), 3.5 * FastMath.ex...
public void testMoments() { final double tol = 1e-9; WeibullDistribution dist; dist = new WeibullDistributionImpl(2.5, 3.5); // In R: 3.5*gamma(1+(1/2.5)) (or emperically: mean(rweibull(10000, 2.5, 3.5))) Assert.assertEquals(dist.getNumericalMean(), 3.5 * FastMath.ex...
public void testMomonts() { final double tol = 1e-9; ZipfDistribution dist; dist = new ZipfDistributionImpl(2, 0.5); Assert.assertEquals(dist.getNumericalMean(), FastMath.sqrt(2), tol); Assert.assertEquals(dist.getNumericalVariance(), 0.24264068711928521, tol); ...
public void testMoments() { final double tol = 1e-9; ZipfDistribution dist; dist = new ZipfDistributionImpl(2, 0.5); Assert.assertEquals(dist.getNumericalMean(), FastMath.sqrt(2), tol); Assert.assertEquals(dist.getNumericalVariance(), 0.24264068711928521, tol); ...
package org.springframework.web.socket.messaging; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
package org.springframework.web.socket.messaging; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
private void readServerElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException { parseNamespaces(reader, address, list); // attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++)...
private void readServerElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException { parseNamespaces(reader, address, list); // attributes final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++)...
public void setAsText(String text) throws IllegalArgumentException { if (StringUtils.hasLength(text)) { // tokenize it with "," String[] tokens = StringUtils.commaDelimitedListToStringArray(text); if (tokens.length < 2) { throw new IllegalArgumentException( "too little arguments found, at least th...
public void setAsText(String text) throws IllegalArgumentException { if (StringUtils.hasLength(text)) { // tokenize it with "," String[] tokens = StringUtils.commaDelimitedListToStringArray(text); if (tokens.length < 2) { throw new IllegalArgumentException( "too little arguments found, at least th...
protected Cache createCache(ConcurrentMap<Object, Object> nativeCache) { return new ConcurrentCache(nativeCache, CACHE_NAME); }
protected Cache createCache(ConcurrentMap<Object, Object> nativeCache) { return new ConcurrentMapCache(nativeCache, CACHE_NAME, true); }
protected double[] fct(double[] f) throws IllegalArgumentException { final double[] transformed = new double[f.length]; final int n = f.length - 1; if (!FastFourierTransformer.isPowerOf2(n)) { throw MathRuntimeException.createIllegalArgumentException( ...
protected double[] fct(double[] f) throws IllegalArgumentException { final double[] transformed = new double[f.length]; final int n = f.length - 1; if (!FastFourierTransformer.isPowerOf2(n)) { throw MathRuntimeException.createIllegalArgumentException( ...
protected double[] fst(double[] f) throws IllegalArgumentException { final double[] transformed = new double[f.length]; FastFourierTransformer.verifyDataSet(f); if (f[0] != 0.0) { throw MathRuntimeException.createIllegalArgumentException( LocalizedFormats.FI...
protected double[] fst(double[] f) throws IllegalArgumentException { final double[] transformed = new double[f.length]; FastFourierTransformer.verifyDataSet(f); if (f[0] != 0.0) { throw MathRuntimeException.createIllegalArgumentException( LocalizedFormats.FI...
void reconnectServer(final String serverName, final ModelNode domainModel, final boolean running, final boolean stopping); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution ...
void reconnectServer(final String serverName, final ModelNode domainModel, final boolean running, final boolean stopping); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution ...
private void restartedHcStartOrReconnectServers(final ModelNode servers, final ModelNode domainModel){ Map<String, ProcessInfo> processInfos = serverInventory.determineRunningProcesses(); for(final String serverName : servers.keys()) { ProcessInfo info = processInfos.get(serverInventory....
private void restartedHcStartOrReconnectServers(final ModelNode servers, final ModelNode domainModel){ Map<String, ProcessInfo> processInfos = serverInventory.determineRunningProcesses(); for(final String serverName : servers.keys()) { ProcessInfo info = processInfos.get(serverInventory....
public static final int MANAGEMENT_MINOR_VERSION = 0; static { InputStream stream = Version.class.getClassLoader().getResourceAsStream("META-INF/MANIFEST.MF"); Manifest manifest = null; try { if (stream != null) manifest = new Manifest(stream); } catc...
public static final int MANAGEMENT_MINOR_VERSION = 1; static { InputStream stream = Version.class.getClassLoader().getResourceAsStream("META-INF/MANIFEST.MF"); Manifest manifest = null; try { if (stream != null) manifest = new Manifest(stream); } catc...
public void setDefaultContentTypeWithStrategy() throws Exception { this.factoryBean.setDefaultContentType(new FixedContentNegotiationStrategy(MediaType.APPLICATION_JSON)); this.factoryBean.afterPropertiesSet(); ContentNegotiationManager manager = this.factoryBean.getObject(); assertEquals(Arrays.asList(MediaT...
public void setDefaultContentTypeWithStrategy() throws Exception { this.factoryBean.setDefaultContentTypeStrategy(new FixedContentNegotiationStrategy(MediaType.APPLICATION_JSON)); this.factoryBean.afterPropertiesSet(); ContentNegotiationManager manager = this.factoryBean.getObject(); assertEquals(Arrays.asLis...
public static void checkModelAgainstDefinition(final ModelNode model, ManagementResourceRegistration rr) { final Set<String> children = rr.getChildNames(PathAddress.EMPTY_ADDRESS); final Set<String> attributeNames = rr.getAttributeNames(PathAddress.EMPTY_ADDRESS); for (ModelNode el : model.a...
public static void checkModelAgainstDefinition(final ModelNode model, ManagementResourceRegistration rr) { final Set<String> children = rr.getChildNames(PathAddress.EMPTY_ADDRESS); final Set<String> attributeNames = rr.getAttributeNames(PathAddress.EMPTY_ADDRESS); for (ModelNode el : model.a...
public long getRecordNumber() { return recordNumber; } /** * Parses the next record from the current point in the stream. * * @return the record as an array of values, or <tt>null</tt> if the end of the stream has been reached * @throws IOException * on parse er...
public long getRecordNumber() { return recordNumber; } /** * Parses the next record from the current point in the stream. * * @return the record as an array of values, or <tt>null</tt> if the end of the stream has been reached * @throws IOException * on parse er...
private EntityManager getOrCreateTransactionScopedEntityManager( final EntityManagerFactory emf, final String scopedPuName, final Map properties, final SynchronizationType synchronizationType) { EntityManager entityManager = TransactionUtil.getTransactionScope...
private EntityManager getOrCreateTransactionScopedEntityManager( final EntityManagerFactory emf, final String scopedPuName, final Map properties, final SynchronizationType synchronizationType) { EntityManager entityManager = TransactionUtil.getTransactionScope...
private void processClass(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException { bindClassSources(deploymentUnit, annotation, eeModuleClassDescription...
private void processClass(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException { bindClassSources(deploymentUnit, annotation, eeModuleClassDescription...
private void resizeBuf() { if (buf == null) { buf = new byte[8192]; pos = 0; readPos = 0; } else { byte[] b = new byte[buf.length * 2]; System.arraycopy(buf, 0, b, 0, buf.length); buf = b; } } /** * Extract...
private void resizeBuf() { if (buf == null) { buf = new byte[8192]; pos = 0; readPos = 0; } else { byte[] b = new byte[buf.length * 2]; System.arraycopy(buf, 0, b, 0, buf.length); buf = b; } } /** * Extract...
public StandardTypeConverter() { this.conversionService = ConversionServiceFactory.createDefault(); }
public StandardTypeConverter() { this.conversionService = ConversionServiceFactory.getDefault(); }
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { model.setEmptyObject(); AlternativeAttributeCheckHandler.checkAlternatives(operation, CONNECTOR_REFS.getName(), DISCOVERY_GROUP_NAME.getName()); for (final AttributeDefinition attributeDef...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { model.setEmptyObject(); AlternativeAttributeCheckHandler.checkAlternatives(operation, CONNECTOR_REFS.getName(), DISCOVERY_GROUP_NAME.getName(), false); for (final AttributeDefinition attri...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { model.setEmptyObject(); AlternativeAttributeCheckHandler.checkAlternatives(operation, CONNECTOR_REFS.getName(), (DISCOVERY_GROUP_NAME.getName())); for (final AttributeDefinition attributeD...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { model.setEmptyObject(); AlternativeAttributeCheckHandler.checkAlternatives(operation, CONNECTOR_REFS.getName(), (DISCOVERY_GROUP_NAME.getName()), true); for (final AttributeDefinition attr...
protected void checkOnlyOneOfElements(XMLExtendedStreamReader reader, Set<Element> seen, Element element1, Element element2) throws XMLStreamException { if (!seen.contains(element1) && !seen.contains(element2)) { throw new XMLStreamException(MESSAGES.required(element1.getLocalName(), element2.ge...
protected static void checkOnlyOneOfElements(XMLExtendedStreamReader reader, Set<Element> seen, Element element1, Element element2) throws XMLStreamException { if (!seen.contains(element1) && !seen.contains(element2)) { throw new XMLStreamException(MESSAGES.required(element1.getLocalName(), elem...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { AlternativeAttributeCheckHandler.checkAlternatives(operation, Common.CONNECTOR.getName(), Common.DISCOVERY_GROUP_NAME.getName()); for (final AttributeDefinition attribute : ConnectionFactoryDefinit...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { AlternativeAttributeCheckHandler.checkAlternatives(operation, Common.CONNECTOR.getName(), Common.DISCOVERY_GROUP_NAME.getName(), false); for (final AttributeDefinition attribute : ConnectionFactory...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { AlternativeAttributeCheckHandler.checkAlternatives(operation, Common.CONNECTOR.getName(), Common.DISCOVERY_GROUP_NAME.getName()); for(final AttributeDefinition attribute : getDefinitions(PooledConn...
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { AlternativeAttributeCheckHandler.checkAlternatives(operation, Common.CONNECTOR.getName(), Common.DISCOVERY_GROUP_NAME.getName(), false); for(final AttributeDefinition attribute : getDefinitions(Poo...
private void decompose(RealMatrix covariance, double small) throws NotPositiveDefiniteMatrixException { int order = covariance.getRowDimension(); double[][] c = covariance.getData(); double[][] b = new double[order][order]; int[] swap = new int[order]; int[] index = ne...
private void decompose(RealMatrix covariance, double small) throws NotPositiveDefiniteMatrixException { int order = covariance.getRowDimension(); double[][] c = covariance.getData(); double[][] b = new double[order][order]; int[] swap = new int[order]; int[] index = ne...
public String toString() { return "SessionDisconnectEvent[sessionId=" + this.sessionId + (this.status != null ? this.status.toString() : "closeStatus=null") + "]"; }
public String toString() { return "SessionDisconnectEvent[sessionId=" + this.sessionId + ", " + (this.status != null ? this.status.toString() : "closeStatus=null") + "]"; }
public void start() throws Exception { channels = new RemoteChannelPairSetup(); channels.setupRemoting(handler); channels.startChannels(); }
public void start() throws Exception { channels = new RemoteChannelPairSetup(); channels.setupRemoting(handler); channels.startClientConnetion(); }
protected void doHandle(CommandContext ctx) throws CommandLineException { final PatchOperationTarget target = createPatchOperationTarget(ctx); final PatchOperationBuilder builder = createPatchOperationBuilder(ctx.getParsedCommandLine()); final ModelNode result; try { resu...
protected void doHandle(CommandContext ctx) throws CommandLineException { final PatchOperationTarget target = createPatchOperationTarget(ctx); final PatchOperationBuilder builder = createPatchOperationBuilder(ctx.getParsedCommandLine()); final ModelNode result; try { resu...
private static final CommandRegistry cmdRegistry = new CommandRegistry(); static { cmdRegistry.registerHandler(new HelpHandler(), "help", "h"); cmdRegistry.registerHandler(new QuitHandler(), "quit", "q", "exit"); cmdRegistry.registerHandler(new ConnectHandler(), "connect"); cmdRe...
private static final CommandRegistry cmdRegistry = new CommandRegistry(); static { cmdRegistry.registerHandler(new HelpHandler(), "help", "h"); cmdRegistry.registerHandler(new QuitHandler(), "quit", "q", "exit"); cmdRegistry.registerHandler(new ConnectHandler(), "connect"); cmdRe...
public void addProperty(String name, String value) { if(name == null || name.trim().isEmpty()) throw new IllegalArgumentException("The argument name is not specified: '" + name + "'"); if(value == null || value.trim().isEmpty()) throw new IllegalArgumentException("The argume...
public void addProperty(String name, String value) { if(name == null || name.trim().isEmpty()) throw new IllegalArgumentException("The argument name is not specified: '" + name + "'"); if(value == null || value.trim().isEmpty()) throw new IllegalArgumentException("The argume...
public static <T> Constructor<T> getMatchingAccessibleConstructor(Class<T> cls, Class<?>... parameterTypes) { // see if we can find the constructor directly // most of the time this works and it's much faster try { Constructor<T> ctor = cls.getConstructor(parameterTyp...
public static <T> Constructor<T> getMatchingAccessibleConstructor(Class<T> cls, Class<?>... parameterTypes) { // see if we can find the constructor directly // most of the time this works and it's much faster try { Constructor<T> ctor = cls.getConstructor(parameterTyp...
* seems to (wrongly) to prevent access even when the modifer is public. * Calling setAccessible(true) solves the problem but will only work from * sufficiently privileged code. Better workarounds would be gratefully * accepted. * @param o the AccessibleObject to set as accessible */ st...
* seems to (wrongly) to prevent access even when the modifer is public. * Calling setAccessible(true) solves the problem but will only work from * sufficiently privileged code. Better workarounds would be gratefully * accepted. * @param o the AccessibleObject to set as accessible */ st...
private int readArgumentIndex(String pattern, ParsePosition pos) { int start = pos.getIndex(); seekNonWs(pattern, pos); StringBuffer result = new StringBuffer(); boolean error = false; for (; !error && pos.getIndex() < pattern.length(); next(pos)) { char c = patte...
private int readArgumentIndex(String pattern, ParsePosition pos) { int start = pos.getIndex(); seekNonWs(pattern, pos); StringBuffer result = new StringBuffer(); boolean error = false; for (; !error && pos.getIndex() < pattern.length(); next(pos)) { char c = patte...
private static <T> T qualifiedBeanOfType(ConfigurableListableBeanFactory bf, Class<T> beanType, String qualifier) { Map<String, T> candidateBeans = BeanFactoryUtils.beansOfTypeIncludingAncestors(bf, beanType); T matchingBean = null; for (String beanName : candidateBeans.keySet()) { if (isQualifierMatch(qualif...
private static <T> T qualifiedBeanOfType(ConfigurableListableBeanFactory bf, Class<T> beanType, String qualifier) { Map<String, T> candidateBeans = BeanFactoryUtils.beansOfTypeIncludingAncestors(bf, beanType); T matchingBean = null; for (String beanName : candidateBeans.keySet()) { if (isQualifierMatch(qualif...
public interface VectorialObjectiveFunction extends Serializable { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to Yo...
public interface VectorialObjectiveFunction extends Serializable { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to Yo...
public void stop() throws Exception { if (this.jettyServer.isRunning()) { this.jettyServer.setStopTimeout(0); this.jettyServer.stop(); } }
public void stop() throws Exception { if (this.jettyServer.isRunning()) { this.jettyServer.setStopTimeout(5000); this.jettyServer.stop(); } }
public void doExecute(OperationContext context, ModelNode operation) throws OperationFailedException { validator.validate(operation); final String opName = operation.require(OP).asString(); final ModelNode opAddr = operation.get(OP_ADDR); final PathAddress addre...
public void doExecute(OperationContext context, ModelNode operation) throws OperationFailedException { validator.validate(operation); final String opName = operation.require(OP).asString(); final ModelNode opAddr = operation.get(OP_ADDR); final PathAddress addre...
public CallbackHandlerFactory getSecretCallbackHandlerFactory() { return secretCallbackFactory.getValue(); }
public CallbackHandlerFactory getSecretCallbackHandlerFactory() { return secretCallbackFactory.getOptionalValue(); }
private static final int INITIAL_TOKEN_LENGTH = 50; enum Type { /** Token has no valid content, i.e. is in its initialized state. */ INVALID, /** Token with content, at beginning or in the middle of a line. */ TOKEN, /** Token (which can have content) when the end of f...
private static final int INITIAL_TOKEN_LENGTH = 50; enum Type { /** Token has no valid content, i.e. is in its initialized state. */ INVALID, /** Token with content, at beginning or in the middle of a line. */ TOKEN, /** Token (which can have content) when the end of f...
public BasicComponentCreateService(final ComponentConfiguration componentConfiguration) { componentName = componentConfiguration.getComponentName(); postConstruct = Interceptors.getChainedInterceptorFactory(componentConfiguration.getPostConstructInterceptors()); preDestroy = Interceptors.get...
public BasicComponentCreateService(final ComponentConfiguration componentConfiguration) { componentName = componentConfiguration.getComponentName(); postConstruct = Interceptors.getChainedInterceptorFactory(componentConfiguration.getPostConstructInterceptors()); preDestroy = Interceptors.get...
public synchronized void start(StartContext startContext) throws StartException { final long time = System.currentTimeMillis(); try { context.create(); } catch (Exception e) { throw new StartException("failed to create context", e); } try { ...
public synchronized void start(StartContext startContext) throws StartException { final long time = System.currentTimeMillis(); try { context.create(); } catch (Exception e) { throw new StartException("failed to create context", e); } try { ...
public static void main(String[] args) { SecurityActions.setSystemProperty("log4j.defaultInitOverride", "true"); new BridgeRepositorySelector().start(); // Install JBoss Stdio to avoid any nasty crosstalk. StdioContext.install(); final StdioContext context = StdioContext.cre...
public static void main(String[] args) { SecurityActions.setSystemProperty("log4j.defaultInitOverride", "true"); new BridgeRepositorySelector().start(); // Install JBoss Stdio to avoid any nasty crosstalk. StdioContext.install(); final StdioContext context = StdioContext.cre...
public List<ModelNode> load() throws ConfigurationPersistenceException { return updates; } }); bootstrap.start(configuration, startServices); }
public List<ModelNode> load() throws ConfigurationPersistenceException { return updates; } }); bootstrap.bootstrap(configuration, startServices); }
private HelloWorldConnection getConnection() throws Exception { InitialContext context = new InitialContext(); //HelloWorldConnectionFactory factory = (HelloWorldConnectionFactory)context.lookup(JNDI_NAME); JndiLookupTask task = new JndiLookupTask(context, JNDI_NAME); PollingUtils.re...
private HelloWorldConnection getConnection() throws Exception { InitialContext context = new InitialContext(); //HelloWorldConnectionFactory factory = (HelloWorldConnectionFactory)context.lookup(JNDI_NAME); JndiLookupTask task = new JndiLookupTask(context, JNDI_NAME); PollingUtils.re...
public void testMBean() throws Exception { MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer(); ObjectName objectName = new ObjectName("jboss:name=test,type=config"); PollingUtils.retryWithTimeout(2000, new PollingUtils.WaitForMBeanTask(mbeanServer, objectName)); O...
public void testMBean() throws Exception { MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer(); ObjectName objectName = new ObjectName("jboss:name=test,type=config"); PollingUtils.retryWithTimeout(10000, new PollingUtils.WaitForMBeanTask(mbeanServer, objectName)); ...
private static String performCall(String urlPattern, String param) throws Exception { URL url = new URL("http://localhost:8080/war-example/" + urlPattern + "?input=" + param); UrlConnectionTask task = new UrlConnectionTask(url); PollingUtils.retryWithTimeout(1000, task); return task....
private static String performCall(String urlPattern, String param) throws Exception { URL url = new URL("http://localhost:8080/war-example/" + urlPattern + "?input=" + param); UrlConnectionTask task = new UrlConnectionTask(url); PollingUtils.retryWithTimeout(10000, task); return task...
private static String performCall(String params, String request) throws Exception { URL url = new URL("http://localhost:8080/ws-example/" + params); UrlConnectionTask task = new UrlConnectionTask(url, request); PollingUtils.retryWithTimeout(1500, task); return task.getResponse(); ...
private static String performCall(String params, String request) throws Exception { URL url = new URL("http://localhost:8080/ws-example/" + params); UrlConnectionTask task = new UrlConnectionTask(url, request); PollingUtils.retryWithTimeout(10000, task); return task.getResponse(); ...
public void testServerStartupAndShutDown() throws Exception { System.out.println(Main.class.getClassLoader()); ServerEnvironment serverEnvironment = Main.determineEnvironment(new String[0], new Properties(System.getProperties()), System.getenv()); Assert.assertNotNull(serverEnvironment); ...
public void testServerStartupAndShutDown() throws Exception { System.out.println(Main.class.getClassLoader()); ServerEnvironment serverEnvironment = Main.determineEnvironment(new String[0], new Properties(System.getProperties()), System.getenv()); Assert.assertNotNull(serverEnvironment); ...
protected AbstractInterfaceCriteriaElement(XMLExtendedStreamReader reader, final Element element) throws XMLStreamException { super(reader); if (element == null) throw new IllegalArgumentException("element is null"); this.element = element; }
protected AbstractInterfaceCriteriaElement(XMLExtendedStreamReader reader, final Element element) throws XMLStreamException { super(); if (element == null) throw new IllegalArgumentException("element is null"); this.element = element; }
protected InterfaceElement(XMLExtendedStreamReader reader, boolean criteriaRequired) throws XMLStreamException { super(reader); // Handle attributes String name = null; final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { final String v...
protected InterfaceElement(XMLExtendedStreamReader reader, boolean criteriaRequired) throws XMLStreamException { super(); // Handle attributes String name = null; final int count = reader.getAttributeCount(); for (int i = 0; i < count; i ++) { final String value =...
protected AbstractFormatterElement(final QName elementName) { super(null, elementName); }
protected AbstractFormatterElement(final QName elementName) { super(elementName); }
protected AbstractHandlerElement(final String name, final QName elementName) { super(null, elementName); this.name = name; }
protected AbstractHandlerElement(final String name, final QName elementName) { super(elementName); this.name = name; }
private static XMLStreamException missingRequired(final XMLExtendedStreamReader reader, final Set<?> required) { final StringBuilder b = new StringBuilder(); Iterator<?> iterator = required.iterator(); while (iterator.hasNext()) { final Object o = iterator.next(); b.a...
private static XMLStreamException missingRequired(final XMLExtendedStreamReader reader, final Set<?> required) { final StringBuilder b = new StringBuilder(); Iterator<?> iterator = required.iterator(); while (iterator.hasNext()) { final Object o = iterator.next(); b.a...