Package de.prototypefund.en16931
Class NodeSemantic
- java.lang.Object
-
- de.prototypefund.en16931.NodeSemantic
-
public class NodeSemantic extends Object
Represents either a Business Group (BG) or Business Term (BT) from the eInvoice EN16931 specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeSemantic.SemanticHeadingThis enum contains all table header row label of the semantic object
-
Constructor Summary
Constructors Constructor Description NodeSemantic(String id, String tableId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSyntaxRepresentation(NodeSyntax node)Adds an syntax representation node of this semantic nodevoidcreateSemanticJSONFile(String fileName, String outputPath, String title, Boolean isNormative)voidcreateSemanticXMLFile(String fileName, String outputPath, String title, Boolean isNormative)voidcreateSubXMLFile(String fileName, String outputPath, String title, Boolean isNormative)voidcreateXMLFile(String fileName, String outputPath, String title, Boolean isNormative)StringgetBusinessTerm()CardinalitySemanticgetCardinality()SemanticDataTypegetDataType()StringgetDescription()StringgetId()IntegergetLevel()BooleanisBusinessGroup()voidsetBusinessTerm(String bt)voidsetCardinality(String c)voidsetDataType(String dt)voidsetDescription(String d)voidsetLevel(Integer l)static voidshowSemanticIDAnomalies()StringtoString()StringtoSubString(boolean onlySemantic)static voidvalidateCardinalityMismatches()Compares the resulting mismatch from the given cardinalites of semantic & syntax, with the given mismatches!
-
-
-
Method Detail
-
addSyntaxRepresentation
public void addSyntaxRepresentation(NodeSyntax node)
Adds an syntax representation node of this semantic node
-
isBusinessGroup
public Boolean isBusinessGroup()
-
getId
public String getId()
-
setBusinessTerm
public void setBusinessTerm(String bt)
-
getBusinessTerm
public String getBusinessTerm()
-
setCardinality
public void setCardinality(String c)
-
getCardinality
public CardinalitySemantic getCardinality()
-
setDataType
public void setDataType(String dt)
-
getDataType
public SemanticDataType getDataType()
-
setDescription
public void setDescription(String d)
-
getDescription
public String getDescription()
-
setLevel
public void setLevel(Integer l)
-
getLevel
public Integer getLevel()
-
toSubString
public String toSubString(boolean onlySemantic)
-
createSemanticXMLFile
public void createSemanticXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
-
createSemanticJSONFile
public void createSemanticJSONFile(String fileName, String outputPath, String title, Boolean isNormative)
-
createSubXMLFile
public void createSubXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
-
createXMLFile
public void createXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
-
validateCardinalityMismatches
public static void validateCardinalityMismatches()
Compares the resulting mismatch from the given cardinalites of semantic & syntax, with the given mismatches!
-
showSemanticIDAnomalies
public static void showSemanticIDAnomalies()
-
-