@CliOptionVisibilityIndicator(command = "field embedded", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldEmbedded(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field enum", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldEnum(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field number", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldNumber(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field number", params = {"class"}) public boolean isClassMandatoryForFieldNumber() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field boolean", params = {"class"}) public boolean isClassMandatoryForFieldBoolean() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field date", params = {"class"}) public boolean isClassMandatoryForFieldDate() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field embedded", params = {"class"}) public boolean isClassMandatoryForFieldEmbedded() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field enum", params = {"class"}) public boolean isClassMandatoryForFieldEnum() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field set", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldSet(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field string", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldString(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field date", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldDate(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field list", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldList(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field list", params = {"class"}) public boolean isClassMandatoryForFieldList() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field set", params = {"class"}) public boolean isClassMandatoryForFieldSet() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionVisibilityIndicator(command = "field other", params = {"class"}, help = "Option 'class' is not available " + "for this command when the focus is set to one class.") public boolean isClassVisibleForFieldOther(ShellContext shellContext) { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliOptionMandatoryIndicator(command = "field other", params = {"class"}) public boolean isClassMandatoryForFieldOther() { if (lastUsed.getJavaType() == null) { return true; } return false; }
@CliAvailabilityIndicator({"test unit"}) public boolean isTestUnitCommandAvailable() { JavaType type = lastUsed.getJavaType(); if (type != null) { for (TestCreatorProvider provider : getValidTestCreatorsForType(type)) { if (provider.isUnitTestCreationAvailable()) { return true; } } } return getUnitTestCreationAvailable(); }
@CliAvailabilityIndicator({"field embedded"}) public boolean isFieldEmbeddedAvailable() { JavaType type = lastUsed.getJavaType(); if (type != null) { return getFieldCreatorProvider(type).isFieldEmbeddedAvailable(); } return getFieldCreatorAvailable(); }
@CliAvailabilityIndicator({"field set", "field list"}) public boolean isFieldCollectionAvailable() { JavaType type = lastUsed.getJavaType(); if (type != null) { return getFieldCreatorProvider(type).isFieldCollectionAvailable(); } return getFieldCreatorAvailable(); }
@CliAvailabilityIndicator({"field reference"}) public boolean isFieldReferenceAvailable() { JavaType type = lastUsed.getJavaType(); if (type != null) { return getFieldCreatorProvider(type).isFieldReferenceAvailable(); } return getFieldCreatorAvailable(); }