com.google.gwt.uibinder.rebind.XMLElement.failRequired()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中com.google.gwt.uibinder.rebind.XMLElement.failRequired()方法的一些代码示例,展示了XMLElement.failRequired()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElement.failRequired()方法的具体详情如下:
包路径:com.google.gwt.uibinder.rebind.XMLElement
类名称:XMLElement
方法名:failRequired

XMLElement.failRequired介绍

暂无

代码示例

代码示例来源:origin: org.vectomatic/lib-gwt-svg

/**
 * Consumes the named attribute, or dies if it is missing.
 */
public String consumeRequiredRawAttribute(String name) throws UnableToCompleteException {
 String value = consumeRawAttribute(name);
 if (value == null) {
  failRequired(name);
 }
 return value;
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Consumes the named attribute, or dies if it is missing.
 */
public String consumeRequiredRawAttribute(String name) throws UnableToCompleteException {
 String value = consumeRawAttribute(name);
 if (value == null) {
  failRequired(name);
 }
 return value;
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Consumes the named attribute, or dies if it is missing.
 */
public String consumeRequiredRawAttribute(String name) throws UnableToCompleteException {
 String value = consumeRawAttribute(name);
 if (value == null) {
  failRequired(name);
 }
 return value;
}

代码示例来源:origin: laaglu/lib-gwt-svg

/**
 * Consumes the named attribute, or dies if it is missing.
 */
public String consumeRequiredRawAttribute(String name) throws UnableToCompleteException {
 String value = consumeRawAttribute(name);
 if (value == null) {
  failRequired(name);
 }
 return value;
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Consumes the given required attribute as a literal or field reference. The
 * types parameters are required to determine how the value is parsed and
 * validated.
 * 
 * @param name the attribute's full name (including prefix)
 * @param types the type(s) this attribute is expected to provide
 * @return the attribute's value as a Java expression
 * @throws UnableToCompleteException on parse failure, or if the attribute is
 *           empty or unspecified
 */
public String consumeRequiredAttribute(String name, JType... types)
  throws UnableToCompleteException {
 if (!hasAttribute(name)) {
  failRequired(name);
 }
 AttributeParser parser = attributeParsers.getParser(types);
 String value = parser.parse(this, consumeRequiredRawAttribute(name));
 designTime.putAttribute(this, name, value);
 return value;
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Consumes the given required attribute as a literal or field reference. The
 * types parameters are required to determine how the value is parsed and
 * validated.
 * 
 * @param name the attribute's full name (including prefix)
 * @param types the type(s) this attribute is expected to provide
 * @return the attribute's value as a Java expression
 * @throws UnableToCompleteException on parse failure, or if the attribute is
 *           empty or unspecified
 */
public String consumeRequiredAttribute(String name, JType... types)
  throws UnableToCompleteException {
 if (!hasAttribute(name)) {
  failRequired(name);
 }
 AttributeParser parser = attributeParsers.getParser(types);
 String value = parser.parse(this, consumeRequiredRawAttribute(name));
 designTime.putAttribute(this, name, value);
 return value;
}

代码示例来源:origin: org.vectomatic/lib-gwt-svg

/**
 * Consumes the given required attribute as a literal or field reference. The
 * types parameters are required to determine how the value is parsed and
 * validated.
 * 
 * @param name the attribute's full name (including prefix)
 * @param types the type(s) this attribute is expected to provide
 * @return the attribute's value as a Java expression
 * @throws UnableToCompleteException on parse failure, or if the attribute is
 *           empty or unspecified
 */
public String consumeRequiredAttribute(String name, JType... types)
  throws UnableToCompleteException {
 if (!hasAttribute(name)) {
  failRequired(name);
 }
 AttributeParser parser = attributeParsers.getParser(types);
 String value = parser.parse(this, consumeRequiredRawAttribute(name));
 designTime.putAttribute(this, name, value);
 return value;
}

代码示例来源:origin: laaglu/lib-gwt-svg

/**
 * Consumes the given required attribute as a literal or field reference. The
 * types parameters are required to determine how the value is parsed and
 * validated.
 * 
 * @param name the attribute's full name (including prefix)
 * @param types the type(s) this attribute is expected to provide
 * @return the attribute's value as a Java expression
 * @throws UnableToCompleteException on parse failure, or if the attribute is
 *           empty or unspecified
 */
public String consumeRequiredAttribute(String name, JType... types)
  throws UnableToCompleteException {
 if (!hasAttribute(name)) {
  failRequired(name);
 }
 AttributeParser parser = attributeParsers.getParser(types);
 String value = parser.parse(this, consumeRequiredRawAttribute(name));
 designTime.putAttribute(this, name, value);
 return value;
}

相关文章

XMLElement类方法