@Test public void testUpgradeBehaviorTag() throws JAXBException { String xml = "<property>\n" + " <name>prop_name</name>\n" + " <value>prop_val</value>\n" + " <on-ambari-upgrade add=\"true\" update=\"true\" delete=\"true\"/>\n" + "</property>"; PropertyInfo propertyInfo = propertyInfoFrom(xml); assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isAdd()); assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isUpdate()); assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isDelete()); }
public PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior() { return propertyAmbariUpgradeBehavior; }
PropertyInfo { public PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior() { return propertyAmbariUpgradeBehavior; } }
PropertyInfo { public PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior() { return propertyAmbariUpgradeBehavior; } PropertyInfo(); }
PropertyInfo { public PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior() { return propertyAmbariUpgradeBehavior; } PropertyInfo(); String getName(); void setName(String name); Set<PropertyDependencyInfo> getUsedByProperties(); String getValue(); void setValue(String value); String getDescription(); void setDescription(String description); String getDisplayName(); void setDisplayName(String displayName); String getFilename(); void setFilename(String filename); Set<PropertyType> getPropertyTypes(); void setPropertyTypes(Set<PropertyType> propertyTypes); PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior(); void setPropertyAmbariUpgradeBehavior(PropertyUpgradeBehavior propertyAmbariUpgradeBehavior); StackConfigurationResponse convertToResponse(); boolean isDeleted(); void setDeleted(boolean deleted); Map<String, String> getAttributesMap(); ValueAttributesInfo getPropertyValueAttributes(); Set<PropertyDependencyInfo> getDependsOnProperties(); void setPropertyValueAttributes(ValueAttributesInfo propertyValueAttributes); Set<PropertyDependencyInfo> getDependedByProperties(); boolean isRequireInput(); void setRequireInput(boolean requireInput); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); PropertyStackUpgradeBehavior getPropertyStackUpgradeBehavior(); void setPropertyStackUpgradeBehavior(PropertyStackUpgradeBehavior propertyStackUpgradeBehavior); }
PropertyInfo { public PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior() { return propertyAmbariUpgradeBehavior; } PropertyInfo(); String getName(); void setName(String name); Set<PropertyDependencyInfo> getUsedByProperties(); String getValue(); void setValue(String value); String getDescription(); void setDescription(String description); String getDisplayName(); void setDisplayName(String displayName); String getFilename(); void setFilename(String filename); Set<PropertyType> getPropertyTypes(); void setPropertyTypes(Set<PropertyType> propertyTypes); PropertyUpgradeBehavior getPropertyAmbariUpgradeBehavior(); void setPropertyAmbariUpgradeBehavior(PropertyUpgradeBehavior propertyAmbariUpgradeBehavior); StackConfigurationResponse convertToResponse(); boolean isDeleted(); void setDeleted(boolean deleted); Map<String, String> getAttributesMap(); ValueAttributesInfo getPropertyValueAttributes(); Set<PropertyDependencyInfo> getDependsOnProperties(); void setPropertyValueAttributes(ValueAttributesInfo propertyValueAttributes); Set<PropertyDependencyInfo> getDependedByProperties(); boolean isRequireInput(); void setRequireInput(boolean requireInput); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); PropertyStackUpgradeBehavior getPropertyStackUpgradeBehavior(); void setPropertyStackUpgradeBehavior(PropertyStackUpgradeBehavior propertyStackUpgradeBehavior);  }