@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Header other = (Header) obj; return eq(row, other.row); }
/** * Returns whether it has the position of the header. * * @return whether it has the position of the header */ public boolean hasRow() { return getRow() != null; }
/** * Immutable constructor. * * @param row position of the header. */ public Header(Integer row) { super(); setRow(row); setImmutable(true); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TableEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(TableEntry.class, Data.getDefaultDescription(true, false)); new Data().declareExtensions(extProfile); extProfile.declare(TableEntry.class, Header.getDefaultDescription(true, false)); extProfile.declare(TableEntry.class, Worksheet.getDefaultDescription(true, false)); }
/** * Sets the position of the header. * * @param row position of the header or <code>null</code> to reset */ public void setRow(Integer row) { throwExceptionIfImmutable(); this.row = row; }
@Override protected void validate() { if (row == null) { throwExceptionForMissingAttribute(ROW); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(TableEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(TableEntry.class, Data.getDefaultDescription(true, false)); new Data().declareExtensions(extProfile); extProfile.declare(TableEntry.class, Header.getDefaultDescription(true, false)); extProfile.declare(TableEntry.class, Worksheet.getDefaultDescription(true, false)); }
/** * Sets the position of the header. * * @param row position of the header or <code>null</code> to reset */ public void setRow(Integer row) { throwExceptionIfImmutable(); this.row = row; }
@Override protected void validate() { if (row == null) { throwExceptionForMissingAttribute(ROW); } }
/** * Immutable constructor. * * @param row position of the header. */ public Header(Integer row) { super(); setRow(row); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Header other = (Header) obj; return eq(row, other.row); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(ListPageEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, Data.getDefaultDescription(true, false)); new Data().declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, new ExtensionDescription(FeedLink.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "feedLink", true, false, false)); new FeedLink().declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, Header.getDefaultDescription(true, false)); extProfile.declare(ListPageEntry.class, Worksheet.getDefaultDescription(true, false)); }
/** * Returns whether it has the position of the header. * * @return whether it has the position of the header */ public boolean hasRow() { return getRow() != null; }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(ListPageEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, Data.getDefaultDescription(true, false)); new Data().declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, new ExtensionDescription(FeedLink.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "feedLink", true, false, false)); new FeedLink().declareExtensions(extProfile); extProfile.declare(ListPageEntry.class, Header.getDefaultDescription(true, false)); extProfile.declare(ListPageEntry.class, Worksheet.getDefaultDescription(true, false)); }