public static TranslationScope scalarMetadataTranslations() { return TranslationScope.get( "scalar_metadata", DebugMetadata.class, MetadataString.class, MetadataStringBuilder.class, MetadataParsedURL.class, MetadataInteger.class); }
public static TranslationScope builtinMetadataTranslations() { return TranslationScope.get( "builtin_metadata", scalarMetadataTranslations(), Metadata.class, Document.class, Media.class, Image.class, Entity.class); }
public static TranslationScope get() { return TranslationScope.get("xaml", WindowState.class); }
/** * This accessor will work from anywhere, in any order, and stay efficient. * * @return */ public static TranslationScope get() { TranslationScope translationSpace = TranslationScope.get(PACKAGE_NAME, inheritedTranslations); return translationSpace; }
public MetaMetadata getByClass(Class<? extends Metadata> metadataClass) { if (metadataClass == null) return null; return repositoryByTagName.get(metadataTScope.getTag(metadataClass)); }
public MetaMetadata getDocumentMM(Document metadata) { return getDocumentMM(metadata.getLocation(), metadataTScope.getTag(metadata.getClass())); }
public MetaMetadata getMM(Class<? extends Metadata> thatClass) { String tag = metadataTScope.getTag(thatClass); return (tag == null) ? null : repositoryByTagName.get(tag); }