public class LdValidator extends EObjectValidator
LdPackage
EObjectValidator.DynamicEClassValidator, EObjectValidator.DynamicEDataTypeValidator
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate
Modifier and Type | Field and Description |
---|---|
static String |
DIAGNOSTIC_SOURCE
|
static LdValidator |
INSTANCE
The cached model package
|
DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
Constructor and Description |
---|
LdValidator()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
ResourceLocator |
getResourceLocator()
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
|
boolean |
validateCoil(Coil coil,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateCoilType(CoilType coilType,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateContact(Contact contact,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateContactType(ContactType contactType,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateLadderDiagram(LadderDiagram ladderDiagram,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateLadderNetwork(LadderNetwork ladderNetwork,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateLDElement(LDElement ldElement,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateLDNode(LDNode ldNode,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validatePowerFlowLine_hasValidPowerSink(PowerFlowLine powerFlowLine,
DiagnosticChain diagnostics,
Map<Object,Object> context)
Validates the hasValidPowerSink constraint of 'Power Flow Line'.
|
boolean |
validatePowerFlowLine(PowerFlowLine powerFlowLine,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validatePowerRail(PowerRail powerRail,
DiagnosticChain diagnostics,
Map<Object,Object> context) |
getFeatureLabel, getObjectLabel, getValueLabel, validate_BidirectionalReferenceIsPaired, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_NoCircularContainment, validate_UniqueID, validate, validate, validate, validate, validate, validate
public static final LdValidator INSTANCE
public static final String DIAGNOSTIC_SOURCE
Diagnostic.getSource()
,
Diagnostic.getCode()
,
Constant Field Valuespublic LdValidator()
public boolean validateCoil(Coil coil, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateContact(Contact contact, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateLadderDiagram(LadderDiagram ladderDiagram, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateLadderNetwork(LadderNetwork ladderNetwork, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateLDElement(LDElement ldElement, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateLDNode(LDNode ldNode, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validatePowerFlowLine(PowerFlowLine powerFlowLine, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validatePowerFlowLine_hasValidPowerSink(PowerFlowLine powerFlowLine, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validatePowerRail(PowerRail powerRail, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateContactType(ContactType contactType, DiagnosticChain diagnostics, Map<Object,Object> context)
public boolean validateCoilType(CoilType coilType, DiagnosticChain diagnostics, Map<Object,Object> context)
public ResourceLocator getResourceLocator()
getResourceLocator
in class EObjectValidator