Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Signal (0.2 sec)

  1. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("jjj");
            propDesc.setValue(myBean, null);
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = IllegalPropertyRuntimeException.class)
        public void testSetValue_invalidType() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

         * @param toText
         *            置き換えるテキスト
         * @return 結果
         */
        public static final String replace(final String text, final String fromText, final String toText) {
            if (text == null || fromText == null || toText == null) {
                return null;
            }
            final StringBuilder buf = new StringBuilder(100);
            int pos = 0;
            int pos2 = 0;
            while (true) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         * @return 変換された{@link Date}
         */
        protected static Date toDate(final String str, final DateFormat format) {
            final ParsePosition pos = new ParsePosition(0);
            final Date date = format.parse(str, pos);
            if (date == null) {
                return null;
            }
            final int index = pos.getIndex();
            if (index == 0) {
                return null;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/xml/DomUtil.java

         * @param s
         *            属性値
         * @return エンコードされた属性値
         */
        public static String encodeAttrQuot(final String s) {
            if (s == null) {
                return null;
            }
            final char[] content = s.toCharArray();
            final StringBuilder buf = new StringBuilder(s.length() + 100);
            for (final char element : content) {
                switch (element) {
                case '<':
                    buf.append("&lt;");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/ResourceUtil.java

         * @see #getResourcePath(String, String)
         */
        public static URL getResourceNoException(final String path, final String extension, final ClassLoader loader) {
            assertArgumentNotNull("loader", loader);
    
            if (path == null || loader == null) {
                return null;
            }
            final String p = getResourcePath(path, extension);
            return loader.getResource(p);
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

        @Test
        public void testToDate_ShortStyle() throws Exception {
            final Date date = toDate("10/9/7 11:49", Locale.JAPAN);
            assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:00"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToDate_MediumStyle() throws Exception {
            final Date date = toDate("2010/9/7 11:49:10", Locale.JAPAN);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         */
        protected static void gatherTypeVariables(final Class<?> clazz, final Type type, final Map<TypeVariable<?>, Type> map) {
            if (clazz == null) {
                return;
            }
            gatherTypeVariables(type, map);
    
            final Class<?> superClass = clazz.getSuperclass();
            final Type superClassType = clazz.getGenericSuperclass();
            if (superClass != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

        @Test
        public void testPrefix() throws Exception {
            final CopyOptions option = new CopyOptions();
            assertThat(option.prefix(BeanNames.search_()), is(sameInstance(option)));
            assertThat(option.prefix, is("search_"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testBeanDelimiter() throws Exception {
            final CopyOptions option = new CopyOptions();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/util/CopyOptionsUtil.java

         * @return コンバータを設定した{@link CopyOptions}
         * @see CopyOptions#converter(Converter, CharSequence...)
         */
        public static CopyOptions converter(final Converter converter, final CharSequence... propertyNames) {
            return new CopyOptions().converter(converter, propertyNames);
        }
    
        /**
         * 日付のコンバータを設定した{@link CopyOptions}を返します。
         *
         * @param pattern
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/StringUtilTest.java

         */
        @Test
        public void testSplit() throws Exception {
            final String[] array = StringUtil.split("aaa\nbbb", "\n");
            assertEquals("1", 2, array.length);
            assertEquals("2", "aaa", array[0]);
            assertEquals("3", "bbb", array[1]);
        }
    
        /**
         *
         */
        @Test
        public void testSplit2() {
            final String[] array = StringUtil.split("aaa, bbb", ", ");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top