Examples of XMLString


Examples of org.apache.xml.utils.XMLString

     * characters as white space characters.
     * ht - horizontal tab, nl - newline , cr - carriage return and sp - space
     * trim() methods by default also takes care of these white space characters
     * So trim() method is used to remove leading and trailing white spaces.
     */
  XMLString s = trim();
  double result = Double.NaN;
  for (int i = 0; i < s.length(); i++)
  {
    char c = s.charAt(i);
    if (c != '-' && c != '.' && ( c < 0X30 || c > 0x39)) {
            // The character is not a '-' or a '.' or a digit
            // then return NaN because something is wrong.
      return result;
        }
  }
  try
  {
    result = Double.parseDouble(s.toString());
  } catch (NumberFormatException e){}

  return result;
}
View Full Code Here

Examples of org.apache.xmlbeans.XmlString

    }

    public void insertProperty( Object[] propElems ) throws CallbackFailedException
    {
        // Comment prop has cardinality of 1, so passed array will always have exactly one element
        XmlString xString = (XmlString) propElems[0];
        m_fileSystem.setComment( xString.getStringValue() );
    }
View Full Code Here

Examples of org.apache.xmlbeans.XmlString

        insertProperty( prop );
    }

    public ResourceProperty refreshProperty( ResourceProperty prop throws CallbackFailedException
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getComment() );
        return prop;
    }
View Full Code Here

Examples of org.apache.xmlbeans.XmlString

        m_fileSystem = fileSystem;
    }

    public ResourceProperty refreshProperty(ResourceProperty prop)
    {
        XmlString xString = (XmlString) prop.get( 0 );
        xString.setStringValue( m_fileSystem.getMountPoint() );
        return prop;
    }
View Full Code Here

Examples of org.exist.util.XMLString

     * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
     */
    @Override
    public void comment(final char[] ch, final int start, final int len) throws SAXException {
        try {
            receiver.comment(new XMLString(ch, start, len));
        } catch (final TransformerException e) {
            throw new SAXException(e.getMessage(), e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.