Package com.io7m.waxmill.xml.config.v1
Class WXM1Path.Builder
java.lang.Object
com.io7m.waxmill.xml.config.v1.WXM1Path.Builder
- Enclosing class:
- WXM1Path
public static final class WXM1Path.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description WXM1Pathbuild()Builds a newWXM1Path.WXM1Path.Builderfrom(WXM1PathType instance)Fill a builder with attribute values from the providedWXM1PathTypeinstance.WXM1Path.BuildersetPath(java.nio.file.Path path)Initializes the value for thepathattribute.WXM1Path.BuildersetType(java.lang.String type)Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedWXM1PathTypeinstance. 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
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setPath
Initializes the value for thepathattribute.- Parameters:
path- The value for path- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newWXM1Path.- Returns:
- An immutable instance of WXM1Path
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-