Schema implements Ordered, Klass { @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public boolean isSecondaryMetadata() { return secondaryMetadata; } Schema( Class<?> klass, String singular, String plural ); @Override @JsonProperty @JacksonXmlProperty( isAttribute = true ) Class<?> getKlass(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isIdentifiableObject(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isNameableObject(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isSubscribableObject(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isEmbeddedObject(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getSingular(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getPlural(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isMetadata(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isSecondaryMetadata(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getNamespace(); void setNamespace( String namespace ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getCollectionName(); void setCollectionName( String collectionName ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getName(); void setName( String name ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getDisplayName(); void setDisplayName( String displayName ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isShareable(); void setShareable( boolean shareable ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isDataShareable(); void setDataShareable( boolean dataShareable ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getRelativeApiEndpoint(); void setRelativeApiEndpoint( String relativeApiEndpoint ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getApiEndpoint(); void setApiEndpoint( String apiEndpoint ); boolean haveApiEndpoint(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getHref(); void setHref( String href ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isPersisted(); void setPersisted( boolean persisted ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isTranslatable(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isFavoritable(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isSubscribable(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isDefaultPrivate(); void setDefaultPrivate( boolean defaultPrivate ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isImplicitPrivateAuthority(); void setImplicitPrivateAuthority( boolean implicitPrivateAuthority ); @JsonProperty @JacksonXmlElementWrapper( localName = "authorities", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "authority", namespace = DxfNamespaces.DXF_2_0 ) List<Authority> getAuthorities(); void setAuthorities( List<Authority> authorities ); @JsonProperty @JacksonXmlElementWrapper( localName = "properties", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "property", namespace = DxfNamespaces.DXF_2_0 ) List<Property> getProperties(); boolean haveProperty( String propertyName ); boolean havePersistedProperty( String propertyName ); Property propertyByRole( String role ); @JsonIgnore Map<String, Property> getPropertyMap(); void setPropertyMap( Map<String, Property> propertyMap ); @JsonProperty @JacksonXmlElementWrapper( localName = "references", namespace = DxfNamespaces.DXF_2_0 ) @JacksonXmlProperty( localName = "reference", namespace = DxfNamespaces.DXF_2_0 ) @SuppressWarnings( "rawtypes" ) Set<Class> getReferences(); Map<String, Property> getReadableProperties(); Map<String, Property> getPersistedProperties(); Map<String, Property> getNonPersistedProperties(); Map<String, Property> getEmbeddedObjectProperties(); Map<String, Property> getAnalyticalObjectProperties(); void addProperty( Property property ); @JsonIgnore Property getProperty( String name ); @JsonIgnore Property getPersistedProperty( String name ); List<String> getAuthorityByType( AuthorityType type ); @Override @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) int getOrder(); void setOrder( int order ); List<Property> getUniqueProperties(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }
@Test public void isSecondaryMetadataObject() { Assert.assertTrue( new Schema( SecondaryMetadata.class, "singular", "plural" ).isSecondaryMetadata() ); }
@Test public void isSecondaryMetadataObjectNot() { Assert.assertFalse( new Schema( Metadata.class, "singular", "plural" ).isSecondaryMetadata() ); }