类 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

public abstract class AbstractSchema extends Object
  • 构造器详细资料

    • AbstractSchema

      public AbstractSchema()
  • 方法详细资料

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getComment

      public String getComment()
    • setComment

      public void setComment(String comment)
    • getName

      public String getName()
      Ensure meta fields are set for strict round-trip compliance. Subclasses should call this in their constructors or after deserialization.
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getContext

      public String getContext()
    • setContext

      public void setContext(String context)
    • setMapper

      public static void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • 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

      public String toJsonLdString() throws com.fasterxml.jackson.core.JsonProcessingException
      to jsonld string
      返回:
      jsonld string
      抛出:
      com.fasterxml.jackson.core.JsonProcessingException - jackson error