Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public org.maltparser.core.symbol.SymbolTable addSymbolTable(String tableName, int columnCategory, int columnType, String nullValueStrategy) throws org.maltparser.core.exception.MaltChainedException
        public virtual SymbolTable addSymbolTable(string tableName, int columnCategory, int columnType, string nullValueStrategy)
        {
            ParseSymbolTable symbolTable = symbolTables[tableName];

            if (symbolTable == null)
            {
                symbolTable             = new ParseSymbolTable(tableName, columnCategory, columnType, nullValueStrategy, parentSymbolTableHandler);
                symbolTables[tableName] = symbolTable;
            }
            return(symbolTable);
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public org.maltparser.core.symbol.SymbolTable addSymbolTable(String tableName, org.maltparser.core.symbol.SymbolTable parentTable) throws org.maltparser.core.exception.MaltChainedException
        public virtual SymbolTable addSymbolTable(string tableName, SymbolTable parentTable)
        {
            ParseSymbolTable symbolTable = symbolTables[tableName];

            if (symbolTable == null)
            {
                symbolTable             = new ParseSymbolTable(tableName, parentTable, parentSymbolTableHandler);
                symbolTables[tableName] = symbolTable;
            }
            return(symbolTable);
        }
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final ParseSymbolTable other = (ParseSymbolTable)obj;
            ParseSymbolTable other = (ParseSymbolTable)obj;

            return((ReferenceEquals(name, null)) ? ReferenceEquals(other.name, null) : name.Equals(other.name));
        }