public FieldDescriptor( byte[] data ) { fillFields( data, 0 ); }
public String toString() { return MessageFormat.format( "[{0}, {1}) - FLD - 0x{2}; 0x{3}", getFcStart(), getFcEnd(), Integer.toHexString( 0xff & fld.getBoundaryType() ), Integer.toHexString( 0xff & fld.getFlt() ) ); } }
public boolean isPrivateResult() { if ( getCh() != FIELD_END_MARK ) throw new UnsupportedOperationException( "This field is only defined for end marks." ); return isFPrivateResult(); }
public boolean isResultEdited() { if ( getCh() != FIELD_END_MARK ) throw new UnsupportedOperationException( "This field is only defined for end marks." ); return isFResultEdited(); }
public boolean isZombieEmbed() { if ( getCh() != FIELD_END_MARK ) throw new UnsupportedOperationException( "This field is only defined for end marks." ); return isFZombieEmbed(); }
public boolean isResultDirty() { if ( getCh() != FIELD_END_MARK ) throw new UnsupportedOperationException( "This field is only defined for end marks." ); return isFResultDirty(); }
public PlexOfField( GenericPropertyNode propertyNode ) { this.propertyNode = propertyNode; fld = new FieldDescriptor( propertyNode.getBytes() ); }
public FieldImpl( PlexOfField startPlex, PlexOfField separatorPlex, PlexOfField endPlex ) { if ( startPlex == null ) throw new IllegalArgumentException( "startPlex == null" ); if ( endPlex == null ) throw new IllegalArgumentException( "endPlex == null" ); if ( startPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_BEGIN_MARK ) throw new IllegalArgumentException( "startPlex (" + startPlex + ") is not type of FIELD_BEGIN" ); if ( separatorPlex != null && separatorPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_SEPARATOR_MARK ) throw new IllegalArgumentException( "separatorPlex" + separatorPlex + ") is not type of FIELD_SEPARATOR" ); if ( endPlex.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK ) throw new IllegalArgumentException( "endPlex (" + endPlex + ") is not type of FIELD_END" ); this.startPlex = startPlex; this.separatorPlex = separatorPlex; this.endPlex = endPlex; }
public boolean isLocked() { return endPlex.getFld().isFLocked(); }
public boolean isNested() { return endPlex.getFld().isFNested(); }
public int getType() { return startPlex.getFld().getFieldType(); }
public boolean isHasSep() { return endPlex.getFld().isFHasSep(); }
public int getBoundaryType() { return getCh(); }
public boolean isPrivateResult() { return endPlex.getFld().isFPrivateResult(); }