/** * Immutable constructor. * * @param value value. */ public NumberOfSourceWords(Integer value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } ScopeEntry other = (ScopeEntry) obj; return eq(value, other.value); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } TranslationComplete other = (TranslationComplete) obj; return eq(value, other.value); }
/** * Declare the extensions of the feeds for the Google Translator Toolkit API. */ private void declareExtensions() { new AclFeed().declareExtensions(extProfile); new DocumentFeed().declareExtensions(extProfile); new GlossaryFeed().declareExtensions(extProfile); new TranslationMemoryFeed().declareExtensions(extProfile); }
/** * Sets the glossaries element. * * @param glossary glossaries element or <code>null</code> to reset */ public void setGlossary(GlossariesElement glossary) { if (glossary == null) { removeExtension(GlossariesElement.class); } else { setExtension(glossary); } }
/** * Returns whether it has the marker for deleted entries. * * @return whether it has the marker for deleted entries */ public boolean hasDeleted() { return hasExtension(Deleted.class); }
/** * Sets the type. * * @param type type or <code>null</code> to reset */ public void setType(Type type) { throwExceptionIfImmutable(); this.type = type; }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(Value value) { throwExceptionIfImmutable(); this.value = value; }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(Boolean value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns the source language. * * @return source language */ public SourceLanguage getSourceLanguage() { return getExtension(SourceLanguage.class); }
/** * Returns the link that provides the URI of the feed for the access control * list for the entry. * * @return Link that provides the URI of the feed for the access control list * for the entry or {@code null} for none. */ public Link getAccessControlListLink() { return getLink(AclNamespace.LINK_REL_ACCESS_CONTROL_LIST, Link.Type.ATOM); }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns whether it has the value. * * @return whether it has the value */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the type. * * @return whether it has the type */ public boolean hasType() { return getType() != null; }
/** * Returns the link that provides the URI of the feed for the access control * list for the entry. * * @return Link that provides the URI of the feed for the access control list * for the entry or {@code null} for none. */ public Link getAccessControlListLink() { return getLink(AclNamespace.LINK_REL_ACCESS_CONTROL_LIST, Link.Type.ATOM); }
/** * Declare the extensions of the feeds for the Google Translator Toolkit API. */ private void declareExtensions() { new AclFeed().declareExtensions(extProfile); new DocumentFeed().declareExtensions(extProfile); new GlossaryFeed().declareExtensions(extProfile); new TranslationMemoryFeed().declareExtensions(extProfile); }
/** * Immutable constructor. * * @param value value. */ public NumberOfSourceWords(Integer value) { super(); setValue(value); setImmutable(true); }
/** * Returns whether it has the document source. * * @return whether it has the document source */ public boolean hasDocumentSource() { return hasExtension(DocumentSource.class); }
/** * Sets the url. * * @param url url or <code>null</code> to reset */ public void setUrl(String url) { throwExceptionIfImmutable(); this.url = url; }
/** * Returns whether it has the percent complete. * * @return whether it has the percent complete */ public boolean hasPercentComplete() { return hasExtension(PercentComplete.class); }