/** * Create the tag list for the EMR nodes. * * @param emrClusterDefinition the EMR definition name value. * * @return list of all tag definitions for the given configuration. */ private List<Tag> getEmrTags(EmrClusterDefinition emrClusterDefinition) { List<Tag> tags = new ArrayList<>(); // Get the nodeTags from xml for (NodeTag thisTag : emrClusterDefinition.getNodeTags()) { // Create a AWS tag and add if (StringUtils.isNotBlank(thisTag.getTagName()) && StringUtils.isNotBlank(thisTag.getTagValue())) { tags.add(new Tag(thisTag.getTagName(), thisTag.getTagValue())); } } // Return the object return tags; }
/** * Create the tag list for the EMR nodes. * * @param emrClusterDefinition the EMR definition name value. * * @return list of all tag definitions for the given configuration. */ private List<Tag> getEmrTags(EmrClusterDefinition emrClusterDefinition) { List<Tag> tags = new ArrayList<>(); // Get the nodeTags from xml for (NodeTag thisTag : emrClusterDefinition.getNodeTags()) { // Create a AWS tag and add if (StringUtils.isNotBlank(thisTag.getTagName()) && StringUtils.isNotBlank(thisTag.getTagValue())) { tags.add(new Tag(thisTag.getTagName(), thisTag.getTagValue())); } } // Return the object return tags; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTagName; theTagName = this.getTagName(); strategy.appendField(locator, this, "tagName", buffer, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); strategy.appendField(locator, this, "tagValue", buffer, theTagValue, (this.tagValue!= null)); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTagName; theTagName = this.getTagName(); strategy.appendField(locator, this, "tagName", buffer, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); strategy.appendField(locator, this, "tagValue", buffer, theTagValue, (this.tagValue!= null)); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { String theTagName; theTagName = this.getTagName(); strategy.appendField(locator, this, "tagName", buffer, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); strategy.appendField(locator, this, "tagValue", buffer, theTagValue, (this.tagValue!= null)); } return buffer; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final NodeTag that = ((NodeTag) object); { String lhsTagName; lhsTagName = this.getTagName(); String rhsTagName; rhsTagName = that.getTagName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagName", lhsTagName), LocatorUtils.property(thatLocator, "tagName", rhsTagName), lhsTagName, rhsTagName, (this.tagName!= null), (that.tagName!= null))) { return false; } } { String lhsTagValue; lhsTagValue = this.getTagValue(); String rhsTagValue; rhsTagValue = that.getTagValue(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagValue", lhsTagValue), LocatorUtils.property(thatLocator, "tagValue", rhsTagValue), lhsTagValue, rhsTagValue, (this.tagValue!= null), (that.tagValue!= null))) { return false; } } return true; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final NodeTag that = ((NodeTag) object); { String lhsTagName; lhsTagName = this.getTagName(); String rhsTagName; rhsTagName = that.getTagName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagName", lhsTagName), LocatorUtils.property(thatLocator, "tagName", rhsTagName), lhsTagName, rhsTagName, (this.tagName!= null), (that.tagName!= null))) { return false; } } { String lhsTagValue; lhsTagValue = this.getTagValue(); String rhsTagValue; rhsTagValue = that.getTagValue(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagValue", lhsTagValue), LocatorUtils.property(thatLocator, "tagValue", rhsTagValue), lhsTagValue, rhsTagValue, (this.tagValue!= null), (that.tagValue!= null))) { return false; } } return true; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final NodeTag that = ((NodeTag) object); { String lhsTagName; lhsTagName = this.getTagName(); String rhsTagName; rhsTagName = that.getTagName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagName", lhsTagName), LocatorUtils.property(thatLocator, "tagName", rhsTagName), lhsTagName, rhsTagName, (this.tagName!= null), (that.tagName!= null))) { return false; } } { String lhsTagValue; lhsTagValue = this.getTagValue(); String rhsTagValue; rhsTagValue = that.getTagValue(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tagValue", lhsTagValue), LocatorUtils.property(thatLocator, "tagValue", rhsTagValue), lhsTagValue, rhsTagValue, (this.tagValue!= null), (that.tagValue!= null))) { return false; } } return true; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTagName; theTagName = this.getTagName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagName", theTagName), currentHashCode, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagValue", theTagValue), currentHashCode, theTagValue, (this.tagValue!= null)); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTagName; theTagName = this.getTagName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagName", theTagName), currentHashCode, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagValue", theTagValue), currentHashCode, theTagValue, (this.tagValue!= null)); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { String theTagName; theTagName = this.getTagName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagName", theTagName), currentHashCode, theTagName, (this.tagName!= null)); } { String theTagValue; theTagValue = this.getTagValue(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tagValue", theTagValue), currentHashCode, theTagValue, (this.tagValue!= null)); } return currentHashCode; }
Assert.hasText(nodeTag.getTagValue(), "A node tag value must be specified."); Assert.isTrue(!nodeTagNameValidationSet.contains(nodeTag.getTagName()), String.format("Duplicate node tag \"%s\" is found.", nodeTag.getTagName())); nodeTagNameValidationSet.add(nodeTag.getTagName());
Assert.hasText(nodeTag.getTagValue(), "A node tag value must be specified."); Assert.isTrue(!nodeTagNameValidationSet.contains(nodeTag.getTagName()), String.format("Duplicate node tag \"%s\" is found.", nodeTag.getTagName())); nodeTagNameValidationSet.add(nodeTag.getTagName());
if (tagValueShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTagValue; sourceTagValue = this.getTagValue(); String copyTagValue = ((String) strategy.copy(LocatorUtils.property(locator, "tagValue", sourceTagValue), sourceTagValue, (this.tagValue!= null))); copy.setTagValue(copyTagValue);
if (tagValueShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTagValue; sourceTagValue = this.getTagValue(); String copyTagValue = ((String) strategy.copy(LocatorUtils.property(locator, "tagValue", sourceTagValue), sourceTagValue, (this.tagValue!= null))); copy.setTagValue(copyTagValue);
if (tagValueShouldBeCopiedAndSet == Boolean.TRUE) { String sourceTagValue; sourceTagValue = this.getTagValue(); String copyTagValue = ((String) strategy.copy(LocatorUtils.property(locator, "tagValue", sourceTagValue), sourceTagValue, (this.tagValue!= null))); copy.setTagValue(copyTagValue);