Examples of XMLField


Examples of org.eclipse.persistence.oxm.XMLField

     */
    public void add(DatabaseField key, Object value) {
        if (null == value) {
            return;
        }
        XMLField xmlField = convertToXMLField(key);
        XPathFragment lastFragment = xmlField.getLastXPathFragment();
        XMLConversionManager xcm = (XMLConversionManager) session.getDatasourcePlatform().getConversionManager();
        if (lastFragment.nameIsText()) {
            String stringValue = (String)xcm.convertObject(value, String.class);
            characters(stringValue);
        } else if (lastFragment.isAttribute()) {
            String stringValue = (String)xcm.convertObject(value, String.class);
            attribute(lastFragment, xmlField.getNamespaceResolver(), stringValue);
        } else {
            element(lastFragment.getNamespaceURI(), lastFragment.getXPath(), lastFragment.getShortName());
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLField

    /**
     * INTERNAL:
     * Check if the field is contained in the row.
     */
    public boolean containsKey(DatabaseField key) {
        XMLField xmlField = convertToXMLField(key);
        NodeList nodeList = UnmarshalXPathEngine.getInstance().selectNodes(dom, xmlField, xmlField.getNamespaceResolver());
        return nodeList.getLength() > 0;
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLField

     */
    public Object getIndicatingNoEntry(DatabaseField key) {
        return getIndicatingNoEntry(key, false);
    }
    public Object getIndicatingNoEntry(DatabaseField key, boolean shouldReturnNode) {
        XMLField field = convertToXMLField(key);

        // handle 'self' xpath
        if (field.isSelfField()) {
            return this;
        }

        Object result = UnmarshalXPathEngine.getInstance().selectSingleNode(dom, field, field.getNamespaceResolver());

        if(result == noEntry) {
            if(shouldReturnNode) {
                return null;
            }
View Full Code Here

Examples of org.exoplatform.xml.object.XMLField

   {
      Configuration config = getConfiguration("collection-configuration.xml", profiles);
      Component a = config.getComponent(InitParamsHolder.class.getName());
      ObjectParameter op = a.getInitParams().getObjectParam("test.configuration");
      XMLObject o = op.getXMLObject();
      XMLField xf = o.getField("role");
      return xf.getCollection();
   }
View Full Code Here

Examples of org.mule.module.db.integration.model.XmlField

        return new Record(new Field("NAME", EARTH.getName()));
    }

    public static Record getMonguitoRecord()
    {
        return new Record(new Field("NAME", Alien.MONGUITO.getName()), new XmlField("DESCRIPTION", Alien.MONGUITO.getXml()));
    }
View Full Code Here

Examples of org.projectforge.xml.stream.XmlField

            if (prefix != null) {
              buf.append(prefix);
            }
            String alias = null;
            if (field.isAnnotationPresent(XmlField.class)) {
              final XmlField xmlFieldAnn = field.getAnnotation(XmlField.class);
              if (xmlFieldAnn != null) {
                alias = xmlFieldAnn.alias();
              }
            }
            if (alias != null) {
              buf.append(alias);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.