Examples of InvalidDDMSException


Examples of buri.ddmsence.ddms.InvalidDDMSException

   */
  protected void validate() throws InvalidDDMSException {
    Util.requireDDMSQName(getXOMElement(), Link.getName(getDDMSVersion()));
    Util.requireDDMSValue("type attribute", getXLinkAttributes().getType());
    if (!getXLinkAttributes().getType().equals(FIXED_TYPE))
      throw new InvalidDDMSException("The type attribute must have a fixed value of \"" + FIXED_TYPE + "\".");
    Util.requireDDMSValue("href attribute", getXLinkAttributes().getHref());
    if (!getDDMSVersion().isAtLeast("4.0.1") && !getSecurityAttributes().isEmpty()) {
      throw new InvalidDDMSException(
        "Security attributes must not be applied to this component until DDMS 4.0.1 or later.");
    }
    super.validate();
  }
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.