Java 8 Reference - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Reference class.

This code example shows how to use the following methods:getURI, getId
    public void end() throws Exception { //NOPMD
        error = null;
    } 
 
    private String getReferenceUriOrId(Reference ref) {
        String docId = ref.getURI();
        if (docId == null) {
            docId = ref.getId();
        } 
        return docId;
    } 
 
    @Override 
    public boolean ignoreCoreValidationFailure() throws Exception { //NOPMD
        return false; 
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:getURI
            } 
        } 
    } 
 
    protected String getSameDocumentReferenceUri(Reference ref) {
        String refUri = ref.getURI();
        if (refUri == null) {
            LOG.warn("Ignoring reference {} which has no URI", ref);
            return null; 
        } 
        if (!refUri.startsWith("#")) {
            LOG.warn("Ignoring non-same document reference {}", refUri);
            return null; 
        } 
        return refUri.substring(1);
    } 
 
    protected Manifest getReferencedManifest(List<XMLObject> objects, String id) {
        for (XMLObject xo : objects) {
            @SuppressWarnings("unchecked") 
5
CodeRank
See Code Examples for Java 8 Reference Methods: