/** * Adds a new tm entry link. * * @param link tm entry link */ public void addLink(Link link) { getLinks().add(link); }
/** * Returns the tm entry links. * * @return tm entry links */ public List<Link> getLinks() { return getRepeatingExtension(Link.class); }
/** * Returns whether it has the tm entry links. * * @return whether it has the tm entry links */ public boolean hasLinks() { return hasRepeatingExtension(Link.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(DocumentEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(DocumentEntry.class, new ExtensionDescription(Deleted.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "deleted", false, false, false)); extProfile.declare(DocumentEntry.class, DocumentSource.class); extProfile.declare(DocumentEntry.class, GlossariesElement.class); new GlossariesElement().declareExtensions(extProfile); extProfile.declare(DocumentEntry.class, LastModifiedBy.class); extProfile.declare(DocumentEntry.class, NumberOfSourceWords.class); extProfile.declare(DocumentEntry.class, PercentComplete.class); extProfile.declare(DocumentEntry.class, SourceLanguage.class); extProfile.declare(DocumentEntry.class, TargetLanguage.class); extProfile.declare(DocumentEntry.class, TmsElement.class); new TmsElement().declareExtensions(extProfile); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(DocumentEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(DocumentEntry.class, new ExtensionDescription(Deleted.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "deleted", false, false, false)); extProfile.declare(DocumentEntry.class, DocumentSource.class); extProfile.declare(DocumentEntry.class, GlossariesElement.class); new GlossariesElement().declareExtensions(extProfile); extProfile.declare(DocumentEntry.class, LastModifiedBy.class); extProfile.declare(DocumentEntry.class, NumberOfSourceWords.class); extProfile.declare(DocumentEntry.class, PercentComplete.class); extProfile.declare(DocumentEntry.class, SourceLanguage.class); extProfile.declare(DocumentEntry.class, TargetLanguage.class); extProfile.declare(DocumentEntry.class, TmsElement.class); new TmsElement().declareExtensions(extProfile); }
/** * Adds a new tm entry link. * * @param link tm entry link */ public void addLink(Link link) { getLinks().add(link); }
/** * Returns the tm entry links. * * @return tm entry links */ public List<Link> getLinks() { return getRepeatingExtension(Link.class); }
/** * Returns whether it has the tm entry links. * * @return whether it has the tm entry links */ public boolean hasLinks() { return hasRepeatingExtension(Link.class); }