/** * Called by a TypeStore to pull out the most reasonable * text value from us. This is done after we have invalidated * the store (typically when our value has been set). */ public final String build_text(NamespaceManager nsm) { assert((_flags & FLAG_STORE) != 0); assert((_flags & FLAG_VALUE_DATED) == 0); if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0) return ""; return compute_text( nsm == null ? has_store() ? get_store() : null : nsm); }
public String getStringValue() { if (isImmutable()) { if ((_flags & FLAG_NIL) != 0) return null; return compute_text(null); } // Since complex-content types don't have a "natural" string value, we // emit the deeply concatenated, tag-removed content of the tag. synchronized (monitor()) { if (_isComplexContent()) return get_store().fetch_text(TypeStore.WS_PRESERVE); check_dated(); if ((_flags & FLAG_NIL) != 0) return null; return compute_text(has_store() ? get_store() : null); } }
private XmlObject ensureStore() { if ((_flags & FLAG_STORE) != 0) return this; check_dated(); String value = (_flags & FLAG_NIL) != 0 ? "" : compute_text( has_store() ? get_store() : null ); XmlOptions options = new XmlOptions().setDocumentType(schemaType()); XmlObject x = XmlObject.Factory.newInstance( options ); XmlCursor c = x.newCursor(); c.toNextToken(); c.insertChars( value ); return x; }
/** * Called by a TypeStore to pull out the most reasonable * text value from us. This is done after we have invalidated * the store (typically when our value has been set). */ public final String build_text(NamespaceManager nsm) { assert((_flags & FLAG_STORE) != 0); assert((_flags & FLAG_VALUE_DATED) == 0); if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0) return ""; return compute_text( nsm == null ? has_store() ? get_store() : null : nsm); }
/** * Called by a TypeStore to pull out the most reasonable * text value from us. This is done after we have invalidated * the store (typically when our value has been set). */ public final String build_text(NamespaceManager nsm) { assert((_flags & FLAG_STORE) != 0); assert((_flags & FLAG_VALUE_DATED) == 0); if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0) return ""; return compute_text( nsm == null ? has_store() ? get_store() : null : nsm); }
public String getStringValue() { if (isImmutable()) { if ((_flags & FLAG_NIL) != 0) return null; return compute_text(null); } // Since complex-content types don't have a "natural" string value, we // emit the deeply concatenated, tag-removed content of the tag. synchronized (monitor()) { if (_isComplexContent()) return get_store().fetch_text(TypeStore.WS_PRESERVE); check_dated(); if ((_flags & FLAG_NIL) != 0) return null; return compute_text(has_store() ? get_store() : null); } }
public String getStringValue() { if (isImmutable()) { if ((_flags & FLAG_NIL) != 0) return null; return compute_text(null); } // Since complex-content types don't have a "natural" string value, we // emit the deeply concatenated, tag-removed content of the tag. synchronized (monitor()) { if (_isComplexContent()) return get_store().fetch_text(TypeStore.WS_PRESERVE); check_dated(); if ((_flags & FLAG_NIL) != 0) return null; return compute_text(has_store() ? get_store() : null); } }
private XmlObject ensureStore() { if ((_flags & FLAG_STORE) != 0) return this; check_dated(); String value = (_flags & FLAG_NIL) != 0 ? "" : compute_text( has_store() ? get_store() : null ); XmlOptions options = new XmlOptions().setDocumentType(schemaType()); XmlObject x = XmlObject.Factory.newInstance( options ); XmlCursor c = x.newCursor(); c.toNextToken(); c.insertChars( value ); return x; }
private XmlObject ensureStore() { if ((_flags & FLAG_STORE) != 0) return this; check_dated(); String value = (_flags & FLAG_NIL) != 0 ? "" : compute_text( has_store() ? get_store() : null ); XmlOptions options = new XmlOptions().setDocumentType(schemaType()); XmlObject x = XmlObject.Factory.newInstance( options ); XmlCursor c = x.newCursor(); c.toNextToken(); c.insertChars( value ); return x; }