Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for NewInstance (0.08 sec)

  1. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

         *
         * @return 新しい {@link DocumentBuilderFactory}のインスタンス
         */
        public static DocumentBuilderFactory newInstance() {
            return newInstance(false);
        }
    
        public static DocumentBuilderFactory newInstance(final boolean external) {
            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            if (!external) {
                try {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleDocumentationExtension.java

        public GradleDocumentationExtension(ObjectFactory objects) {
            releaseNotes = objects.newInstance(ReleaseNotes.class);
            userManual = objects.newInstance(UserManual.class);
            dslReference = objects.newInstance(DslReference.class);
            javadocs = objects.newInstance(Javadocs.class);
            kotlinDslReference = objects.newInstance(KotlinDslReference.class);
        }
    
        /**
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Aug 20 14:11:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/XIncludeAwareXmlProvider.groovy

            root.documentElement
        }
    
        Node emptyDoc() {
            root = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()
        }
    
        void write(File destFile, boolean indent = false) {
            destFile.withOutputStream { OutputStream stream ->
                TransformerFactory factory = TransformerFactory.newInstance()
                Transformer transformer = factory.newTransformer()
                if (indent) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                + "  </dependencyManagement>\n"
                + "</project>\n";
    
        @Test
        void testCycleInImports() throws Exception {
            ModelBuilder builder = new DefaultModelBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setModelSource(new StringModelSource(BASE1));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

        }
    
        @Test
        void testOneProblem() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

        }
    
        @Test
        void testV4ModelPriority() {
            Model m = model.withBuild(Build.newInstance()
                    .withPlugins(Collections.singleton(Plugin.newInstance()
                            .withExecutions(Collections.singleton(
                                    PluginExecution.newInstance().withPriority(5))))));
            assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ConstructorUtil.java

         *             このコンストラクタが列挙型に関連している場合
         * @see Constructor#newInstance(Object[])
         */
        public static <T> T newInstance(final Constructor<T> constructor, final Object... args)
                throws InstantiationRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("constructor", constructor);
    
            try {
                return constructor.newInstance(args);
            } catch (final InstantiationException e) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/ArrayUtil.java

            assertArgumentNotNull("array", array);
    
            final int length = array.length;
            @SuppressWarnings("unchecked")
            final T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), length + 1);
            System.arraycopy(array, 0, newArray, 0, length);
            newArray[length] = obj;
            return newArray;
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

    class ProblemCollectorFactoryTest {
    
        @Test
        void testNewInstance() {
            ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null);
    
            Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null);
            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
            assertEquals(0, collector1.getProblems().size());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/xml/SchemaFactoryUtil.java

            return newW3cXmlSchemaFactory(false);
        }
    
        public static SchemaFactory newW3cXmlSchemaFactory(final boolean external) {
            final SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
            if (!external) {
                disableExternalResources(schemaFactory);
            }
            return schemaFactory;
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top