mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 09:46:03 +02:00
Remove trailing whitespace in files
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135386752
This commit is contained in:
parent
d02d30a4cd
commit
e864fedab1
60 changed files with 105 additions and 106 deletions
|
@ -103,7 +103,7 @@ public class Cursor extends ImmutableObject {
|
|||
|
||||
/**
|
||||
* Checks that the type of the scoped object (or null) matches the required type for the specified
|
||||
* cursor (or null, if the cursor is a global cursor).
|
||||
* cursor (or null, if the cursor is a global cursor).
|
||||
*/
|
||||
private static void checkValidCursorTypeForScope(
|
||||
CursorType cursorType, Key<? extends ImmutableObject> scope) {
|
||||
|
@ -160,12 +160,12 @@ public class Cursor extends ImmutableObject {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||
*/
|
||||
public static DateTime getCursorTimeOrStartOfTime(Cursor cursor) {
|
||||
return cursor != null ? cursor.getCursorTime() : START_OF_TIME;
|
||||
}
|
||||
|
||||
|
||||
public DateTime getCursorTime() {
|
||||
return cursorTime;
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ public class TimeOfYear extends ImmutableObject {
|
|||
/**
|
||||
* Returns an {@link Iterable} of {@link DateTime}s of every recurrence of this particular
|
||||
* time of year within a given {@link Range} (usually one spanning many years).
|
||||
*
|
||||
*
|
||||
* <p>WARNING: This can return a potentially very large {@link Iterable} if {@code END_OF_TIME}
|
||||
* is used as the upper endpoint of the range.
|
||||
*/
|
||||
|
|
|
@ -171,7 +171,7 @@ public class TimedTransitionProperty<V, T extends TimedTransitionProperty.TimedT
|
|||
|
||||
/**
|
||||
* Validates a new set of transitions and returns the resulting TimedTransitionProperty map.
|
||||
*
|
||||
*
|
||||
* @param newTransitions map from date time to transition value
|
||||
* @param transitionClass the class of transitions in this map
|
||||
* @param allowedTransitions optional map of all possible state-to-state transitions
|
||||
|
|
|
@ -24,11 +24,11 @@ import google.registry.model.ImmutableObject;
|
|||
public class DomainObjectSpec extends ImmutableObject {
|
||||
|
||||
final String name;
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public DomainObjectSpec(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ public class GracePeriod extends ImmutableObject {
|
|||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Creates a GracePeriod for an (optional) OneTime billing event.
|
||||
*
|
||||
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not
|
||||
|
|
|
@ -25,7 +25,6 @@ import com.googlecode.objectify.annotation.Index;
|
|||
import google.registry.model.BackupGroupRoot;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
@ -89,7 +88,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
|||
public Map<String, String> getMetadata() {
|
||||
return nullToEmptyImmutableCopy(metadata);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder asBuilder() {
|
||||
return new Builder(clone(this));
|
||||
|
@ -112,7 +111,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
|||
getInstance().token = checkArgumentNotNull(token);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public Builder setRedemptionHistoryEntry(Key<HistoryEntry> redemptionHistoryEntry) {
|
||||
getInstance().redemptionHistoryEntry = checkArgumentNotNull(redemptionHistoryEntry);
|
||||
return this;
|
||||
|
|
|
@ -41,7 +41,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
@XmlEnumValue("delayed")
|
||||
DELAYED
|
||||
}
|
||||
|
||||
|
||||
/** Enum for the type of the fee. */
|
||||
public enum FeeType {
|
||||
CREATE("create"),
|
||||
|
@ -80,7 +80,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
|
||||
@XmlTransient
|
||||
FeeType type;
|
||||
|
||||
|
||||
@XmlTransient
|
||||
Range<DateTime> validDateRange;
|
||||
|
||||
|
@ -104,21 +104,21 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
* According to the fee extension specification, a fee must always be non-negative, while a credit
|
||||
* must always be negative. Essentially, they are the same thing, just with different sign.
|
||||
* However, we need them to be separate classes for proper JAXB handling.
|
||||
*
|
||||
*
|
||||
* @see "https://tools.ietf.org/html/draft-brown-epp-fees-03#section-2.4"
|
||||
*/
|
||||
public BigDecimal getCost() {
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
||||
public FeeType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
public boolean hasValidDateRange() {
|
||||
return validDateRange != null;
|
||||
}
|
||||
|
||||
|
||||
public Range<DateTime> getValidDateRange() {
|
||||
checkState(hasValidDateRange());
|
||||
return validDateRange;
|
||||
|
@ -128,7 +128,7 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
checkState(type != null);
|
||||
description = type.renderDescription(args);
|
||||
}
|
||||
|
||||
|
||||
public boolean hasZeroCost() {
|
||||
return cost.signum() == 0;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public interface FeeCheckCommandExtensionItem extends FeeQueryCommandExtensionIt
|
|||
|
||||
/** The domain name being checked; throws an exception if domain names are not supported. */
|
||||
public String getDomainName() throws UnsupportedOperationException;
|
||||
|
||||
|
||||
/** Create a builder for a matching fee check response item. */
|
||||
public FeeCheckResponseExtensionItem.Builder createResponseBuilder();
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ public interface FeeCheckResponseExtension<F extends FeeCheckResponseExtensionIt
|
|||
* extension, this function has not effect.
|
||||
*/
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency);
|
||||
|
||||
|
||||
public ImmutableList<F> getItems();
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public class FeeExtensionCommandDescriptor extends ImmutableObject {
|
|||
}
|
||||
return CommandName.UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
public static FeeExtensionCommandDescriptor
|
||||
create(CommandName commandName, String phase, String subphase) {
|
||||
FeeExtensionCommandDescriptor commandDescriptor = new FeeExtensionCommandDescriptor();
|
||||
|
|
|
@ -42,13 +42,13 @@ public abstract class FeeQueryCommandExtensionItemImpl
|
|||
public CommandName getCommandName() {
|
||||
return command.getCommand();
|
||||
}
|
||||
|
||||
|
||||
/** The command name before being parsed into an enum, for use in error strings. */
|
||||
@Override
|
||||
public String getUnparsedCommandName() {
|
||||
return command.getUnparsedCommandName();
|
||||
}
|
||||
|
||||
|
||||
/** The phase of the command being checked. */
|
||||
@Override
|
||||
public String getPhase() {
|
||||
|
|
|
@ -58,11 +58,11 @@ public interface FeeQueryResponseExtensionItem {
|
|||
public Builder setNotAfterDateIfSupported(DateTime notAfterDate);
|
||||
|
||||
public Builder setCommand(CommandName commandName, String phase, String subphase);
|
||||
|
||||
|
||||
public Builder setPeriod(Period period);
|
||||
|
||||
public Builder setFees(List<Fee> fees);
|
||||
|
||||
|
||||
public Builder setClass(String feeClass);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class FeeQueryResponseExtensionItemImpl
|
|||
public abstract static class
|
||||
Builder<T extends FeeQueryResponseExtensionItemImpl, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeQueryResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCommand(CommandName commandName, String phase, String subphase) {
|
||||
getInstance().command = FeeExtensionCommandDescriptor.create(commandName, phase, subphase);
|
||||
|
|
|
@ -38,7 +38,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
|||
*/
|
||||
@XmlElement(name = "fee")
|
||||
List<Fee> fees;
|
||||
|
||||
|
||||
@XmlElement(name = "credit")
|
||||
List<Credit> credits;
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
|||
public abstract static class
|
||||
Builder<T extends FeeTransformResponseExtensionImpl, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCurrency(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
|
|
|
@ -40,12 +40,12 @@ public class FeeTransformResponseExtensionImplNoCredits extends ImmutableObject
|
|||
*/
|
||||
@XmlElement(name = "fee")
|
||||
List<Fee> fees;
|
||||
|
||||
|
||||
/** Abstract builder for {@link FeeTransformResponseExtensionImplNoCredits}. */
|
||||
public abstract static class
|
||||
Builder<T extends FeeTransformResponseExtensionImplNoCredits, B extends Builder<?, ?>>
|
||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public B setCurrency(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
|
|
|
@ -26,31 +26,31 @@ public class FeeCheckResponseExtensionItemV06
|
|||
extends FeeQueryResponseExtensionItemImpl implements FeeCheckResponseExtensionItem {
|
||||
/** The name of the domain that was checked, with an attribute indicating if it is premium. */
|
||||
String name;
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
/** Builder for {@link FeeCheckResponseExtensionItemV06}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV06, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setDomainNameIfSupported(String name) {
|
||||
getInstance().name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV06
|
|||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV06> items;
|
||||
|
||||
|
||||
@Override
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeCreateCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV06.Builder();
|
||||
|
|
|
@ -35,7 +35,7 @@ public class FeeInfoCommandExtensionV06
|
|||
public CurrencyUnit getCurrency() {
|
||||
return currency;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Optional<DateTime> getEffectiveDate() {
|
||||
return Optional.absent();
|
||||
|
|
|
@ -30,18 +30,18 @@ import org.joda.time.DateTime;
|
|||
@XmlType(propOrder = {"currency", "command", "period", "fee", "feeClass"})
|
||||
public class FeeInfoResponseExtensionV06
|
||||
extends FeeQueryResponseExtensionItemImpl implements ResponseExtension {
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
|
||||
/** Builder for {@link FeeInfoResponseExtensionV06}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeInfoResponseExtensionV06, Builder> {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeRenewCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV06.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeTransferCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV06.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees"})
|
||||
public class FeeUpdateCommandExtensionV06
|
||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV06.Builder();
|
||||
|
|
|
@ -66,7 +66,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
|||
// This version of the fee extension does not have any items, and although the currency is
|
||||
// specified at the top level we've modeled it as a single fake item with the currency inside,
|
||||
// so there's no top level currency to return here.
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -138,7 +138,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
|||
public Builder createResponseBuilder() {
|
||||
return new FeeCheckResponseExtensionItemV11.Builder();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Optional<DateTime> getEffectiveDate() {
|
||||
return Optional.absent();
|
||||
|
|
|
@ -33,35 +33,35 @@ public class FeeCheckResponseExtensionItemV11
|
|||
|
||||
/** The domain that was checked. */
|
||||
DomainObjectSpec object;
|
||||
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
/** The reason that the check item cannot be calculated. */
|
||||
String reason;
|
||||
|
||||
|
||||
/** Builder for {@link FeeCheckResponseExtensionItemV11}. */
|
||||
public static class Builder
|
||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV11, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setDomainNameIfSupported(String name) {
|
||||
getInstance().object = new DomainObjectSpec(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
getInstance().currency = currency;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
getInstance().avail = avail;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
getInstance().reason = reason;
|
||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV11
|
|||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV11> items;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void setCurrencyIfSupported(CurrencyUnit currency) {}
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeCreateCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeRenewCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeTransferCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV11.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeUpdateCommandExtensionV11
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV11.Builder();
|
||||
|
|
|
@ -62,7 +62,7 @@ public class FeeCheckResponseExtensionItemCommandV12 extends ImmutableObject {
|
|||
*/
|
||||
@XmlElement(name = "class")
|
||||
String feeClass;
|
||||
|
||||
|
||||
/** The effective date that the check is to be performed on (if specified in the query). */
|
||||
@XmlElement(name = "date")
|
||||
DateTime effectiveDate;
|
||||
|
|
|
@ -51,9 +51,9 @@ public class FeeCheckResponseExtensionItemV12
|
|||
public static class Builder
|
||||
extends GenericBuilder<FeeCheckResponseExtensionItemV12, Builder>
|
||||
implements FeeCheckResponseExtensionItem.Builder {
|
||||
|
||||
|
||||
final FeeCheckResponseExtensionItemCommandV12.Builder commandBuilder;
|
||||
|
||||
|
||||
Builder() {
|
||||
super();
|
||||
commandBuilder = new FeeCheckResponseExtensionItemCommandV12.Builder();
|
||||
|
@ -96,12 +96,12 @@ public class FeeCheckResponseExtensionItemV12
|
|||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setAvailIfSupported(boolean avail) {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Builder setReasonIfSupported(String reason) {
|
||||
return this;
|
||||
|
|
|
@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
/**
|
||||
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
||||
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
||||
* response to EPP domain check commands.
|
||||
*/
|
||||
@XmlRootElement(name = "chkData")
|
||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV12
|
|||
extends ImmutableObject implements FeeCheckResponseExtension<FeeCheckResponseExtensionItemV12> {
|
||||
|
||||
CurrencyUnit currency;
|
||||
|
||||
|
||||
/** Check responses. */
|
||||
@XmlElement(name = "cd")
|
||||
ImmutableList<FeeCheckResponseExtensionItemV12> items;
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeCreateCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeCreateResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeRenewCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeRenewResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeTransferCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeTransferResponseExtensionV12.Builder();
|
||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
|||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||
public class FeeUpdateCommandExtensionV12
|
||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||
return new FeeUpdateResponseExtensionV12.Builder();
|
||||
|
|
|
@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||
public class FlagsCreateCommandExtension implements CommandExtension {
|
||||
@XmlElement(name = "flag")
|
||||
List<String> flags;
|
||||
|
||||
|
||||
public List<String> getFlags() {
|
||||
return flags;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ import javax.xml.bind.annotation.XmlValue;
|
|||
*/
|
||||
@Embed
|
||||
public class LaunchPhase extends ImmutableObject {
|
||||
|
||||
|
||||
/**
|
||||
* The phase during which trademark holders can submit registrations or applications with
|
||||
* trademark information that can be validated by the server.
|
||||
|
@ -65,8 +65,8 @@ public class LaunchPhase extends ImmutableObject {
|
|||
public static final LaunchPhase CUSTOM = create("custom", null);
|
||||
|
||||
private static final Map<String, LaunchPhase> LAUNCH_PHASES = initEnumMapping();
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Returns a map of the static final fields to their values, case-converted.
|
||||
*/
|
||||
private static final ImmutableMap<String, LaunchPhase> initEnumMapping() {
|
||||
|
@ -84,7 +84,7 @@ public class LaunchPhase extends ImmutableObject {
|
|||
instance.subphase = subphase;
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
@XmlValue
|
||||
String phase;
|
||||
|
||||
|
@ -94,15 +94,15 @@ public class LaunchPhase extends ImmutableObject {
|
|||
*/
|
||||
@XmlAttribute(name = "name")
|
||||
String subphase;
|
||||
|
||||
|
||||
public String getPhase() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
|
||||
public String getSubphase() {
|
||||
return subphase;
|
||||
}
|
||||
|
||||
|
||||
public static LaunchPhase fromValue(String value) {
|
||||
return LAUNCH_PHASES.get(value);
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ public class EppInput extends ImmutableObject {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@SafeVarargs
|
||||
@Nullable
|
||||
public final <E extends CommandExtension>
|
||||
|
|
|
@ -181,7 +181,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
public ImmutableList<? extends ResponseExtension> getExtensions() {
|
||||
return extensions;
|
||||
}
|
||||
|
||||
|
||||
@Nullable
|
||||
public ResponseExtension getFirstExtensionOfType(Class<? extends ResponseExtension> clazz) {
|
||||
return FluentIterable.from(extensions).filter(clazz).first().orNull();
|
||||
|
@ -205,7 +205,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
getFirstExtensionOfType(Class<? extends ResponseExtension>... classes) {
|
||||
return getFirstExtensionOfType(ImmutableList.copyOf(classes));
|
||||
}
|
||||
|
||||
|
||||
public Result getResult() {
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue