Tabnine Logo
SerializerBase.addAttributeAlways
Code IndexAdd Tabnine to your IDE (free)

How to use
addAttributeAlways
method
in
org.apache.xml.serializer.SerializerBase

Best Java code snippets using org.apache.xml.serializer.SerializerBase.addAttributeAlways (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: robovm/robovm

/**
 * Add the given attributes to the currently collected ones. These
 * attributes are always added, regardless of whether on not an element
 * is currently open.
 * @param atts List of attributes to add to this list
 */
public void addAttributes(Attributes atts) throws SAXException
{
  int nAtts = atts.getLength();
  for (int i = 0; i < nAtts; i++)
  {
    String uri = atts.getURI(i);
    if (null == uri)
      uri = "";
    addAttributeAlways(
      uri,
      atts.getLocalName(i),
      atts.getQName(i),
      atts.getType(i),
      atts.getValue(i),
      false);
  }
}
origin: robovm/robovm

/**
 * Adds the given xsl:attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name (prefix:localName)
 * @param value the value of the attribute
 * @param uri the URI that the prefix of the name points to
 */
public void addXSLAttribute(String name, final String value, final String uri)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, true);
   }
} 
origin: robovm/robovm

/**
 *  Adds  the given attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name
 * @param value the value of the attribute
 */
public void addAttribute(String name, final String value)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    final String uri = getNamespaceURI(patchedName, false);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, false);
   }
}    
origin: robovm/robovm

addAttributeAlways(uri, localName, rawName, type, value, XSLAttribute);
origin: xalan/serializer

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}
 
origin: MobiVM/robovm

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}
 
origin: ibinti/bugvm

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: com.mobidevelop.robovm/robovm-rt

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: com.bugvm/bugvm-rt

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: com.gluonhq/robovm-rt

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}
 
origin: org.apache.xalan/serializer

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}
 
origin: FlexoVM/flexovm

/**
 * This method adds an attribute the the current element,
 * but should not be used for an xsl:attribute child.
 * @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 */
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException 
{
  if (m_elemContext.m_startTagOpen)
  {
    addAttributeAlways(uri, localName, rawName, type, value, false);
  }
}

origin: MobiVM/robovm

/**
 * Adds the given xsl:attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name (prefix:localName)
 * @param value the value of the attribute
 * @param uri the URI that the prefix of the name points to
 */
public void addXSLAttribute(String name, final String value, final String uri)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, true);
   }
} 
origin: ibinti/bugvm

/**
 * Adds the given xsl:attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name (prefix:localName)
 * @param value the value of the attribute
 * @param uri the URI that the prefix of the name points to
 */
public void addXSLAttribute(String name, final String value, final String uri)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, true);
   }
} 
origin: MobiVM/robovm

/**
 *  Adds  the given attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name
 * @param value the value of the attribute
 */
public void addAttribute(String name, final String value)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    final String uri = getNamespaceURI(patchedName, false);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, false);
   }
}    
origin: ibinti/bugvm

/**
 *  Adds  the given attribute to the set of collected attributes, 
 * but only if there is a currently open element.
 *
 * @param name the attribute's qualified name
 * @param value the value of the attribute
 */
public void addAttribute(String name, final String value)
{
  if (m_elemContext.m_startTagOpen)
  {
    final String patchedName = patchName(name);
    final String localName = getLocalName(patchedName);
    final String uri = getNamespaceURI(patchedName, false);
    addAttributeAlways(uri,localName, patchedName, "CDATA", value, false);
   }
}    
org.apache.xml.serializerSerializerBaseaddAttributeAlways

Javadoc

Adds the given attribute to the set of attributes, even if there is no currently open element. This is useful if a SAX startPrefixMapping() should need to add an attribute before the element name is seen.

Popular methods of SerializerBase

  • setTransformer
    Sets the transformer associated with this serializer
  • addAttributes
    Add the given attributes to the currently collected ones. These attributes are always added, regardl
  • addCDATAElement
  • characters
  • comment
  • endEntity
    Report the end of an entity.
  • error
  • fatalError
  • fireCDATAEvent
    Report the CDATA trace event
  • fireCharEvent
    Report the characters trace event
  • fireCommentEvent
    Report the comment trace event
  • fireEndElem
    To fire off the end element trace event
  • fireCommentEvent,
  • fireEndElem,
  • fireEndEntity,
  • fireEntityReference,
  • fireStartDoc,
  • fireStartElem,
  • flushMyWriter,
  • flushPending,
  • getElementURI

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 12 Jupyter Notebook extensions
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