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 class
NodeSemantic.SemanticHeading
This 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 void
addSyntaxRepresentation(NodeSyntax node)
Adds an syntax representation node of this semantic nodevoid
createSemanticJSONFile(String fileName, String outputPath, String title, Boolean isNormative)
void
createSemanticXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
void
createSubXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
void
createXMLFile(String fileName, String outputPath, String title, Boolean isNormative)
String
getBusinessTerm()
CardinalitySemantic
getCardinality()
SemanticDataType
getDataType()
String
getDescription()
String
getId()
Integer
getLevel()
Boolean
isBusinessGroup()
void
setBusinessTerm(String bt)
void
setCardinality(String c)
void
setDataType(String dt)
void
setDescription(String d)
void
setLevel(Integer l)
static void
showSemanticIDAnomalies()
String
toString()
String
toSubString(boolean onlySemantic)
static void
validateCardinalityMismatches()
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()
-
-