@Test public void testFromIdLexeme() { assertEquals(new LexemeIdValueImpl("L42", "http: }
public static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id, true)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_LEXEME: return new LexemeIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_FORM: return new FormIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_SENSE: return new SenseIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_MEDIA_INFO: return new MediaInfoIdValueImpl(id, siteIri); default: throw new IllegalArgumentException("Entity id \"" + id + "\" is not supported."); } }
EntityIdValueImpl extends ValueImpl implements
		EntityIdValue { public static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id, true)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_LEXEME: return new LexemeIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_FORM: return new FormIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_SENSE: return new SenseIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_MEDIA_INFO: return new MediaInfoIdValueImpl(id, siteIri); default: throw new IllegalArgumentException("Entity id \"" + id + "\" is not supported."); } } }
EntityIdValueImpl extends ValueImpl implements
		EntityIdValue { public static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id, true)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_LEXEME: return new LexemeIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_FORM: return new FormIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_SENSE: return new SenseIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_MEDIA_INFO: return new MediaInfoIdValueImpl(id, siteIri); default: throw new IllegalArgumentException("Entity id \"" + id + "\" is not supported."); } } protected  EntityIdValueImpl(
			String id,
			String siteIri); @JsonCreator protected  EntityIdValueImpl(
			@JsonProperty("value") JacksonInnerEntityId value,
			@JacksonInject String siteIri); }
EntityIdValueImpl extends ValueImpl implements
		EntityIdValue { public static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id, true)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_LEXEME: return new LexemeIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_FORM: return new FormIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_SENSE: return new SenseIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_MEDIA_INFO: return new MediaInfoIdValueImpl(id, siteIri); default: throw new IllegalArgumentException("Entity id \"" + id + "\" is not supported."); } } protected  EntityIdValueImpl(
			String id,
			String siteIri); @JsonCreator protected  EntityIdValueImpl(
			@JsonProperty("value") JacksonInnerEntityId value,
			@JacksonInject String siteIri); static EntityIdValue fromId(String id, String siteIri); static String guessEntityTypeFromId(String id); @JsonProperty("value") JacksonInnerEntityId getValue(); @JsonIgnore @Override String getIri(); @JsonIgnore @Override String getId(); @JsonIgnore @Override String getSiteIri(); }
EntityIdValueImpl extends ValueImpl implements
		EntityIdValue { public static EntityIdValue fromId(String id, String siteIri) { switch (guessEntityTypeFromId(id, true)) { case EntityIdValueImpl.JSON_ENTITY_TYPE_ITEM: return new ItemIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_PROPERTY: return new PropertyIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_LEXEME: return new LexemeIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_FORM: return new FormIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_SENSE: return new SenseIdValueImpl(id, siteIri); case EntityIdValueImpl.JSON_ENTITY_TYPE_MEDIA_INFO: return new MediaInfoIdValueImpl(id, siteIri); default: throw new IllegalArgumentException("Entity id \"" + id + "\" is not supported."); } } protected  EntityIdValueImpl(
			String id,
			String siteIri); @JsonCreator protected  EntityIdValueImpl(
			@JsonProperty("value") JacksonInnerEntityId value,
			@JacksonInject String siteIri); static EntityIdValue fromId(String id, String siteIri); static String guessEntityTypeFromId(String id); @JsonProperty("value") JacksonInnerEntityId getValue(); @JsonIgnore @Override String getIri(); @JsonIgnore @Override String getId(); @JsonIgnore @Override String getSiteIri(); final static String JSON_ENTITY_TYPE_ITEM; final static String JSON_ENTITY_TYPE_PROPERTY; final static String JSON_ENTITY_TYPE_LEXEME; final static String JSON_ENTITY_TYPE_FORM; final static String JSON_ENTITY_TYPE_SENSE; final static String JSON_ENTITY_TYPE_MEDIA_INFO; }