Package org.kigalisim.lang.fragment
Class PolicyFragment
java.lang.Object
org.kigalisim.lang.fragment.Fragment
org.kigalisim.lang.fragment.PolicyFragment
A fragment containing a parsed policy.
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyFragment(ParsedPolicy policy) Create a new fragment containing a parsed policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this fragment is a policy stanza (or default).booleanCheck if this fragment is a scenarios stanza.Get the policy parsed from the source of this fragment.Methods inherited from class org.kigalisim.lang.fragment.Fragment
getApplication, getDuring, getOperation, getProgram, getScenario, getScenarios, getString, getSubstance, getUnit
-
Constructor Details
-
PolicyFragment
Create a new fragment containing a parsed policy.- Parameters:
policy- The policy parsed from the source of this fragment.
-
-
Method Details
-
getPolicy
Get the policy parsed from the source of this fragment. -
getIsStanzaScenarios
public boolean getIsStanzaScenarios()Description copied from class:FragmentCheck if this fragment is a scenarios stanza.- Overrides:
getIsStanzaScenariosin classFragment- Returns:
- True if this fragment is a scenarios stanza, false if another stanza.
-
getIsStanzaPolicyOrDefault
public boolean getIsStanzaPolicyOrDefault()Description copied from class:FragmentCheck if this fragment is a policy stanza (or default).- Overrides:
getIsStanzaPolicyOrDefaultin classFragment- Returns:
- True if policy stanza, false if another stanza.
-