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

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

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

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: com.bugvm/bugvm-rt

/**
 * 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: com.mobidevelop.robovm/robovm-rt

/**
 * 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: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * 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 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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * 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: xalan/serializer

/**
 * 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: com.gluonhq/robovm-rt

/**
 * 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: org.apache.xalan/serializer

/**
 * 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);
   }
}    
origin: xalan/serializer

/**
 *  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: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 *  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: com.gluonhq/robovm-rt

/**
 *  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: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 *  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: org.apache.xalan/serializer

/**
 *  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: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 *  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: com.mobidevelop.robovm/robovm-rt

/**
 *  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.serializerSerializerBasepatchName

Javadoc

If at runtime, when the qname of the attribute is known, another prefix is specified for the attribute, then we can patch or hack the name with this method. For a qname of the form "ns?:otherprefix:name", this function patches the qname by simply ignoring "otherprefix". TODO: This method is a HACK! We do not have access to the XML file, it sometimes generates a NS prefix of the form "ns?" for an attribute.

Popular methods of SerializerBase

  • setTransformer
    Sets the transformer associated with this serializer
  • addAttributeAlways
    Adds the given attribute to the set of attributes, even if there is no currently open element. This
  • 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
  • fireCharEvent,
  • fireCommentEvent,
  • fireEndElem,
  • fireEndEntity,
  • fireEntityReference,
  • fireStartDoc,
  • fireStartElem,
  • flushMyWriter,
  • flushPending,
  • getElementURI

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
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