All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hp.hpl.sparta.xpath.TextExistsExpr Maven / Gradle / Ivy

Go to download

Support Chinese character (both Simplified and Tranditional) to most popular Pinyin systems, including Hanyu Pinyin, Tongyong Pinyin, Wade-Giles, MPS2, Yale and Gwoyeu Romatzyh. Support multiple pronounciations and customized output.

There is a newer version: 2.5.1
Show newest version
package com.hp.hpl.sparta.xpath;

/**
 * [text()] expression
 * This is part of the GoF Flyweight(195) pattern -- Only one object of
 * this class ever exists, shared amongst all clients.
 * You use INSTANCE instead of the constructor to get
 * that object.
 *
 
Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@version $Date: 2002/12/13 22:42:22 $ $Revision: 1.4 $ @author Eamonn O'Brien-Strain */ public class TextExistsExpr extends BooleanExpr { //only need one of them => much memory sharing private TextExistsExpr() {} static final TextExistsExpr INSTANCE = new TextExistsExpr(); /** * @see com.hp.hpl.sparta.xpath.BooleanExpr#accept(BooleanExprVisitor) */ public void accept(BooleanExprVisitor visitor) throws XPathException { visitor.visit(this); } public String toString() { return "[text()]"; } } //$Log: TextExistsExpr.java,v $ //Revision 1.4 2002/12/13 22:42:22 eobrain //Fix javadoc. // //Revision 1.3 2002/12/13 18:08:44 eobrain //Factor Visitor out into separate visitors for node tests and predicates. // //Revision 1.2 2002/12/06 23:41:49 eobrain //Add toString() which returns the original XPath. // //Revision 1.1 2002/10/30 16:25:20 eobrain //Feature request [ 630127 ] Support /a/b[text()='foo'] //http://sourceforge.net/projects/sparta-xml/ //




© 2015 - 2024 Weber Informatics LLC | Privacy Policy