Tabnine Logo
XLink.setRole
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • findViewById (Activity)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now