Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void readChartItems(org.w3c.dom.Element chartElem, org.maltparser.core.flow.FlowChartManager flowCharts, java.util.LinkedHashSet<ChartItemSpecification> chartItemSpecifications) throws org.maltparser.core.exception.MaltChainedException
        private void readChartItems(Element chartElem, FlowChartManager flowCharts, LinkedHashSet <ChartItemSpecification> chartItemSpecifications)
        {
            NodeList flowChartItemList = chartElem.getElementsByTagName("chartitem");

            for (int i = 0; i < flowChartItemList.Length; i++)
            {
                ChartItemSpecification chartItemSpecification = new ChartItemSpecification();
                chartItemSpecification.read((Element)flowChartItemList.item(i), flowCharts);
                chartItemSpecifications.add(chartItemSpecification);
            }
        }
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            ChartItemSpecification other = (ChartItemSpecification)obj;

            if (ReferenceEquals(chartItemName, null))
            {
                if (!ReferenceEquals(other.chartItemName, null))
                {
                    return(false);
                }
            }
            else if (!chartItemName.Equals(other.chartItemName))
            {
                return(false);
            }

            if (attributes == null)
            {
                if (other.attributes != null)
                {
                    return(false);
                }
            }
            else if (!attributes.Equals(other.attributes))
            {
                return(false);
            }

            if (chartItemClass == null)
            {
                if (other.chartItemClass != null)
                {
                    return(false);
                }
            }
            else if (!chartItemClass.Equals(other.chartItemClass))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
 public virtual void removePostProcessChartItemSpecifications(ChartItemSpecification chartItemSpecification)
 {
     postProcessChartItemSpecifications.remove(chartItemSpecification);
 }
Esempio n. 4
0
 public virtual void addPostProcessChartItemSpecifications(ChartItemSpecification chartItemSpecification)
 {
     postProcessChartItemSpecifications.add(chartItemSpecification);
 }