/** * Return the simple content of a {@link ComplexAttribute} if it represents a complexType with * simpleContent, otherwise null. * * @param complex * @return */ public static Object getSimpleContent(ComplexAttribute complex) { Property simpleContent = complex.getProperty(new NameImpl("simpleContent")); if (simpleContent == null) { return null; } else { return simpleContent.getValue(); } }
private String getSimpleLiteralScheme(Feature f, String name) { ComplexAttribute ca = (ComplexAttribute) f.getProperty(name); return (String) ca.getProperty("scheme").getValue(); }