/** * Convenience method for looking up {@link TypeId}s from {@link ApplicationType}s. The * {@code applinks-application-type} descriptor enforces that all registered {@link ApplicationType}s implement the * {@link IdentifiableType} interface, so the cast in the delegate method is safe. */ public static TypeId getTypeId(final ApplicationType type) { return get(type); }
@Override public TypeId unmarshal(final String v) throws Exception { return new TypeId(v); }
@Override public ApplicationId getId() { return ApplicationIdUtil.generate(url); }
public EntityTypeEntity(final EntityType type) { this.typeId = TypeId.getTypeId(type); }
@Override public String getName() { return applicationType.getI18nKey(); }
@Override public TypeId getTypeId() { return applicationType.getId(); }
@Override public String marshal(final TypeId v) throws Exception { return v.get(); } }
@Override public ApplicationId getId() { return ApplicationIdUtil.generate(url); }
public TypeId getId() { return new TypeId("dummy"); } };
@Override public String marshal(final TypeId v) throws Exception { return v.get(); } }
public ApplicationId getId() { return ApplicationIdUtil.generate(url); }
@Override public TypeId unmarshal(final String v) throws Exception { return new TypeId(v); }
/** * Convenience method for looking up {@link TypeId}s from {@link EntityType}s. The * {@code applinks-entity-type} descriptor enforces that all registered {@link EntityType}s implement the * {@link IdentifiableType} interface, so the cast in the delegate method is safe. */ public static TypeId getTypeId(final EntityType type) { return get(type); }
public ApplicationId getId() { return ApplicationIdUtil.generate(url); }
public EntityType loadEntityType(final String typeClassName) { return typeCache.get(typeClassName); }
public ApplicationType loadApplicationType(final String typeClassName) { return typeCache.get(typeClassName); }
public EntityType loadEntityType(final String typeClassName) { return typeCache.get(typeClassName); }