com.intellij.util.xml.GenericAttributeValue Java Examples

The following examples show how to use com.intellij.util.xml.GenericAttributeValue. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FolivoraDomExtender.java    From Folivora with Apache License 2.0 6 votes vote down vote up
@Override
public void registerExtensions(@Nonnull AndroidDomElement element,
                               @Nonnull final DomExtensionsRegistrar registrar) {
  final AndroidFacet facet = AndroidFacet.getInstance(element);

  if (facet == null) {
    return;
  }

  AttributeProcessingUtil.AttributeProcessor callback = (xmlName, attrDef, parentStyleableName)
    -> {
    Set<?> formats = attrDef.getFormats();
    Class valueClass = formats.size() == 1 ? getValueClass(formats.iterator().next()) : String
      .class;
    registrar.registerAttributeChildExtension(xmlName, GenericAttributeValue.class);
    return registrar.registerGenericAttributeValueChildExtension(xmlName, valueClass);
  };

  try {
    FolivoraAttrProcessing.registerFolivoraAttributes(facet, element, callback);
  } catch (Exception ignore) {}
}
 
Example #2
Source File: Package.java    From arma-intellij-plugin with MIT License 5 votes vote down vote up
/**
 * @return the "name" attribute value as a String. If it doesn't exist, this will return "?"
 */
@NotNull
default String getPackageName() {
	GenericAttributeValue<String> name = getName();
	if (name == null) {
		return "?";
	}
	if (name.getRawText() == null) {
		return "?";
	}
	return name.getRawText();
}
 
Example #3
Source File: Container.java    From arma-intellij-plugin with MIT License 5 votes vote down vote up
/**
 * @return the "name" attribute value as a String. If it doesn't exist, this will return "?"
 */
@NotNull
default String getContainerName() {
	GenericAttributeValue<String> name = getName();
	if (name == null) {
		return "?";
	}
	if (name.getRawText() == null) {
		return "?";
	}
	return name.getRawText();
}
 
Example #4
Source File: Package.java    From arma-intellij-plugin with MIT License 5 votes vote down vote up
/**
 * @return the "name" attribute value as a String. If it doesn't exist, this will return "?"
 */
@NotNull
default String getPackageName() {
	GenericAttributeValue<String> name = getName();
	if (name == null) {
		return "?";
	}
	if (name.getRawText() == null) {
		return "?";
	}
	return name.getRawText();
}
 
Example #5
Source File: Container.java    From arma-intellij-plugin with MIT License 5 votes vote down vote up
/**
 * @return the "name" attribute value as a String. If it doesn't exist, this will return "?"
 */
@NotNull
default String getContainerName() {
	GenericAttributeValue<String> name = getName();
	if (name == null) {
		return "?";
	}
	if (name.getRawText() == null) {
		return "?";
	}
	return name.getRawText();
}
 
Example #6
Source File: Package.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
@Attribute("name")
GenericAttributeValue<String> getName();
 
Example #7
Source File: Container.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
@Attribute("name")
GenericAttributeValue<String> getName();
 
Example #8
Source File: Package.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
@Attribute("name")
GenericAttributeValue<String> getName();
 
Example #9
Source File: Container.java    From arma-intellij-plugin with MIT License 4 votes vote down vote up
@Attribute("name")
GenericAttributeValue<String> getName();
 
Example #10
Source File: Flow.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the name child.
 * <pre>
 * <h3>Attribute null:name documentation</h3>
 * The name used to identify this flow construct.
 * </pre>
 *
 * @return the value of the name child.
 */
@NotNull
@Required
GenericAttributeValue<String> getName();
 
Example #11
Source File: Flow.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the processingStrategy child.
 * <pre>
 * <h3>Attribute null:processingStrategy documentation</h3>
 * Strategy used to process the configured message processors when exchange pattern is 'one-way'.
 *                             This attribute accepts either one of the enumerated strategies with default configuration options or a reference to a globally defined strategy.
 *                             If not specified, it will be taken from the defaultProcessingStrategy attribute of the &lt;configuration&gt; element. If that one
 *                             is not defined either, then the mule.default.processing.strategy system property will be checked. If that's not setup
 *                             either, then the value 'default' will be used
 * </pre>
 *
 * @return the value of the processingStrategy child.
 */
@NotNull
GenericAttributeValue<String> getProcessingStrategy();
 
Example #12
Source File: MUnitTest.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the ignore attribute.
 * <pre>
 * <h3>Attribute null:ignore documentation</h3>
 * Defines if the test must be ignored.
 * </pre>
 *
 * @return the value of the ignore child.
 */
@NotNull
@Required
GenericAttributeValue<String> getIgnore();
 
Example #13
Source File: MUnitTest.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the expectException child.
 * <pre>
 * <h3>Attribute null:expectException documentation</h3>
 * Exception expression to match
 * </pre>
 *
 * @return the value of the expectException child.
 */
@NotNull
GenericAttributeValue<String> getExpectException();
 
Example #14
Source File: Mule.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the version child.
 *
 * @return the value of the version child.
 */
@NotNull
GenericAttributeValue<String> getVersion();
 
Example #15
Source File: SubFlow.java    From mule-intellij-plugins with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the value of the name child.
 * <pre>
 * <h3>Attribute null:name documentation</h3>
 * The name used to identify this flow construct.
 * </pre>
 *
 * @return the value of the name child.
 */
@NotNull
@Required
GenericAttributeValue<String> getName();