Java Code Examples for com.intellij.util.xml.GenericAttributeValue#getRawText()

The following examples show how to use com.intellij.util.xml.GenericAttributeValue#getRawText() . 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: 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 2
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 3
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 4
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();
}