Package com.iab.gpp.encoder
Class GppModel
java.lang.Object
com.iab.gpp.encoder.GppModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoiddecodeSection(int sectionId, String encodedString) voiddecodeSection(String sectionName, String encodedString) voiddeleteSection(int sectionId) voiddeleteSection(String sectionName) encode()encodeSection(int sectionId) encodeSection(String sectionName) getFieldValue(int sectionId, String fieldName) getFieldValue(String sectionName, String fieldName) getSection(int sectionId) getSection(String sectionName) booleanbooleanbooleanhasSection(int sectionId) booleanhasSection(String sectionName) voidsetFieldValue(int sectionId, String fieldName, Object value) voidsetFieldValue(String sectionName, String fieldName, Object value)
-
Constructor Details
-
GppModel
public GppModel() -
GppModel
- Throws:
DecodingException
-
-
Method Details
-
setFieldValue
public void setFieldValue(int sectionId, String fieldName, Object value) throws InvalidFieldException - Throws:
InvalidFieldException
-
setFieldValue
public void setFieldValue(String sectionName, String fieldName, Object value) throws InvalidFieldException - Throws:
InvalidFieldException
-
getFieldValue
-
getFieldValue
-
hasField
-
hasField
-
hasSection
public boolean hasSection(int sectionId) -
hasSection
-
getHeader
-
getSection
-
getSection
-
deleteSection
public void deleteSection(int sectionId) -
deleteSection
-
clear
public void clear() -
getTcfCaV1Section
-
getTcfEuV2Section
-
getUspV1Section
-
getUsNatV1Section
-
getUsCaV1Section
-
getUsVaV1Section
-
getUsCoV1Section
-
getUsUtV1Section
-
getUsCtV1Section
-
getSectionIds
-
encode
- Throws:
EncodingException
-
decode
- Throws:
DecodingException
-
encodeSection
- Throws:
EncodingException
-
encodeSection
- Throws:
EncodingException
-
decodeSection
- Throws:
DecodingException
-
decodeSection
- Throws:
DecodingException
-