@Override
	public String getText() {

		// sets text from input if not text directly available
		text = super.getText();

		int t;
		try {
			t = typeMapper.inverse().get(type);
		} catch (NullPointerException e) {
			return text;
		}
		switch (t) {
			case FUNCTION:
				return text.substring(0, text.length()-1);
			case URI:
				return extractURI(text);
            case UNCLOSED_URI:
                return extractUNCLOSEDURI(text);
			case STRING:
				return extractSTRING(text);
			case UNCLOSED_STRING:
				return extractUNCLOSEDSTRING(text);
			case CLASSKEYWORD:
				return extractCLASSKEYWORD(text);
			case HASH:
				return extractHASH(text);
			default:
				return text;
		}

	}
@ Override public String getText ( ) { text = super . getText ( ) ; int t ; try { t = typeMapper . inverse ( ) . get ( type ) ; } catch ( NullPointerException e ) { return text ; } switch ( t ) { case FUNCTION : return text . substring ( 0 , text . length ( ) - 1 ) ; case URI : return extractURI ( text ) ; case UNCLOSED_URI : return extractUNCLOSEDURI ( text ) ; case STRING : return extractSTRING ( text ) ; case UNCLOSED_STRING : return extractUNCLOSEDSTRING ( text ) ; case CLASSKEYWORD : return extractCLASSKEYWORD ( text ) ; case HASH : return extractHASH ( text ) ; default : return text ; } }
Returns common text stored in token. Content is not modified.
@return Model view of text in token