congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XLink.canWrite
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.sis.core/sis-utility

/**
 * Sets a human-readable string with a short description for the arc.
 *
 * @param  title  a human-readable string with a short description for the arc, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "title"} attribute.
 *
 * @category semantic
 */
public void setTitle(final InternationalString title) throws IllegalStateException {
  canWrite(0x10, "title", title);
  this.title = title;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the desired presentation of the ending resource on traversal from the starting resource.
 *
 * @param  show  the desired presentation of the ending resource, or {@code null} if unspecified.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "show"} attribute.
 *
 * @category behavior
 */
public void setShow(final Show show) throws IllegalStateException {
  canWrite(0x20, "show", show);
  this.show = show;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets an identification of the target of a {@code from} or {@code to} attribute.
 *
 * @param  label  an identification of the target of a {@code from} or {@code to} attribute, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "label"} attribute.
 *
 * @category traversal
 */
public void setLabel(final String label) throws IllegalStateException {
  canWrite(0x80, "label", label);
  this.label = label;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the starting resource. The value must correspond to the same value for some
 * {@code label} attribute.
 *
 * @param  from  the starting resource, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "from"} attribute.
 *
 * @category traversal
 */
public void setFrom(final String from) throws IllegalStateException {
  canWrite(0x100, "from", from);
  this.from = from;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the ending resource. The value must correspond to the same value for some
 * {@code label} attribute.
 *
 * @param  to  the ending resource, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "to"} attribute.
 *
 * @category traversal
 */
public void setTo(final String to) throws IllegalStateException {
  canWrite(0x200, "to", to);
  this.to = to;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the URN to a resources.
 *
 * @param  href  a URN to a resources, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "href"} attribute.
 *
 * @category locator
 */
public void setHRef(final URI href) throws IllegalStateException {
  canWrite(0x2, "href", href);
  this.href = href;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets a URI reference for some description of the arc role.
 *
 * @param  arcrole  a URI reference for some description of the arc role, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "arcrole"} attribute.
 *
 * @category semantic
 */
public void setArcRole(final URI arcrole) throws IllegalStateException {
  canWrite(0x8, "arcrole", arcrole);
  this.arcrole = arcrole;
}
origin: apache/sis

/**
 * Sets an identification of the target of a {@code from} or {@code to} attribute.
 *
 * @param  label  an identification of the target of a {@code from} or {@code to} attribute, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "label"} attribute.
 *
 * @category traversal
 */
public void setLabel(final String label) throws IllegalStateException {
  canWrite(0x80, "label", label);
  this.label = label;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the URI reference for some description of the arc role.
 *
 * @param  role  a URI reference for some description of the arc role, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "role"} attribute.
 *
 * @category semantic
 */
public void setRole(final URI role) throws IllegalStateException {
  canWrite(0x4, "role", role);
  this.role = role;
}
origin: apache/sis

/**
 * Sets the desired presentation of the ending resource on traversal from the starting resource.
 *
 * @param  show  the desired presentation of the ending resource, or {@code null} if unspecified.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "show"} attribute.
 *
 * @category behavior
 */
public void setShow(final Show show) throws IllegalStateException {
  canWrite(0x20, "show", show);
  this.show = show;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the desired timing of traversal from the starting resource to the ending resource.
 *
 * @param  actuate  the desired timing of traversal from the starting resource to the ending resource,
 *                  or {@code null} if unspecified.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitely set}.
 *         and that type does not allow the {@code "actuate"} attribute.
 *
 * @category behavior
 */
public void setActuate(final Actuate actuate) throws IllegalStateException {
  canWrite(0x40, "actuate", actuate);
  this.actuate = actuate;
}
origin: apache/sis

/**
 * Sets the URN to a resources.
 *
 * @param  href  a URN to a resources, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "href"} attribute.
 *
 * @category locator
 */
public void setHRef(final URI href) throws IllegalStateException {
  canWrite(0x2, "href", href);
  this.href = href;
}
origin: apache/sis

/**
 * Sets the URI reference for some description of the arc role.
 *
 * @param  role  a URI reference for some description of the arc role, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "role"} attribute.
 *
 * @category semantic
 */
