Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<unmarshall node="section" class="net.officefloor.model.section.SectionModel">

	<!-- EXTERNAL MANAGED OBJECTS -->
	<object method="addExternalManagedObject" node="external-managed-object"
		class="net.officefloor.model.section.ExternalManagedObjectModel">
		<value method="setExternalManagedObjectName" node="external-managed-object@name" />
		<value method="setObjectType" node="external-managed-object@object-type" />
		<value method="setX" node="external-managed-object@x" />
		<value method="setY" node="external-managed-object@y" />
	</object>

	<!-- MANAGED OBJECT SOURCES -->
	<object method="addSectionManagedObjectSource" node="managed-object-source"
		class="net.officefloor.model.section.SectionManagedObjectSourceModel">
		<value method="setSectionManagedObjectSourceName" node="managed-object-source@name" />
		<value method="setManagedObjectSourceClassName" node="managed-object-source@source" />
		<value method="setObjectType" node="managed-object-source@object-type" />
		<value method="setTimeout" node="managed-object-source@timeout" />
		<value method="setX" node="managed-object-source@x" />
		<value method="setY" node="managed-object-source@y" />
		<object method="addProperty" node="property"
			class="net.officefloor.model.section.PropertyModel">
			<value method="setName" node="property@name" />
			<value method="setValue" node="property@value" />
		</object>
		<object method="addSectionManagedObjectSourceFlow" node="flow"
			class="net.officefloor.model.section.SectionManagedObjectSourceFlowModel">
			<value method="setSectionManagedObjectSourceFlowName" node="flow@name" />
			<value method="setArgumentType" node="flow@argument-type" />
			<object method="setExternalFlow" node="external-flow"
				class="net.officefloor.model.section.SectionManagedObjectSourceFlowToExternalFlowModel">
				<value method="setExternalFlowName" node="external-flow@name" />
			</object>
			<object method="setSubSectionInput" node="sub-section-input"
				class="net.officefloor.model.section.SectionManagedObjectSourceFlowToSubSectionInputModel">
				<value method="setSubSectionName" node="sub-section-input@sub-section" />
				<value method="setSubSectionInputName" node="sub-section-input@input" />
			</object>
		</object>
	</object>

	<!-- MANAGED_OBJECTS -->
	<object method="addSectionManagedObject" node="managed-object"
		class="net.officefloor.model.section.SectionManagedObjectModel">
		<value method="setSectionManagedObjectName" node="managed-object@name" />
		<value method="setManagedObjectScope" node="managed-object@scope" />
		<value method="setX" node="managed-object@x" />
		<value method="setY" node="managed-object@y" />
		<object method="setSectionManagedObjectSource" node="managed-object-source"
			class="net.officefloor.model.section.SectionManagedObjectToSectionManagedObjectSourceModel">
			<value method="setSectionManagedObjectSourceName" node="managed-object-source@name" />
		</object>
		<object method="addSectionManagedObjectDependency" node="dependency"
			class="net.officefloor.model.section.SectionManagedObjectDependencyModel">
			<value method="setSectionManagedObjectDependencyName" node="dependency@name" />
			<value method="setDependencyType" node="dependency@object-type" />
			<object method="setExternalManagedObject" node="external-managed-object"
				class="net.officefloor.model.section.SectionManagedObjectDependencyToExternalManagedObjectModel">
				<value method="setExternalManagedObjectName" node="external-managed-object@name" />
			</object>
			<object method="setSectionManagedObject" node="managed-object"
				class="net.officefloor.model.section.SectionManagedObjectDependencyToSectionManagedObjectModel">
				<value method="setSectionManagedObjectName" node="managed-object@name" />
			</object>
		</object>
	</object>

	<!-- EXTERNAL FLOWS -->
	<object method="addExternalFlow" node="external-flow"
		class="net.officefloor.model.section.ExternalFlowModel">
		<value method="setExternalFlowName" node="external-flow@name" />
		<value method="setArgumentType" node="external-flow@argument-type" />
		<value method="setX" node="external-flow@x" />
		<value method="setY" node="external-flow@y" />
	</object>

	<!-- SUB SECTIONS -->
	<object method="addSubSection" node="sub-section"
		class="net.officefloor.model.section.SubSectionModel">
		<object method="addProperty" node="property"
			class="net.officefloor.model.section.PropertyModel">
			<value method="setName" node="property@name" />
			<value method="setValue" node="property@value" />
		</object>
		<value method="setSubSectionName" node="sub-section@name" />
		<value method="setSectionSourceClassName" node="sub-section@source" />
		<value method="setSectionLocation" node="sub-section@location" />
		<value method="setX" node="sub-section@x" />
		<value method="setY" node="sub-section@y" />
		<object method="addSubSectionInput" node="input"
			class="net.officefloor.model.section.SubSectionInputModel">
			<value method="setSubSectionInputName" node="input@name" />
			<value method="setParameterType" node="input@parameter-type" />
			<value method="setIsPublic" node="input@public" />
			<value method="setPublicInputName" node="input@public-name" />
		</object>
		<object method="addSubSectionOutput" node="output"
			class="net.officefloor.model.section.SubSectionOutputModel">
			<value method="setSubSectionOutputName" node="output@name" />
			<value method="setArgumentType" node="output@argument-type" />
			<value method="setEscalationOnly" node="output@escalation-only" />
			<object method="setSubSectionInput" node="input"
				class="net.officefloor.model.section.SubSectionOutputToSubSectionInputModel">
				<value method="setSubSectionName" node="input@sub-section" />
				<value method="setSubSectionInputName" node="input@input" />
			</object>
			<object method="setExternalFlow" node="external-flow"
				class="net.officefloor.model.section.SubSectionOutputToExternalFlowModel">
				<value method="setExternalFlowName" node="external-flow@name" />
			</object>
		</object>
		<object method="addSubSectionObject" node="object"
			class="net.officefloor.model.section.SubSectionObjectModel">
			<value method="setSubSectionObjectName" node="object@name" />
			<value method="setObjectType" node="object@object-type" />
			<object method="setExternalManagedObject" node="external-managed-object"
				class="net.officefloor.model.section.SubSectionObjectToExternalManagedObjectModel">
				<value method="setExternalManagedObjectName" node="external-managed-object@name" />
			</object>
			<object method="setSectionManagedObject" node="managed-object"
				class="net.officefloor.model.section.SubSectionObjectToSectionManagedObjectModel">
				<value method="setSectionManagedObjectName" node="managed-object@name" />
			</object>
		</object>
	</object>
</unmarshall>
New to GrepCode? Check out our FAQ X