@Test public void return_item_type_16_when_is_not_part_of_URI() throws ParseException { final String uri = String.format("tcm:%s-%s", PUBLICATION_ID, ITEM_ID); TCMURI tcmUri = new TCMURI(uri); assertThat(tcmUri.getItemType(), is(16)); }
public int getItemType() { return this.itemType; }
TCMURI implements Serializable { public int getItemType() { return this.itemType; } }
TCMURI implements Serializable { public int getItemType() { return this.itemType; } TCMURI(String uri);  TCMURI(String uri, int version);  TCMURI(int publicationId, int itemId, int itemType);  TCMURI(int publicationId, int itemId, int itemType, int version);  TCMURI(Namespace namespace, int publicationId, int itemId, int itemType, int version); private  TCMURI(Builder builder); }
TCMURI implements Serializable { public int getItemType() { return this.itemType; } TCMURI(String uri);  TCMURI(String uri, int version);  TCMURI(int publicationId, int itemId, int itemType);  TCMURI(int publicationId, int itemId, int itemType, int version);  TCMURI(Namespace namespace, int publicationId, int itemId, int itemType, int version); private  TCMURI(Builder builder); static boolean isValid(String tcmUri); static int safeLongToInt(long l); @Override String toString(); int getItemType(); int getItemId(); int getPublicationId(); int getVersion(); }
TCMURI implements Serializable { public int getItemType() { return this.itemType; } TCMURI(String uri);  TCMURI(String uri, int version);  TCMURI(int publicationId, int itemId, int itemType);  TCMURI(int publicationId, int itemId, int itemType, int version);  TCMURI(Namespace namespace, int publicationId, int itemId, int itemType, int version); private  TCMURI(Builder builder); static boolean isValid(String tcmUri); static int safeLongToInt(long l); @Override String toString(); int getItemType(); int getItemId(); int getPublicationId(); int getVersion(); static final String URI_NAMESPACE; }