congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JBossXBRuntimeException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jboss.xb.binding.JBossXBRuntimeException
constructor

Best Java code snippets using org.jboss.xb.binding.JBossXBRuntimeException.<init> (Showing top 20 results out of 315)

origin: jboss/jbossxb

public ElementBinding(SchemaBinding schema, QName qName, TypeBinding typeBinding)
{
 super(schema);
 this.qName = qName;
 this.typeBinding = typeBinding;
 if(qName == null)
 {
   throw new JBossXBRuntimeException("Each element must have a non-null QName!");
 }
}
origin: jboss/jbossxb

public ParticleBinding getCurrentParticle()
{
 if(curParticle == null)
 {
   throw new JBossXBRuntimeException("The cursor in all group has not been positioned yet!");
 }
 return curParticle;
}
origin: jboss/jbossxb

public AttributeBinding(SchemaBinding schema, QName qName, TypeBinding type, AttributeHandler handler)
{
 this.schema = schema;
 this.qName = qName;
 this.type = type;
 this.handler = handler;
 if(qName == null)
 {
   throw new JBossXBRuntimeException("Each attribute should have a non-null QName!");
 }
}
origin: jboss/jbossxb

  public void addElement(QName qName, ElementBinding binding)
  {
   throw new JBossXBRuntimeException("Simple types can't have child elements.");
  }
}
origin: jboss/jbossxb

public void setProcessContents(short pc)
{
 this.pc = pc;
 if(pc != PC_LAX && pc != PC_SKIP && pc != PC_STRICT)
 {
   throw new JBossXBRuntimeException("Unexpected value for process contents: " + pc);
 }
}
origin: jboss/jbossxb

public void setValue(Object value)
{
 if(this.value != null)
 {
   throw new JBossXBRuntimeException(
    "The value is already set: current value=" + this.value + ", overriding value=" + value
   );
 }
 this.value = value;
}
origin: jboss/jbossxb

public ElementBinding getElement()
{
 if(pos < 0)
 {
   throw new JBossXBRuntimeException(
    "The cursor has not been positioned yet! startElement should be called."
   );
 }
 return element;
}
origin: jboss/jbossxb

public ElementBinding getElement()
{
 if(pos < 0)
 {
   throw new JBossXBRuntimeException(
    "The cursor has not been positioned yet! startElement should be called."
   );
 }
 return element;
}
origin: jboss/jbossxb

public void setKey(Object key)
{
 if(this.key != null)
 {
   throw new JBossXBRuntimeException(
    "The key is already set: current value=" + this.key + ", overriding value=" + key
   );
 }
 this.key = key;
}
origin: jboss/jbossxb

public void setProperty(String name, Object value)
{
 try
 {
   reader.setProperty(name, value);
 }
 catch(SAXException e)
 {
   throw new JBossXBRuntimeException("Failed to set property on the XML reader", e);
 }
}
origin: jboss/jbossxb

public void setFeature(String name, boolean value)
{
 try
 {
   reader.setFeature(name, value);
 }
 catch(SAXException e)
 {
   throw new JBossXBRuntimeException("Failed to set feature on the XMLReader", e);
 }
}
origin: jboss/jbossxb

public ParticleBinding getCurrentParticle()
{
 if(pos < 0)
 {
   throw new JBossXBRuntimeException(
    "The cursor has not been positioned yet! startElement should be called."
   );
 }
 return (ParticleBinding)choices.get(pos);
}
origin: jboss/jbossxb

public ParticleBinding getCurrentParticle()
{
 if(pos < 0)
 {
   throw new JBossXBRuntimeException(
    "The cursor has not been positioned yet! startElement should be called."
   );
 }
 return (ParticleBinding)sequence.get(pos);
}
origin: jboss/jbossxb

private void popModelGroup()
{
 Object o = typeGroupStack.remove(typeGroupStack.size() - 1);
 if(!(o instanceof ModelGroupBinding))
 {
   throw new JBossXBRuntimeException("Should have poped model group binding but got " + o);
 }
}
origin: jboss/jbossxb

private void popType()
{
 Object o = typeGroupStack.remove(typeGroupStack.size() - 1);
 if(!(o instanceof TypeBinding))
 {
   throw new JBossXBRuntimeException("Should have poped type binding but got " + o);
 }
}
origin: jboss/jbossxb

public boolean isTypeComplex()
{
  if(currentElementType == null)
  {
   throw new JBossXBRuntimeException("There is no current element!");
  }
  return currentElementType.getTypeCategory() == XSTypeDefinition.COMPLEX_TYPE;
}
origin: org.jboss.mx/jboss-mbeans

public Object instantiate()
{
 try
 {
   ModelMBeanAttributeInfo info = buildAttributeInfo();
   return info;
 }
 catch(NotCompliantMBeanException e)
 {
   throw new JBossXBRuntimeException(e);
 }
}
origin: jboss/jbossxb

public boolean isAttributeRequired()
{
  if(currentAttribute == null)
  {
   throw new JBossXBRuntimeException("There is no current attribute!");
  }
  return currentAttribute.getRequired();
}
origin: org.jboss.jbossas/jboss-as-mbeans

public Object instantiate()
{
 try
 {
   ModelMBeanAttributeInfo info = buildAttributeInfo();
   return info;
 }
 catch(NotCompliantMBeanException e)
 {
   throw new JBossXBRuntimeException(e);
 }
}
origin: jboss/jbossxb

public void endElement(QName qName)
{
 if(curParticle == null || !getElement().getQName().equals(qName))
 {
   throw new JBossXBRuntimeException("Failed to process endElement for " + qName +
    " since the current element is " + (curParticle == null ? null : getElement().getQName())
   );
 }
}
org.jboss.xb.bindingJBossXBRuntimeException<init>

Popular methods of JBossXBRuntimeException

  • getMessage

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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