Search in sources :

Example 6 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class QNameLocalPartValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 7 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class QNameTextNodeValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 8 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class TextNodeValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 9 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class CDATAValueBinding method init.

@Override
public void init(Property property) {
    super.init(property);
    final XmlBinding bindingAnnotation = property.definition().getAnnotation(XmlBinding.class);
    this.path = new XmlPath(bindingAnnotation.path(), resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath) XmlBinding(org.eclipse.sapphire.modeling.xml.annotations.XmlBinding)

Aggregations

XmlPath (org.eclipse.sapphire.modeling.xml.XmlPath)9 XmlBinding (org.eclipse.sapphire.modeling.xml.annotations.XmlBinding)2 PropertyDef (org.eclipse.sapphire.PropertyDef)1