public void setRole(final URI role) throws IllegalStateException {
  canWrite(0x4, "role", role);
  this.role = role;
}
origin: apache/sis

/**
 * Sets a URI reference for some description of the arc role.
 *
 * @param  arcrole  a URI reference for some description of the arc role, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "arcrole"} attribute.
 *
 * @category semantic
 */
public void setArcRole(final URI arcrole) throws IllegalStateException {
  canWrite(0x8, "arcrole", arcrole);
  this.arcrole = arcrole;
}
origin: apache/sis

/**
 * Sets a human-readable string with a short description for the arc.
 *
 * @param  title  a human-readable string with a short description for the arc, or {@code null} if none.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "title"} attribute.
 *
 * @category semantic
 */
public void setTitle(final InternationalString title) throws IllegalStateException {
  canWrite(0x10, "title", title);
  this.title = title;
}
origin: apache/sis

/**
 * Sets the desired timing of traversal from the starting resource to the ending resource.
 *
 * @param  actuate  the desired timing of traversal from the starting resource to the ending resource,
 *                  or {@code null} if unspecified.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "actuate"} attribute.
 *
 * @category behavior
 */
public void setActuate(final Actuate actuate) throws IllegalStateException {
  canWrite(0x40, "actuate", actuate);
  this.actuate = actuate;
}
origin: apache/sis

/**
 * Sets the starting resource. The value must correspond to the same value for some
 * {@code label} attribute.
 *
 * @param  from  the starting resource, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "from"} attribute.
 *
 * @category traversal
 */
public void setFrom(final String from) throws IllegalStateException {
  canWrite(0x100, "from", from);
  this.from = from;
}
origin: apache/sis

/**
 * Sets the ending resource. The value must correspond to the same value for some
 * {@code label} attribute.
 *
 * @param  to  the ending resource, or {@code null}.
 * @throws UnsupportedOperationException if this {@code xlink} is unmodifiable.
 * @throws IllegalStateException if the link type {@linkplain #setType has been explicitly set}.
 *         and that type does not allow the {@code "to"} attribute.
 *
 * @category traversal
 */
public void setTo(final String to) throws IllegalStateException {
  canWrite(0x200, "to", to);
  this.to = to;
}
origin: org.apache.sis.core/sis-utility

/**
 * Sets the type of link. Any value different than {@link org.apache.sis.xml.XLink.Type#AUTO
 * Type.AUTO} (including {@code null}) will overwrite the value inferred automatically by
 * {@link #getType()}. A {@code AUTO} value will enable automatic type detection.
 *
 * @param  type  the new type of link, or {@code null} if none.
 */
public void setType(final Type type) {
  canWrite(0x1, "type", "type"); // We want a non-null value in all cases.
  if (type != null && (fieldMask() & ~type.fieldMask) != 0) {
    throw new IllegalStateException(Errors.format(Errors.Keys.InconsistentAttribute_2, "type", type.identifier()));
  }
  this.type = type;
}
origin: apache/sis

/**
 * Sets the type of link. Any value different than {@link org.apache.sis.xml.XLink.Type#AUTO
 * Type.AUTO} (including {@code null}) will overwrite the value inferred automatically by
 * {@link #getType()}. A {@code AUTO} value will enable automatic type detection.
 *
 * @param  type  the new type of link, or {@code null} if none.
 */
public void setType(final Type type) {
  canWrite(0x1, "type", "type"); // We want a non-null value in all cases.
  if (type != null && (fieldMask() & ~type.fieldMask) != 0) {
    throw new IllegalStateException(Errors.format(Errors.Keys.InconsistentAttribute_2, "type", type.identifier()));
  }
  this.type = type;
}
org.apache.sis.xmlXLinkcanWrite

Javadoc

Checks if the given attribute can be set.

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.
  • setRole
    Sets the URI reference for some description of the arc role.
  • 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
  • setType,
  • append,
  • fieldMask,
  • getActuate,
  • getArcRole,
  • getFrom,
  • getLabel,
  • getRole,
  • getShow

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • From CI to AI: The AI layer in your organization
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