Tabnine Logo
XMLResources.isStringIdentifier
Code IndexAdd Tabnine to your IDE (free)

How to use
isStringIdentifier
method
in
org.arakhne.afc.inputoutput.xml.XMLResources

Best Java code snippets using org.arakhne.afc.inputoutput.xml.XMLResources.isStringIdentifier (Showing top 2 results out of 315)

origin: org.arakhne.afc.core/inputoutput

/** Replies the resource URL that is contained inside the XML attribute
 * defined in the given node and with the given XML path.
 *
 * @param node is the XML node to read.
 * @param resources is the collection of resources to read.
 * @param path is the XML path, relative to the node, of the attribute. The last
 *     element of the array is the name of the attribute.
 * @return the resource URL, or <code>null</code> if it cannot be retrieved.
 */
@Pure
public static URL readResourceURL(Element node, XMLResources resources, String... path) {
  final String stringValue = getAttributeValue(node, path);
  if (XMLResources.isStringIdentifier(stringValue)) {
    try {
      final long id = XMLResources.getNumericalIdentifier(stringValue);
      return resources.getResourceURL(id);
    } catch (Throwable exception) {
      //
    }
  }
  return null;
}
origin: org.arakhne.afc.gis/gisinputoutput

String sattr = XMLUtil.getAttributeValueWithDefault(xmlNode, null, MapElementLayer.ATTR_ELEMENT_ATTRIBUTES_URL);
if (sattr != null && sattr.length() > 0) {
  if (XMLResources.isStringIdentifier(sattr)) {
    final long id = XMLResources.getNumericalIdentifier(sattr);
    final Entry resource = resources.getResource(id);
sattr = XMLUtil.getAttributeValueWithDefault(xmlNode, null, MapElementLayer.ATTR_ELEMENT_GEOMETRY_URL);
if (sattr != null && sattr.length() > 0) {
  if (XMLResources.isStringIdentifier(sattr)) {
    final long id = XMLResources.getNumericalIdentifier(sattr);
    final Entry resource = resources.getResource(id);
org.arakhne.afc.inputoutput.xmlXMLResourcesisStringIdentifier

Javadoc

Replies if the given string is a string-representation of a resource identifier.

A string is an identifier if it starts with #IDENTIFIER_PREFIX.

Popular methods of XMLResources

  • add
    Add the given embedded data into this classifier and replies the string representation of the given
  • getNumericalIdentifier
    Replies the numerical identifier for the given string-identifier.
  • compareArrays
  • computeNextIdentifier
    Compute the next available identifier for a resource.
  • getIdentifierFromResource
    Replies the identifier that is corresponding to the given URL.
  • getPairs
    Replies the content of this classifier.
  • getResource
    Replies the resource.
  • getResourceFromIdentifier
    Replies the identifier that is corresponding to the given URL.
  • getResourceURL
    Replies the resource URL.
  • getStringIdentifier
    Replies a string-representation of the given identifier.The function add the prefix #IDENTIFIER_PREF

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • 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