/**
* This class will help to build Property object from a given OMElement
*/
public class PropertyHelper {
public static Property fromOM(OMElement propertyElement) {
Property property = new Property();
String name = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_NAME));
String xpath = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_XPATH));
String type = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_TYPE));
String xmlFieldName = propertyElement.getAttributeValue(new QName(CEPConstants.CE_CONF_ELE_XML_FIELD_NAME));
String xmlFieldType = propertyElement.getAttributeValue(new QName(CEPConstants.CE_CONF_ELE_XML_FIELD_TYPE));
property.setName(name);
property.setXpath(xpath);
property.setType(type);
property.setXmlFieldName(xmlFieldName);
property.setXmlFieldType(xmlFieldType);
return property;
}