Package com.io7m.waxmill.xml.vm.v1
Class WXM1Flag.Builder
java.lang.Object
com.io7m.waxmill.xml.vm.v1.WXM1Flag.Builder
- Enclosing class:
- WXM1Flag
public static final class WXM1Flag.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description WXM1Flagbuild()Builds a newWXM1Flag.WXM1Flag.Builderfrom(WXM1FlagType instance)Fill a builder with attribute values from the providedWXM1FlagTypeinstance.WXM1Flag.BuildersetName(java.lang.String name)Initializes the value for thenameattribute.WXM1Flag.BuildersetValue(boolean value)Initializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedWXM1FlagTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setValue
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newWXM1Flag.- Returns:
- An immutable instance of WXM1Flag
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-