Codota Logo
SerializerBase.patchName
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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: 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: 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/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

  • Finding current android device location
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now