Tabnine Logo
MissingAttributeException
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: maven/maven

/**
 * Check a given 'attribute' has a value and throw the corresponding
 * exception if it doesn't
 *
 * @param attribute the attribute to check
 * @param message the message to pass in with the exception
 * @throws MissingAttributeException when the attribute is null
 */
protected void checkAttribute( Object attribute, String message )
  throws MissingAttributeException
{
  if ( attribute == null )
  {
    throw new MissingAttributeException( message );
  }
}
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: stackoverflow.com

 throw new MissingAttributeException("a_mandatory_attr");
throw new InvalidAttributeValueException("some_attr", badValue);
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: net.sf.jguiraffe/jguiraffe

/**
 * Checks whether the {@code name} attribute is set. If this is not the
 * case, an exception is thrown. This method is called by {@link #process()}
 * . If derived classes need to check the existence of a {@code name}
 * attribute at an earlier point of time, they can use this method.
 *
 * @throws MissingAttributeException if no {@code name} attribute is
 *         specified
 */
protected void checkName() throws MissingAttributeException
{
  if (getName() == null)
  {
    throw new MissingAttributeException("name");
  }
}
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: org.hudsonci.stapler/commons-jelly-tags-define

public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
  invokeBody(output);
  if (name == null) {
    throw new MissingAttributeException("name");
  }
  if (dynaClass == null) {
    throw new MissingAttributeException("dynaClass");
  }
  final DynaClass theDynaClass = dynaClass;
  final Map beanAttributes = (attributes != null) ? attributes : EMPTY_MAP;
  TagFactory factory = new TagFactory() {
    public Tag createTag(String name, Attributes attributes) {
      return  new DynamicDynaBeanTag(theDynaClass, beanAttributes, varAttribute);
    }
  };
  getTagLibrary().registerBeanTag(name, factory);
  // now lets clear the attributes for next invocation and help the GC
  attributes = null;
}
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

  /**
   * Creates the constraints object. This implementation returns the string
   * that was passed in through the <code>name</code> attribute.
   *
   * @param manager the component manager
   * @return the constraints object
   * @throws FormBuilderException if an error occurs
   * @throws MissingAttributeException if a required attribute is missing
   */
  protected Object createConstraints(ComponentManager manager)
      throws FormBuilderException, MissingAttributeException
  {
    if (StringUtils.isEmpty(getName()))
    {
      throw new MissingAttributeException("name");
    } /* if */
    return getName();
  }
}
org.apache.commons.jellyMissingAttributeException

Javadoc

JellyException is the root of all Jelly exceptions.

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best plugins for Eclipse
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