类 AbstractSchema
java.lang.Object
net.jlxxw.schema.org.AbstractSchema
- 直接已知子类:
Action,AggregateRating,BioChemEntity,ContactPoint,CreativeWork,DataType,DoseSchedule,Episode,Event,FoodEstablishment,Intangible,MedicalEntity,Organization,Person,Place,PriceSpecification,Product,Review,Taxon,Text,Thing
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getId()getLabel()getName()Ensure meta fields are set for strict round-trip compliance.getType()<T extends AbstractSchema>
TparseToObject(String jsonld) parse to java classvoidsetComment(String comment) voidsetContext(String context) voidsetDescription(String description) voidvoidstatic voidsetMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) voidvoidto jsonld stringtoString()
-
构造器详细资料
-
AbstractSchema
public AbstractSchema()
-
-
方法详细资料
-
getId
-
setId
-
getType
-
setType
-
getLabel
-
setLabel
-
getComment
-
setComment
-
getName
Ensure meta fields are set for strict round-trip compliance. Subclasses should call this in their constructors or after deserialization. -
setName
-
getDescription
-
setDescription
-
getContext
-
setContext
-
setMapper
public static void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) -
toString
-
parseToObject
public <T extends AbstractSchema> T parseToObject(String jsonld) throws com.fasterxml.jackson.core.JsonProcessingException parse to java class- 类型参数:
T- entry- 参数:
jsonld- jsonld data- 返回:
- java class
- 抛出:
com.fasterxml.jackson.core.JsonProcessingException- jackson error
-
toJsonLdString
to jsonld string- 返回:
- jsonld string
- 抛出:
com.fasterxml.jackson.core.JsonProcessingException- jackson error
-