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

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

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

origin: robovm/robovm

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * This method is used to notify the serializer of a namespace mapping (or node)
 * that applies to the current element whose startElement() call has already been seen.
 * The official SAX startPrefixMapping(prefix,uri) is to define a mapping for a child
 * element that is soon to be seen with a startElement() call. The official SAX call 
 * does not apply to the current element, hence the reason for this method.
 */
public void namespaceAfterStartElement(
  final String prefix,
  final String uri)
  throws SAXException
{
  // hack for XSLTC with finding URI for default namespace
  if (m_elemContext.m_elementURI == null)
  {
    String prefix1 = getPrefixPart(m_elemContext.m_elementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_elemContext.m_elementURI = uri;
    }
  }            
  startPrefixMapping(prefix,uri,false);
  return;
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

String prefix1 = getPrefixPart(m_elemContext.m_elementName);
if (prefix1 == null && EMPTYSTRING.equals(prefix))
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * This method is used when a prefix/uri namespace mapping
 * is indicated after the element was started with a
 * startElement() and before and endElement().
 * startPrefixMapping(prefix,uri) would be used before the
 * startElement() call.
 * @param uri the URI of the namespace
 * @param prefix the prefix associated with the given URI.
 *
 * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 */
public void namespaceAfterStartElement(String prefix, String uri)
  throws SAXException
{
  // hack for XSLTC with finding URI for default namespace
  if (m_elemContext.m_elementURI == null)
  {
    String prefix1 = getPrefixPart(m_elemContext.m_elementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_elemContext.m_elementURI = uri;
    }
  }            
  startPrefixMapping(prefix,uri,false);
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * This method is used when a prefix/uri namespace mapping
 * is indicated after the element was started with a
 * startElement() and before and endElement().
 * startPrefixMapping(prefix,uri) would be used before the
 * startElement() call.
 * @param uri the URI of the namespace
 * @param prefix the prefix associated with the given URI.
 *
 * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 */    
public void namespaceAfterStartElement(String prefix, String uri)
  throws SAXException 
{  
  // hack for XSLTC with finding URI for default namespace
  if (m_firstTagNotEmitted && m_firstElementURI == null && m_firstElementName != null)
  {
    String prefix1 = getPrefixPart(m_firstElementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_firstElementURI = uri;
    }
  }         
  startPrefixMapping(prefix,uri, false);          
}
 
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * This method is used when a prefix/uri namespace mapping
 * is indicated after the element was started with a
 * startElement() and before and endElement().
 * startPrefixMapping(prefix,uri) would be used before the
 * startElement() call.
 * @param uri the URI of the namespace
 * @param prefix the prefix associated with the given URI.
 *
 * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 */
public void namespaceAfterStartElement(String prefix, String uri)
  throws SAXException
{
  // hack for XSLTC with finding URI for default namespace
  if (m_elemContext.m_elementURI == null)
  {
    String prefix1 = getPrefixPart(m_elemContext.m_elementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_elemContext.m_elementURI = uri;
    }
  }            
  startPrefixMapping(prefix,uri,false);
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * This method is used to notify the serializer of a namespace mapping (or node)
 * that applies to the current element whose startElement() call has already been seen.
 * The official SAX startPrefixMapping(prefix,uri) is to define a mapping for a child
 * element that is soon to be seen with a startElement() call. The official SAX call 
 * does not apply to the current element, hence the reason for this method.
 */
public void namespaceAfterStartElement(
  final String prefix,
  final String uri)
  throws SAXException
{
  // hack for XSLTC with finding URI for default namespace
  if (m_elemContext.m_elementURI == null)
  {
    String prefix1 = getPrefixPart(m_elemContext.m_elementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_elemContext.m_elementURI = uri;
    }
  }            
  startPrefixMapping(prefix,uri,false);
  return;
}
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

/**
 * This method is used when a prefix/uri namespace mapping
 * is indicated after the element was started with a
 * startElement() and before and endElement().
 * startPrefixMapping(prefix,uri) would be used before the
 * startElement() call.
 * @param uri the URI of the namespace
 * @param prefix the prefix associated with the given URI.
 *
 * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 */    
public void namespaceAfterStartElement(String prefix, String uri)
  throws SAXException 
{  
  // hack for XSLTC with finding URI for default namespace
  if (m_firstTagNotEmitted && m_firstElementURI == null && m_firstElementName != null)
  {
    String prefix1 = getPrefixPart(m_firstElementName);
    if (prefix1 == null && EMPTYSTRING.equals(prefix))
    {
      // the elements URI is not known yet, and it
      // doesn't have a prefix, and we are currently
      // setting the uri for prefix "", so we have
      // the uri for the element... lets remember it
      m_firstElementURI = uri;
    }
  }         
  startPrefixMapping(prefix,uri, false);          
}
 
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

String prefix1 = getPrefixPart(m_elemContext.m_elementName);
if (prefix1 == null && EMPTYSTRING.equals(prefix))
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: MobiVM/robovm

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: com.bugvm/bugvm-rt

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: com.gluonhq/robovm-rt

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: ibinti/bugvm

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: com.mobidevelop.robovm/robovm-rt

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: xalan/serializer

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: org.apache.xalan/com.springsource.org.apache.xml.serializer

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: org.apache.xalan/serializer

String prefix = getPrefixPart(m_elemContext.m_elementName);
origin: FlexoVM/flexovm

String prefix = getPrefixPart(m_elemContext.m_elementName);
org.apache.xml.serializerSerializerBasegetPrefixPart

Javadoc

Returns the local name of a qualified name. If the name has no prefix, then it works as the identity (SAX2).

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

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Permission (java.security)
    Legacy security code; do not use.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JPanel (javax.swing)
  • 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