Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
WEBLAB: Service oriented integration platform for media mining and intelligence applications Copyright (C) 2004 - 2009 EADS DEFENCE AND SECURITY SYSTEMS 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. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
 
 package org.ow2.weblab.services.normaliser.xml;
 
 import java.util.List;
 
 public class XmlProperty {
 
 	public enum NormalisedPropertyType {
 		LITERAL, RESOURCE
 	}
 	
 	protected String xpathExpression;
 	protected boolean appendValuesToTextUnit;
 	
 	public XmlProperty() {
 		super();
 	}
 
 	public XmlProperty(String xpathExpressionboolean appendValuesToTextUnit,
 			NormalisedPropertyType normalisedPropertyTypeList<StringnormalisedPropertyURI) {
 		super();
 		this. = xpathExpression;
 		this. = appendValuesToTextUnit;
 		this. = normalisedPropertyType;
 		this. = normalisedPropertyURI;
 	}

Returns:
the xpathExpression
 
 	public String getXpathExpression() {
 		return this.;
 	}

Parameters:
xpathExpression the xpathExpression to set
 
 	public void setXpathExpression(String xpathExpression) {
 		this. = xpathExpression;
 	}

Returns:
the appendValuesToTextUnit
 
 	public boolean isAppendValuesToTextUnit() {
 		return this.;
 	}

Parameters:
appendValuesToTextUnit the appendValuesToTextUnit to set
 
 	public void setAppendValuesToTextUnit(boolean appendValuesToTextUnit) {
 		this. = appendValuesToTextUnit;
 	}

Returns:
the normalisedPropertyType
 
 		return this.;
 	}

Parameters:
normalisedPropertyType the normalisedPropertyType to set
 
 	public void setNormalisedPropertyType(NormalisedPropertyType normalisedPropertyType) {
 		this. = normalisedPropertyType;
 	}

Returns:
the normalisedPropertyURI
 
 		return this.;
 	}

Parameters:
normalisedPropertyURI the normalisedPropertyURI to set
 
 	public void setNormalisedPropertyURI(List<StringnormalisedPropertyURI) {
		this. = normalisedPropertyURI;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (this. ? 1231 : 1237);
		result = prime * result + ((this. == null) ? 0 : this..hashCode());
		result = prime * result + ((this. == null) ? 0 : this..hashCode());
		result = prime * result + ((this. == null) ? 0 : this..hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		XmlProperty other = (XmlPropertyobj;
		if (this. != other.appendValuesToTextUnit)
			return false;
		if (this. == null) {
			if (other.normalisedPropertyType != null)
				return false;
		}
		else if (!this..equals(other.normalisedPropertyType))
			return false;
		if (this. == null) {
			if (other.normalisedPropertyURI != null)
				return false;
		}
		else if (!this..equals(other.normalisedPropertyURI))
			return false;
		if (this. == null) {
			if (other.xpathExpression != null)
				return false;
		}
		else if (!this..equals(other.xpathExpression))
			return false;
		return true;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "XmlProperty [appendValuesToTextUnit=" + this. + ", normalisedPropertyType="
this. + ", normalisedPropertyURI=" + this. + ", xpathExpression="
this. + "]";
	}
New to GrepCode? Check out our FAQ X