Tabnine Logo
MissingAttributeException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.jelly.MissingAttributeException
constructor

Best Java code snippets using org.apache.commons.jelly.MissingAttributeException.<init> (Showing top 20 results out of 315)

origin: org.hudsonci.stapler/commons-jelly-tags-xml

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (xpCmp == null) {
    throw new MissingAttributeException( "xpCmp" );
  }
  if (list == null) {
    throw new MissingAttributeException( "list" );
  }
  Collections.sort(list, xpCmp);
}
origin: org.hudsonci.stapler/commons-jelly-tags-define

  public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
    if ( script == null ) {
      throw new MissingAttributeException("script");
    }
    script.run(context, output);
  }
}
origin: commons-jelly/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException {
  if (var != null) {
    context.removeVariable( var.evaluateAsString(context) );
  }
  else {
    throw new MissingAttributeException("var");
  }
}
origin: commons-jelly/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (test != null) {
    if (test.evaluateAsBoolean(context)) {
      invokeBody(output);
    }
  }
  else {
    throw new MissingAttributeException( "test" );
  }
}
origin: org.hudsonci.stapler/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException {
  if (var != null) {
    context.removeVariable( var.evaluateAsString(context) );
  }
  else {
    throw new MissingAttributeException("var");
  }
}
origin: commons-jelly/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  this.defaultEncountered = false;
  this.someCaseMatched = false;
  this.fallingThru = false;
      
  if(null == on) {
    throw new MissingAttributeException("on");
  } else {
    value = on.evaluate(context);
    invokeBody(output);
  }
}
origin: org.jvnet.hudson/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  this.defaultEncountered = false;
  this.someCaseMatched = false;
  this.fallingThru = false;
      
  if(null == on) {
    throw new MissingAttributeException("on");
  } else {
    value = on.evaluate(context);
    invokeBody(output);
  }
}
origin: org.jvnet.hudson/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException {
  if (var != null) {
    context.removeVariable( var.evaluateAsString(context) );
  }
  else {
    throw new MissingAttributeException("var");
  }
}
origin: org.hudsonci.stapler/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (test != null) {
    if (test.evaluateAsBoolean(context)) {
      invokeBody(output);
    }
  }
  else {
    throw new MissingAttributeException( "test" );
  }
}
origin: org.hudsonci.stapler/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  this.defaultEncountered = false;
  this.someCaseMatched = false;
  this.fallingThru = false;
      
  if(null == on) {
    throw new MissingAttributeException("on");
  } else {
    value = on.evaluate(context);
    invokeBody(output);
  }
}
origin: org.jenkins-ci/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  this.defaultEncountered = false;
  this.someCaseMatched = false;
  this.fallingThru = false;
      
  if(null == on) {
    throw new MissingAttributeException("on");
  } else {
    value = on.evaluate(context);
    invokeBody(output);
  }
}
origin: org.jenkins-ci/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException {
  if (var != null) {
    context.removeVariable( var.evaluateAsString(context) );
  }
  else {
    throw new MissingAttributeException("var");
  }
}
origin: org.jvnet.hudson/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (test != null) {
    if (test.evaluateAsBoolean(context)) {
      invokeBody(output);
    }
  }
  else {
    throw new MissingAttributeException( "test" );
  }
}
origin: org.jenkins-ci/commons-jelly

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (test != null) {
    if (test.evaluateAsBoolean(context)) {
      invokeBody(output);
    }
  }
  else {
    throw new MissingAttributeException( "test" );
  }
}
origin: net.sf.jguiraffe/jguiraffe

  /**
   * Checks if all mandatory attributes are defined.
   *
   * @throws MissingAttributeException if attributes are missing
   */
  protected void checkAttributes() throws MissingAttributeException
  {
    if (!getTextIconData().isDefined())
    {
      throw new MissingAttributeException("text or icon");
    } /* if */
  }
}
origin: net.sf.jguiraffe/jguiraffe

/**
 * {@inheritDoc} This implementation contains the actual logic of this tag.
 */
public void doTag(XMLOutput output) throws JellyTagException
{
  if (getResource() == null)
  {
    throw new MissingAttributeException("resource");
  }
  if (getVar() == null)
  {
    throw new MissingAttributeException("var");
  }
  storeResult(resolveResource());
}
origin: net.sf.jguiraffe/jguiraffe

/**
 * Validates the attributes of this tag. This method is invoked before the
 * push button is created. This implementation tests if either a text or an
 * icon is provided. If both are undefined, an exception will be thrown.
 *
 * @throws FormBuilderException if an error occurs
 * @throws JellyTagException if the tag is incorrectly used
 */
protected void validateTag() throws FormBuilderException, JellyTagException
{
  if (!getTextIconData().isDefined())
  {
    throw new MissingAttributeException("text or icon");
  }
}
origin: org.hudsonci.stapler/commons-jelly-tags-xml

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (name == null) {
    throw new MissingAttributeException( "name" );
  }
  try {
    output.startDTD(name, publicId, systemId);
    invokeBody(output);
    output.endDTD();
  } catch (SAXException e) {
    throw new JellyTagException(e);
  }
}
origin: org.hudsonci.stapler/commons-jelly-tags-xml

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (getVar() == null) {
    throw new MissingAttributeException("The var attribute cannot be null");
  }
  Document document = getXmlDocument(output);
  context.setVariable(getVar(), document);
}
origin: org.hudsonci.stapler/commons-jelly-tags-xml

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  if (select == null) {
    throw new MissingAttributeException( "select" );
  }
  Object xpathContext = getXPathContext();
  try {
    if ( select.booleanValueOf(xpathContext) ) {
      invokeBody(output);
    }
  } catch (XPathException e) {
    throw new JellyTagException(e);
  }
}
org.apache.commons.jellyMissingAttributeException<init>

Popular methods of MissingAttributeException

    Popular in Java

    • Updating database using SQL prepared statement
    • setRequestProperty (URLConnection)
    • onCreateOptionsMenu (Activity)
    • setContentView (Activity)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • Socket (java.net)
      Provides a client-side TCP socket.
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • Table (org.hibernate.mapping)
      A relational table
    • Top PhpStorm plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now