Codota Logo
XLink.setRole
Code IndexAdd Codota to your IDE (free)

How to use
setRole
method
in
org.apache.sis.xml.XLink

Best Java code snippets using org.apache.sis.xml.XLink.setRole (Showing top 4 results out of 315)

  • Common ways to obtain XLink
private void myMethod () {
XLink x =
  • Codota Iconnew XLink()
  • Smart code suggestions by Codota
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the {@code role} attribute value.
 *
 * @param  role  the new attribute value.
 * @throws URISyntaxException if the given string can not be parsed as a URI.
 * @category xlink
 */
public final void setRole(final String role) throws URISyntaxException {
  xlink(true).setRole(toURI(role));
}
origin: apache/sis

/**
 * Sets the {@code role} attribute value.
 *
 * @param  role  the new attribute value.
 * @throws URISyntaxException if the given string can not be parsed as a URI.
 * @category xlink
 */
public final void setRole(final String role) throws URISyntaxException {
  xlink(true).setRole(toURI(role));
}
origin: apache/sis

final XLink link = new XLink();
link.setType(XLink.Type.AUTO);
link.setRole(new URI("org:apache:sis:role"));
link.setTitle(new SimpleInternationalString("Some title"));
link.freeze();
assertFalse(link.hashCode() == other.hashCode());
other.setRole(new URI("org:apache:sis:role"));
assertFalse(link.equals(other));
assertFalse(link.hashCode() == other.hashCode());
origin: apache/sis

assertFalse("Hash code can not be zero.", hashCode == 0);
link.setRole(new URI("org:apache:sis:role"));
assertEquals(XLink.Type.EXTENDED, link.getType());
assertEquals("XLink[type=\"extended\", role=\"org:apache:sis:role\"]", link.toString());
org.apache.sis.xmlXLinksetRole

Javadoc

Sets the URI reference for some description of the arc role.

Popular methods of XLink

  • <init>
    Creates a new link as a copy of the given link.
  • setHRef
    Sets the URN to a resources.
  • equals
    Compares this XLink with the given object for equality.
  • getHRef
    Returns a URN to an external resources, or to an other part of a XML document, or an identifier.
  • getType
    Returns the type of link. May have one of the following values: * simple: a simple link * extended:
  • hashCode
    Returns a hash code value for this XLink.
  • setActuate
    Sets the desired timing of traversal from the starting resource to the ending resource.
  • setShow
    Sets the desired presentation of the ending resource on traversal from the starting resource.
  • setTitle
    Sets a human-readable string with a short description for the arc.
  • setType
    Sets the type of link. Any value different than org.apache.sis.xml.XLink.Type#AUTO (including null)
  • append
    Appends the given attribute in the given buffer if the attribute value is not null. If the given val
  • canWrite
    Checks if the given attribute can be set.
  • append,
  • canWrite,
  • fieldMask,
  • getActuate,
  • getArcRole,
  • getFrom,
  • getLabel,
  • getRole,
  • getShow

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
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